Results 1 to 2 of 2

Thread: QT5 - Modal Window

  1. #1
    Join Date
    Jan 2020
    Qt products
    Qt5 Qt/Embedded
    MacOS X Unix/X11 Windows Android Maemo/MeeGo

    Post QT5 - Modal Window

    Hello everyone!

    I think and i know that are probably tons of questions around this topic.

    I have issues on creating modal windows 5 for exactly, to become modal windows.

    I want to do it with like setkey ESC to open options, the for set key CTRL+P for profile and so on.

    I can't set keys for that. I have the forms and I can't open them as modal windows.


  2. #2
    Join Date
    Mar 2009
    Brisbane, Australia
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Unix/X11 Windows
    Wiki edits

    Default Re: QT5 - Modal Window

    You open a modal QWidget (Qdialog etc.) by calling its exec() method.

    You can assign shortcuts to menu items if these widgets can also be opened from menus.
    Also take a look at QShortcut

Similar Threads

  1. Modal dialog only modal to base window?
    By SvenA in forum Qt Programming
    Replies: 3
    Last Post: 10th April 2015, 09:25
  2. QMainWindow modal from non-qt window?
    By hickscorp in forum Qt Programming
    Replies: 3
    Last Post: 21st November 2008, 09:10
  3. How to make window semi modal
    By kaushal_gaurav in forum Qt Programming
    Replies: 7
    Last Post: 29th August 2008, 08:27
  4. super modal window!!
    By jrodway in forum Qt Programming
    Replies: 4
    Last Post: 17th April 2008, 21:25
  5. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 10:21

Tags for this Thread


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.