Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MDI: QDialog modality locks Application instead parent QMdiSubWindow only
Qt 6.12 LTS is out! See what's new in the release blog

MDI: QDialog modality locks Application instead parent QMdiSubWindow only

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 258 Views 1 Watching
  • 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.
  • sitesvS Offline
    sitesvS Offline
    sitesv
    wrote on last edited by
    #1

    Hi!
    I need to work with QMdiSubWindow example even if another is lock at this time.
    My app inheritance structure:

    MainWindow
    -- QMdiArea
    ----QMdiSubWindow
    --------MyWidget (QWidget)
    ------------MyDialog (QDialog)

    MyDialog shows only when user have to wait. MyDialog is a my own analogue of QProgressDialog.
    MyDialog flags: Qt::FramelessWindowHint, Qt::CustomizeWindowHint, Qt::SubWindow, Qt::Tool.

    Problems:

    1. If i don't set a modality, user has availability to move this subwindow and MyDialog will stay at old position as a result.
    2. MyDialog and MyWidget doesn't recieve move event if i move its QMdiSubWindow
    3. If i set WindowModality for MyDialog, an application will be locked, not a QMdiSubwindow.

    Thanks for any advice.

    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
    • Unsolved