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 get customized titlebar in qml like steam own in linux

How to get customized titlebar in qml like steam own in linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
pyqt5qmltitle bar
2 Posts 2 Posters 877 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.
  • N Offline
    N Offline
    Newtron
    wrote on last edited by
    #1

    How to make the title bar different from gtk theme. For example, Steam has a customized on. I tried adding FramelessWindowHint and CustomizeWindowHint but the window is flickering and not going behind docks or window borders. I heard that there is a QStyleOptionTitleBar. But can I have steam like one with that. If it is not possible with qml or qt how they did it.

    thanks

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

      Hi
      I have not seen steam on linux , however they might have use
      https://en.wikipedia.org/wiki/Client-side_decoration
      or something similar.
      or have hand made it.
      While this works ok for win
      https://github.com/dfct/TrueFramelessWindow
      I have not seen one for linux. Maybe due to all the different managers.

      Short story is. Qt do not draw the title bar so one can either totally fake it and draw all - and handle all min/max resize etc by
      manual code or if the Desktop/Manager supports it, use direct api extensions.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved