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. is showMaximized() guaranteed to show the window?
Forum Updated to NodeBB v4.3 + New Features

is showMaximized() guaranteed to show the window?

Scheduled Pinned Locked Moved General and Desktop
qwidgetqwindow
3 Posts 2 Posters 2.1k 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.
  • ravasR Offline
    ravasR Offline
    ravas
    wrote on last edited by
    #1

    Is showMaximized() guaranteed to at least show the window on all desktop operating systems?
    Is it possible to determine if it failed in any way (via code)?

    Nor does X11 provide a way to maximize a window. QWidget::showMaximized() has to emulate the feature. Its result depends on the result of QWidget::frameGeometry() and the capability of the window manager to do proper window placement, neither of which can be guaranteed.

    http://doc.qt.io/qt-5/application-windows.html

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #2

      Hi!

      Is showMaximized() guaranteed to at least show the window on all desktop operating systems?

      Looking at void QWidget::showMaximized() in qwidget.cpp I would say 'yes' because setVisible(true) is called no matter happens before.

      Do you know any desktop environment where showMaximized doesn't work?

      ravasR 1 Reply Last reply
      1
      • ? A Former User

        Hi!

        Is showMaximized() guaranteed to at least show the window on all desktop operating systems?

        Looking at void QWidget::showMaximized() in qwidget.cpp I would say 'yes' because setVisible(true) is called no matter happens before.

        Do you know any desktop environment where showMaximized doesn't work?

        ravasR Offline
        ravasR Offline
        ravas
        wrote on last edited by
        #3

        @Wieland Thanks for the help and the link.

        Do you know any desktop environment where showMaximized doesn't work?

        No I do not. I'm contributing to an open source project so I want to be sure.

        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