Results 1 to 3 of 3

Thread: Promoting to custom widget

  1. #1
    Join Date
    Oct 2009
    Posts
    65
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Promoting to custom widget

    GoodAfternoon to everybody,
    I'm a newbie with QT and I try to create my custom widget and promote an other to it in designer, so I should be able to use my widget in designer without plugin.
    I can use my widget very well but... only this!! If I create a layout with the base widget with other ones, when I run (and promote widget to my widget) my widget is the only widget of the windows!!!
    I forgot something about the promotion politics? I create this by QT 2010.04 on Windows XP.

    Thansk for your time.

    Michele

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Promoting to custom widget

    What exactly does not work for you? What error do you get?

  3. #3
    Join Date
    May 2009
    Location
    Vienna
    Posts
    91
    Thanks
    18
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Promoting to custom widget

    Hi,
    so you have already done?:
    A Container "QWidget myplaceholder" in your e.g. mainwindow.ui, which you had promoted to CYourNewClass?
    Maybe you have missplaced or miss-set some setMainWidget( .. ) which will be shown over all other widgets?

    in case: remove: setMainWidget( CYourNewClass-instance )

    greetz A

Similar Threads

  1. Promoting widget in Designer
    By evident in forum Qt Programming
    Replies: 5
    Last Post: 24th July 2010, 22:06
  2. Replies: 3
    Last Post: 10th December 2009, 22:53
  3. Error when promoting a custom widget
    By engin in forum Qt Tools
    Replies: 1
    Last Post: 15th December 2006, 16:00
  4. Replies: 1
    Last Post: 5th November 2006, 23:50
  5. Promoting a custom widget derived from QWidget Qt4
    By high_flyer in forum Qt Tools
    Replies: 1
    Last Post: 2nd March 2006, 18:50

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.