Results 1 to 7 of 7

Thread: Promoting the parent QWidget of a QWidget form

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Apr 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: Promoting the parent QWidget of a QWidget form

    That is not so easy or the most usefull way to do it.

    Writing a plugin isn't so easy and there is the problem of different compilers platforms.

    I don't understand what it means :
    -----
    Promoting a widget doesn't yield any benefits other than forcing uic to generate code for the promoted widget instead of its superclass. Bearing the fact that uic doesn't create the top-most widget, promoting it doesn't make any sense, the code generated by uic would be identical with the only exception that setupUi() would have a different argument type which would give no additional value considering the presence of inheritance in C++ where you can pass a subclass to a function that expects a superclass.
    ----

    Look at what I expect:
    Attached Files Attached Files
    Last edited by mingodad; 16th April 2010 at 12:34.

Similar Threads

  1. How can I access public variable parent Form
    By validator in forum Qt Programming
    Replies: 14
    Last Post: 18th December 2008, 21:12
  2. Non-transparent QWidget on semi-transparent parent
    By EuroElessar in forum Qt Programming
    Replies: 0
    Last Post: 29th August 2008, 16:20
  3. Enable QWidget child while parent disabled
    By ^NyAw^ in forum Qt Programming
    Replies: 2
    Last Post: 30th May 2008, 10:53
  4. Problem with Parent QWidget and Buttons not working
    By VireX in forum Qt Programming
    Replies: 7
    Last Post: 11th May 2007, 22:24
  5. Replies: 1
    Last Post: 28th July 2006, 14:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.