Results 1 to 4 of 4

Thread: Adding widgets in Designer

  1. #1
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Adding widgets in Designer

    Hi, how can I add an object inherited from QWidget ( Myclass : public QWidget ) using Qt Designer?

    Regards
    Franco Amato

  2. #2
    Join Date
    Aug 2009
    Posts
    52
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: resizing widgets when user resizes mainwindow

    Quote Originally Posted by franco.amato View Post
    Hi, how can I add an object inherited from QWidget ( Myclass : public QWidget ) using Qt Designer?

    Regards
    read the article "Using Custom Widgets with Qt Designer" in your assistant

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Adding widgets in Designer

    Drop a QWidget on the form, and then right click it, "Promote To" and then enter the new class name and header file for your new widget.

  4. #4
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    691
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Adding widgets in Designer

    Quote Originally Posted by fatjuicymole View Post
    Drop a QWidget on the form, and then right click it, "Promote To" and then enter the new class name and header file for your new widget.
    Thank you very much.
    I'll try immediately.

    Best
    Franco Amato

Similar Threads

  1. Adding widgets dynamically
    By miw in forum Qt Programming
    Replies: 1
    Last Post: 23rd July 2009, 10:31
  2. Cannot drop widgets in Qt Designer 4.4.0
    By DerSchoeneBahnhof in forum Qt Tools
    Replies: 2
    Last Post: 19th June 2008, 17:18
  3. Global includes with designer custom widgets
    By mab in forum Qt Programming
    Replies: 2
    Last Post: 5th October 2006, 22:06
  4. Designer crashes when selecting some widgets
    By gwendal in forum Qt Tools
    Replies: 4
    Last Post: 21st July 2006, 13:18
  5. Adding slots in Designer
    By jamos in forum Qt Tools
    Replies: 5
    Last Post: 18th May 2006, 23:28

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.