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. How to automatically maximize a subWindw in a QMdiArea
Forum Updated to NodeBB v4.3 + New Features

How to automatically maximize a subWindw in a QMdiArea

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 820 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.
  • A Offline
    A Offline
    Audetto
    wrote on last edited by Audetto
    #1

    I can do it this way:

    • call QMdiArea::addSubWindow
    • and then QMdiSubWindow::showMaximized

    But one can see a flicker due to the 2 operations not being atomic.

    None of the Qt::WindowFlags seems to help.

    I am using Qt 6.4.2 on Ubuntu 24.04.

    JonBJ 1 Reply Last reply
    0
    • A Audetto

      I can do it this way:

      • call QMdiArea::addSubWindow
      • and then QMdiSubWindow::showMaximized

      But one can see a flicker due to the 2 operations not being atomic.

      None of the Qt::WindowFlags seems to help.

      I am using Qt 6.4.2 on Ubuntu 24.04.

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @Audetto
      https://www.qtcentre.org/threads/41101-QMdiArea-and-adding-sub-window

      try using setWindowState(Qt::WindowMaximized) on the sub window instance it self :
      m_mdiArea->addSubWindow(Editor)->setWindowState(Qt::WindowMaximized) ;

      That worked in Qt in 2006, so I imagine it's the same two decades later...? :)

      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