Results 1 to 4 of 4

Thread: MainWindow+Dialogs

Threaded View

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

    Default Re: MainWindow+Dialogs

    Quote Originally Posted by aamer4yu View Post
    Have a look at QStackedWidget.

    Also have a look at the Configuration Dialog example in QtDemo.
    Ok that's what I want...I try to use it and works fine. I 've only 2 problems...when I put a widget on the top, and I try to modify the properties of a qlabel of it, for example, the application crash! I don' know if this behaviour is releted to the wrong management of the qwidgetstack or no.
    The other problem, may be related to the first, is using the method raiseWidget ( QWidget * w ).
    I create:
    MyWidget * myWid = new MyWidget (widgetStack)
    widgetStack->addWidget(myWid, id)
    but when I call
    widgetStack-> raiseWidget (myWid)
    to put the widget on top the application crash.
    The only way is to use:
    widgetStack-> raiseWidget (id)
    Why?
    Last edited by fruzzo; 20th May 2008 at 08:55.

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
  •  
Qt is a trademark of The Qt Company.