Important: Please read the Qt Code of Conduct -

Window maximize button not shown

  • Hi,

    I can't understand why the window maximize button disappears when displaying three widgets vertically in parallel. If i connect an external screen with a higher resolution, it can be displayed properly and the maximize button is shown, but by the time I move the window to the laptop screen the button disappears again, so it looks like the size of the widgets is too big. If I set a maximum size to the widgets the problem is solved but then the window is not possible to expand for different window sizes.

    Is there anything that I can do to fix this issue???

    Thanks in advance,

  • Lifetime Qt Champion

    Did you make a captionless window and made your own window maximize button?
    Can you maybe provide a picture of the issue as normally the Window decorations like Maximize do not move around.

  • How can I attach a picture? The button disappears when I move the mouse over the maximize button, and appears again when I move the window to the bigger screen.

  • Lifetime Qt Champion

    you can download to picture site.
    like and get link to put here.

    The min/max buttons are drawn by the operating system and normally just works.

  • Ok, here I attach two screen captures where It doesn't appear the mouse because looks like the OS takes it out, but you can see how when the window is on the bigger screen the maximize button is visible but in the smaller screen it doesn't.

  • Lifetime Qt Champion

    Do you use QDialog?
    what platform is this? and Qt version.

  • No, the form is a QMainWindow. I'm using Qt Creator 3.4.2 based on Qt5.5.0. The widgets used for plotting are "qwt_plot" and if I use two instead three then everything works fine, so I was wondering if the problem could be fixed playing with the sizing parameters. I tried to set the maximum size and it works but then it's not autofitting if I connect a bigger external screen. One solution could be detecting in which screen is being displayed at any moment the window, and set a maximum size of the widget proportional to the current window... and i'm sure that there must be an easier solution using Qt capabilities.

  • Lifetime Qt Champion

    sorry, i really have no idea.
    Never seen a mainwindow loose any decoration.

Log in to reply