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 Flags For Resizing
Forum Updated to NodeBB v4.3 + New Features

Window Flags For Resizing

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.1k 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
    AlexanderAlexander
    wrote on last edited by
    #1

    I have a very simple question that I can't figure out: How do you get a application window to resize?

    The only overriding I do is when I set my window flags:

    setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
    

    I have made a framless QT5 application, creating my own window bar and buttons, but can get the window to resize when dragging the edges.

    jsulmJ 1 Reply Last reply
    0
    • A AlexanderAlexander

      I have a very simple question that I can't figure out: How do you get a application window to resize?

      The only overriding I do is when I set my window flags:

      setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
      

      I have made a framless QT5 application, creating my own window bar and buttons, but can get the window to resize when dragging the edges.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @AlexanderAlexander said in Window Flags For Resizing:

      Qt::FramelessWindowHint

      In this case, I think, you will have to implement resizing by yourself. See documentation (https://doc.qt.io/qt-5/qt.html#WindowType-enum) for Qt::FramelessWindowHint:
      "Produces a borderless window. The user cannot move or resize a borderless window via the window system. On X11, the result of the flag is dependent on the window manager and its ability to understand Motif and/or NETWM hints. Most existing modern window managers can handle this."

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • A Offline
        A Offline
        AlexanderAlexander
        wrote on last edited by
        #3

        @jsulm, that's unfortunate but thanks for the answer.

        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