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. setFixedSize doesn't work in Universal Windows
Forum Updated to NodeBB v4.3 + New Features

setFixedSize doesn't work in Universal Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 990 Views 2 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.
  • S Offline
    S Offline
    snaiil
    wrote on last edited by
    #1

    setFixedSize doesn't work in Universal Windows, window can still be resized. Is this a known bug?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jan-Willem
      wrote on last edited by
      #2

      Perhaps you could set QWindow::setMaximumSize(const QSize &size) and QWindow::setMinimumSize(const QSize &size) which set the maximum and minimum size of the window.

      Be aware though. The documentation says that this is a hint to the window manager to prevent resizing above/below the specified size. It is up to the window manager what to do with it.

      Maybe you could also look at the Qt::WindowFlags?

      raven-worxR 1 Reply Last reply
      0
      • J Jan-Willem

        Perhaps you could set QWindow::setMaximumSize(const QSize &size) and QWindow::setMinimumSize(const QSize &size) which set the maximum and minimum size of the window.

        Be aware though. The documentation says that this is a hint to the window manager to prevent resizing above/below the specified size. It is up to the window manager what to do with it.

        Maybe you could also look at the Qt::WindowFlags?

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        @Jan-Willem said in setFixedSize doesn't work in Universal Windows:

        Perhaps you could set QWindow::setMaximumSize(const QSize &size) and QWindow::setMinimumSize(const QSize &size) which set the maximum and minimum size of the window.

        actually that is what setFixedSize() conveniently already does for you.

        @Jan-Willem
        on what system are you on?

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jan-Willem
          wrote on last edited by
          #4

          I'm working under Linux, but Windows has a window manager I think?

          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