Questions tagged [qstatusbar]

The QStatusBar class provides a horizontal bar suitable for presenting status information.

The QStatusBar class provides a horizontal bar suitable for presenting status information. Each status indicator falls into one of three categories:

  • Temporary - briefly occupies most of the status bar. Used to explain tool tip texts or menu entries, for example.
  • Normal - occupies part of the status bar and may be hidden by temporary messages. Used to display the page and line number in a word processor, for example.
  • Permanent - is never hidden. Used for important mode indications, for example, some applications put a Caps Lock indicator in the status bar.

    QStatusBar can display all three types of indicators.

Typically, a request for the status bar functionality occurs in relation to a QMainWindow object. The related functions are

  • showMessage()
  • clearMessage()
  • currentMessage()
35 questions
25
votes
3 answers

QLabel embedding in QStatusBar using Qt Designer

Is there any solution to embed a QLabel in QStatusBar using Qt Designer?
Mohammad Sheykholeslam
  • 1,379
  • 5
  • 18
  • 35
5
votes
6 answers

Qt statusbar color

I'm using Qt with Python, and I've got a mainwindow with a status bar at the bottom. I can display a message in the bar using a QLabel, and set the color of that message using something like "In progress" for the QLabel…
user672033
5
votes
2 answers

qt status bar center align?

How can I center align the text in QStatusBar? By default it is always left aligned. I know I can add a QLabel and set alignment, but I want to use plain text, and .showMessage(QString, int) method, so I can add the timeout value.
ZolaKt
  • 4,683
  • 8
  • 43
  • 66
4
votes
2 answers

How to remove the divider between widgets when using `statusBar.addPermanentWidget()`?

Is it possible to remove the divider line between two widgets that were added to the status bar using .addPermanentWidget()? I suspect that it is possible, but I haven't really found any literature on how to proceed. import sys from PyQt5.QtWidgets…
artomason
  • 3,625
  • 5
  • 20
  • 43
3
votes
1 answer

How to access QstatusBar in QMainWindows from a widget class?

I'm trying to change the text of a Qstatusbar created in a mainwindows Class from another class I've try several thing for the web but didn't find the answer ... class MainWindow(QMainWindow): def __init__(self, widget): …
Mamquam
  • 37
  • 6
3
votes
2 answers

QStatusBar.showMessage() not updating consistently

MY APOLOGIES: THIS APPEARS TO BE A DUPLICATE OF: PyQt - running a loop inside GUI WHICH HAS A GOOD SOLUTION AND TUTORIAL LINK. My Setup: OS: Windows 10 ver1903 Python: 3.7.4 PyQt5: 5.13.0 My Problem: PyQt5 is not updating the statusBar…
LastTigerEyes
  • 647
  • 1
  • 9
  • 21
3
votes
3 answers

Prevent window resize during QStatusBar resize

If application's main window has QStatusBar and if it's width becomes bigger (for example during adding a widget) than the main window's width, the window automatically resizes to fit status bar. I wonder is there way to prevent window's size…
nabroyan
  • 3,225
  • 6
  • 37
  • 56
2
votes
3 answers

How to hide the status bar Qt

I'm trying to create an opening screen for my software. Because I have a status bar in the QMainwindow then Qt makes me a transparent line line at the bottom of the opening screen. I tried using: this-> statusBar () -> hide (); ui-> statusBar-> hide…
YOKO
  • 119
  • 1
  • 7
2
votes
0 answers

Redirecting QThread cout Application Output to QStatusBar? C++

How do I read the cout message written in a non-Qt codebase running within a QThread into QStatusBar? Problems with existing methods: Emitters would not work because the code that is sending cout messages is not based in Qt. QProcess::readAll()…
Graeme Rock
  • 601
  • 5
  • 21
2
votes
1 answer

QML StatusBar with SizeGrip

I notice that QML's StatusBar type doesn't include the SizeGrip like QStatusBar does. In order to get a size grip, I had to instead embed the QML into a QMainWindow with a QStatusBar. Although this works, it complicates the rest of the app and it's…
gwarn
  • 136
  • 1
  • 7
2
votes
1 answer

How to get colored transient messages in QStatusBar?

I need to color-code messages flashing in the status bar of my Qt5.5 app. I am using showMessage like this: ui->statusBar->showMessage("My Message", 5000); I would like to change the color of a single message. I've found no way short of subclassing…
ZioByte
  • 2,690
  • 1
  • 32
  • 68
2
votes
3 answers

Add QStatusBar in a QVBoxLayout

I need to add a status bar beneath a table in a QVBoxLayout. The problem is that I don't know why status bar is not shown. In the QBoxLayout, I have added a tableView, under the table I need to have the status bar. Here is part of my code: …
Orcl User
  • 293
  • 1
  • 5
  • 20
1
vote
1 answer

How to add a permanent icon before statusBar in QMainWindow?

I want to add a permanent icon before the statusBar in QMianWindow, and I know that there is an addWidget method that can be used, but the widgets added by this method will only be displayed when there are messages. I also know that in other…
Poison
  • 75
  • 1
  • 6
1
vote
1 answer

How to Fix QStatusBar that stops to work if placed it in Layout?

I succeeded to moved the QStatusBar to a specific location (repositioning), but when I hover I don't see the tips anymore. I tried QStatusBar.show() or .setVisible(True) but doesn't still work. How would you approach this. Thanks
1
vote
1 answer

PyQt5 - repeatedly update status-bar from a list of strings without blocking the gui

I can use QStatusBar to display a message by feeding it a single string, e.g.: self.statusBar().showMessage("My message here, also show it for 1 sec", 1000) In my event-loop, the above message will be shown on the status-bar for exactly 1000 ms.…
ivan199415
  • 375
  • 3
  • 12
1
2 3