Results 1 to 2 of 2

Thread: How to block The rest of the GUI like QMessageBox

  1. #1
    Join Date
    Mar 2009
    Location
    Tunisia
    Posts
    38
    Thanks
    12
    Platforms
    Windows

    Default How to block The rest of the GUI like QMessageBox

    Hello,

    I want to take the same functionality of QmessageBox, I have a Qwidget that contain a button, when i click on the button it open another QWidget, the new opened widget must block the main widget.

    I think it's common after some hour of googling i still can't find out how to do that,

    Thanks in advance.

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

    Default Re: How to block The rest of the GUI like QMessageBox

    Make that new widget a QDialog and call QDialog::exec() instead of show().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    oswalidos (15th June 2012)

Similar Threads

  1. Replies: 12
    Last Post: 22nd April 2012, 21:48
  2. Replies: 0
    Last Post: 23rd February 2011, 14:24
  3. Removing divider between menubar and rest of main window
    By tgreaves in forum Qt Programming
    Replies: 4
    Last Post: 18th February 2009, 19:34
  4. How to block keyPressEvent ?
    By richardander in forum Qt Programming
    Replies: 1
    Last Post: 24th January 2009, 09:14
  5. New kid on the block
    By wysota in forum General Discussion
    Replies: 2
    Last Post: 4th May 2008, 20:59

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.