Results 1 to 6 of 6

Thread: Creating a popup toolbox

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Creating a popup toolbox

    Not really sure how to approach "embedding" it. Could it be as easy as just calling "setParent"?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Creating a popup toolbox

    Qt Code:
    1. MyMenu::MyMenu(...) : QMenu(...){
    2. QVBoxLayout *l = new QVBoxLayout(this);
    3. QToolBox *tb = new QToolBox;
    4. l->addWidget(tb);
    5. //...
    6. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Popup menu for a QGraphicsItem?
    By Morea in forum Qt Programming
    Replies: 4
    Last Post: 4th February 2009, 21:27
  2. Replies: 1
    Last Post: 5th November 2006, 23:50
  3. put a toolbox
    By mickey in forum Newbie
    Replies: 4
    Last Post: 27th August 2006, 15:35
  4. Can't close my popup
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 11th July 2006, 09:10
  5. Problem in creating thread in GUI application
    By jyoti kumar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2006, 12:05

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.