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. How to resize QMainwindow after I set the flag "Qt::FramelessWindowHint"?
Forum Updated to NodeBB v4.3 + New Features

How to resize QMainwindow after I set the flag "Qt::FramelessWindowHint"?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 2.4k 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.
  • thamT Offline
    thamT Offline
    tham
    wrote on last edited by
    #1

    Our purpose is customize the default ui from

    alt text

    To this one

    alt text

    The solution we pick is call

    setWindowFlags(Qt::FramelessWindowHint);
    

    In the QMainWindow and add the customize buttons, problem is Qt::FramelessWindowHint cannot resize. How could we make it resizeable?

    Thanks

    RatzzR J 2 Replies Last reply
    0
    • thamT tham

      Our purpose is customize the default ui from

      alt text

      To this one

      alt text

      The solution we pick is call

      setWindowFlags(Qt::FramelessWindowHint);
      

      In the QMainWindow and add the customize buttons, problem is Qt::FramelessWindowHint cannot resize. How could we make it resizeable?

      Thanks

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      @tham
      Did you refer this https://forum.qt.io/topic/34354/frameless-window-dragging-issue/2

      --Alles ist gut.

      1 Reply Last reply
      3
      • thamT tham

        Our purpose is customize the default ui from

        alt text

        To this one

        alt text

        The solution we pick is call

        setWindowFlags(Qt::FramelessWindowHint);
        

        In the QMainWindow and add the customize buttons, problem is Qt::FramelessWindowHint cannot resize. How could we make it resizeable?

        Thanks

        J Offline
        J Offline
        Jorgen
        wrote on last edited by
        #3

        @tham
        Here is another thread showing my frameless window example with custom stylehseets: https://forum.qt.io/topic/80654/how-to-create-vs2013-like-frameless-window-with-dark-style

        you can also find it on github: https://github.com/Jorgen-VikingGod/Qt-Frameless-Window-DarkStyle

        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