Results 1 to 7 of 7

Thread: How to click and pop up submenu

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2010
    Posts
    25
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    4

    Default Re: How to click and pop up submenu

    Look at my main program

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);
    //MyWidget widget;
    //widget.show();
    AnalogClock clock;
    clock.show();
    return app.exec();
    }

    Lets' say I uncomment the Analogclock like above, the clock program are able to display.

    int main(int argc, char *argv[])
    {
    QApplication app(argc, argv);
    MyWidget widget;
    widget.show();
    //AnalogClock clock;
    //clock.show();
    return app.exec();
    }

    On the other hand, I uncomment the widget like above code, the menu page able to displayed.
    So my problem is, how to I integrate the menu page with analogclock page, when I click the button of menu page, analogclock only will display.
    Analogclock not really a menu right? setmenu is the correct library to be use?

    Should I place the setmenu(); in the main function?
    I apologize if I ask too silly question, my boss throw the whole qt and ask me to explore alone yet just give me a qt link. I am Headache already....

  2. #2
    Join Date
    Mar 2010
    Posts
    25
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    4

    Default Re: How to click and pop up submenu

    hi Lykurg,

    How ? Don't have any solution for me? Come on, just a simple job for you to point up the clue for me...

    Thanks and regards
    Shi Hao

  3. #3
    Join Date
    Mar 2010
    Posts
    25
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    4

    Default Re: How to click and pop up submenu

    Or ... is there anywhere pop up a new window by using QPushbutton? Is the QPushbutton able to add pic, adjust pic just like Qtoolbutton?

Similar Threads

  1. Replies: 2
    Last Post: 8th December 2009, 17:33
  2. QMenu: want a QListView in submenu to handle lots of options
    By chezifresh in forum Qt Programming
    Replies: 1
    Last Post: 12th November 2009, 23:55
  3. Context Menu's submenu doesn't appear
    By DancingFirefly in forum Qt Programming
    Replies: 0
    Last Post: 19th August 2009, 20:32
  4. Replies: 1
    Last Post: 23rd July 2008, 10:19
  5. How to show SubMenu next to MainMenu?
    By alex chpenst in forum Qt Programming
    Replies: 4
    Last Post: 17th July 2008, 10:33

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.