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. Use Qt c++ to create a toolbar in linux?
Forum Update on Monday, May 27th 2025

Use Qt c++ to create a toolbar in linux?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 772 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
    adamsmith
    wrote on last edited by
    #1

    I want to create something like polybar which is a status bar for linux. Is there a way to create an application that sticks to one side of the screen and changes the space that other programs take up? What I mean by that is for example the browser does not go over the status bar on windows 7, 8 and 10 since the status bar tells me vital information, such as time, date and what tabs I have open. Covering that app (the status bar) is not wanted.

    JonBJ 1 Reply Last reply
    0
    • A adamsmith

      I want to create something like polybar which is a status bar for linux. Is there a way to create an application that sticks to one side of the screen and changes the space that other programs take up? What I mean by that is for example the browser does not go over the status bar on windows 7, 8 and 10 since the status bar tells me vital information, such as time, date and what tabs I have open. Covering that app (the status bar) is not wanted.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @adamsmith
      I don't know so take my comment with a pinch of salt. I would have thought it's easy to create the "bar" bit as a Qt app. But changing the behaviour of the host desktop, so that its geometry, behaviour or whatever is altered, will require going outside the app to do something to the native desktop. At minimum windowing-specific code. And for "Linux" that I would ahve thought would depend on what window/desktop manager the user is running, can you at least limit yourself to one variant like GNOME or whatever? The KDE desktop might be easiest because it's written in or integrates with Qt, doesn't it?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        adamsmith
        wrote on last edited by
        #3

        I'd like it to run on as many desktop environments as possible, so if anybody knows for example how to integrate that geometry change in any DE such as gnome, i3, bspwn, KDE, etc. I'd be happy to hear about it or be redirected to the place where I can learn about it.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          From a really quick look, it seems that polybar uses low level X11 protocol. Based on your goal you might want to take a look KDE's Latte project.

          Qt integrates with these desktop environment so if you want to go deeper and provide a replacement for their bar, you should contact the developers of these projects.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2

          • Login

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