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. Window maximize button not shown
Forum Updated to NodeBB v4.3 + New Features

Window maximize button not shown

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

    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,
    Andrew

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi
      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.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        avmg
        wrote on last edited by
        #3

        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.

        mrjjM 1 Reply Last reply
        0
        • A avmg

          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.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @avmg
          you can download to picture site.
          like postimage.org and get link to put here.

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

          1 Reply Last reply
          0
          • A Offline
            A Offline
            avmg
            wrote on last edited by
            #5

            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.

            https://s32.postimg.org/s5pi36hj9/image.png
            https://s32.postimg.org/5v1n37k91/image.png

            mrjjM 1 Reply Last reply
            0
            • A avmg

              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.

              https://s32.postimg.org/s5pi36hj9/image.png
              https://s32.postimg.org/5v1n37k91/image.png

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0
              • A Offline
                A Offline
                avmg
                wrote on last edited by
                #7

                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.

                mrjjM 1 Reply Last reply
                0
                • A avmg

                  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.

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

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

                  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