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. Bug in z-Order of MDI Interface
Qt 6.11 is out! See what's new in the release blog

Bug in z-Order of MDI Interface

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 276 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.
  • Andy314A Offline
    Andy314A Offline
    Andy314
    wrote on last edited by Andy314
    #1

    Helle, I found a strage and very unpleasend behaviour of the MDI-Window/Interface. You can reproduce the error with the included standard MID-Example:

    Open Window1
    Open Window2
    Open Window3

    The windows are then in the Z-Order 1 2 3.

    Then close Window 3.
    What do you expext ?
    I expect that window 1 2 hold it z-Order and window 2 ist on top now.

    BUT:
    Window 1 pops to top.

    I tested it with Qt 5.15.1 MSVC 2019 64 bit.

    This is very never, espacialy for full screen mode of the mdi-clients.

    It seem that always the first created Window pops up.

    Andy314A 1 Reply Last reply
    0
    • Andy314A Andy314

      Helle, I found a strage and very unpleasend behaviour of the MDI-Window/Interface. You can reproduce the error with the included standard MID-Example:

      Open Window1
      Open Window2
      Open Window3

      The windows are then in the Z-Order 1 2 3.

      Then close Window 3.
      What do you expext ?
      I expect that window 1 2 hold it z-Order and window 2 ist on top now.

      BUT:
      Window 1 pops to top.

      I tested it with Qt 5.15.1 MSVC 2019 64 bit.

      This is very never, espacialy for full screen mode of the mdi-clients.

      It seem that always the first created Window pops up.

      Andy314A Offline
      Andy314A Offline
      Andy314
      wrote on last edited by
      #2

      @Andy314

      Ups, I found the soltuion:

      pMdiArea->setActivationOrder(QMdiArea::ActivationHistoryOrder);

      1 Reply Last reply
      1
      • Andy314A Andy314 has marked this topic as solved on

      • Login

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