Results 1 to 3 of 3

Thread: modeless dialog

  1. #1
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default modeless dialog

    This is an extra newbie question.
    I thought I knew Qt so well ... and then Qt4 came out

    Anyway, for some reason, when I run this function the modeless dialog comes up great. When I run it again nothing happens.

    Any ideas?

    Qt Code:
    1. void MainForm::openLemonDialog()
    2. {
    3. if ( !lemon_dialog ) {
    4. lemon_dialog = new LemonDialog( this );
    5. connect( lemon_dialog, SIGNAL( addLemonJuice( const QString & ) ),
    6. this, SLOT( changeLemonAmnt( const QString & ) ) ); // remember H+ diff
    7. }
    8. lemon_dialog->show();
    9. lemon_dialog->raise();
    10. lemon_dialog->activateWindow();
    11. }
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to mhoover for this useful post:


  3. #2
    Join Date
    Jan 2006
    Location
    Mountain View, CA
    Posts
    279
    Thanked 42 Times in 37 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: modeless dialog

    Where is lemon_dialog defined? Presumably it is a member variable?
    Save yourself some pain. Learn C++ before learning Qt.

  4. The following user says thank you to Chicken Blood Machine for this useful post:


  5. #3
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: modeless dialog

    Yep. It is.

  6. The following user says thank you to mhoover for this useful post:


Similar Threads

  1. Issue with Modelless dialog on Mac
    By Satyanarayana Chebrolu in forum Qt Programming
    Replies: 0
    Last Post: 24th February 2009, 11:10
  2. Dialog is not closing
    By manmohan in forum Newbie
    Replies: 5
    Last Post: 1st December 2008, 18:04
  3. Replies: 9
    Last Post: 13th August 2008, 19:07
  4. Modeless dialog disappearing
    By Raccoon29 in forum Qt Programming
    Replies: 4
    Last Post: 15th September 2007, 12:38
  5. modeless dialog closed signal?
    By gfunk in forum Qt Programming
    Replies: 2
    Last Post: 5th January 2007, 01:40

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.