Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] how to make my dialog modeless?
QtWS25 Last Chance

[SOLVED] how to make my dialog modeless?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 8.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kalster
    wrote on last edited by
    #1

    here is a quote from the "dialog doc":http://developer.qt.nokia.com/doc/qt-4.7/qdialog.html
    [quote]A modeless dialog is a dialog that operates independently of other windows in the same application. Find and replace dialogs in word-processors are often modeless to allow the user to interact with both the application's main window and with the dialog.[/quote]

    When the dialog is shown on the mainwindow, i would like to interact with the mainwindow but for some reason i can't. In the qt designer, i set the dialog method WindowModality to NonModel and then displayed the dialog with show();.

    when I load the program and click the button on the main window, the dialog is shown. from there i click on the mainwindow button again and here a beep. the main window seems to be disabled. yet in the doc above, it is saying that i can interact between the main window and dialog. how can i interact between them?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kalster
      wrote on last edited by
      #2

      solved. i needed setModal(false);

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved