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. Using system window buttons in frameless QWindow

Using system window buttons in frameless QWindow

Scheduled Pinned Locked Moved Unsolved General and Desktop
framelesswindowtitle barminimizemaximizeclose
3 Posts 2 Posters 798 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.
  • T Offline
    T Offline
    TheEnigmist
    wrote on last edited by TheEnigmist
    #1

    I'm wondering if there is a way to use system built-in Minimize, Maximize, Close buttons. I know there are some good project that uses frameless window and let you use Aero if you run under Windows, but I want to use win32 buttons and their event.
    For example, let see how Netflix / Spotify app in Windows 11 are created :

    netflix_1.pngnetflix_2.png
    As you can see there is normal title bar at startup then it will become all black, with no title but with all system buttons

    spotify_1.pngspotify_2.png
    In spotify you can see that they use only a little part of title bar (black) at startup, after that the gui become black.

    Is this possible to achieve in Qt6?
    I'd like to use system buttons 'cause I want to create my own window style without losing the events, like this in Win11:
    events.png

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcf1lmnfs
      wrote on last edited by
      #2

      All buttons, windows, layouts can be customized by using Qt Style Sheets.

      Here some more info: https://doc.qt.io/qt-5/stylesheet-examples.html
      And also you have already complete example about it: https://doc.qt.io/qt-5/qtwidgets-widgets-stylesheet-example.html

      T 1 Reply Last reply
      0
      • M mcf1lmnfs

        All buttons, windows, layouts can be customized by using Qt Style Sheets.

        Here some more info: https://doc.qt.io/qt-5/stylesheet-examples.html
        And also you have already complete example about it: https://doc.qt.io/qt-5/qtwidgets-widgets-stylesheet-example.html

        T Offline
        T Offline
        TheEnigmist
        wrote on last edited by
        #3

        @mcf1lmnfs No, because title bar is not a Qt element, is system made, so I cannot change it via Qt Style Sheets.

        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