Results 1 to 4 of 4

Thread: MainWindow+Dialogs

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Posts
    119
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default MainWindow+Dialogs

    Hi, I've a QMainWindow with inside its layout a menu of pusbuttons and a groupbox. The behaviou of my gui is this one:
    - when a click on a push button of the menu I want open something like a dialog inside the area of a groupbox without create a new window for the dialog.
    Is possible to do this?
    For the moment instead of creating a real qdialog, a create a custom qwidget and it work:
    myWidget * pMyWidget = newMyWidget();
    myGroupBoxLayout->addWidget(pMyWidget );
    However I have a problem of management (I think it's too hard) with this idea in the case of cascade calling of this sort of "dialogs":
    MainWidow open MyWidget1, clicking on a button of this one it open MyWidget2 (always inside the area of the groupbox), clicking on a button of this one it open MyWidget3 always inside the area of the groupbox). Closing MyWidget3 must reappear MyWidget2, and closing MyWidget2 must reappear MyWidget1.
    Any idea to solve this task?
    Last edited by fruzzo; 19th May 2008 at 10:45.

Similar Threads

  1. Notifying Mainwindow of an event..
    By MrGarbage in forum Qt Programming
    Replies: 1
    Last Post: 9th November 2007, 21:29
  2. Replies: 1
    Last Post: 11th September 2007, 13:34
  3. Replies: 8
    Last Post: 4th September 2007, 13:25
  4. Replies: 3
    Last Post: 23rd July 2006, 18:02
  5. mainwindow does not refresh
    By edb in forum Qt Programming
    Replies: 22
    Last Post: 25th January 2006, 16:42

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.