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
1
vote
1 answer

SLOT for statusbar->messageChanged() QT

I've problem with QT statusbar. I want to recive and process changeMessage from statusbar, bo I have problem with slot. How I should write correct slot or how to use connect function correct, with which I've problem too. file.cpp connect(statusbar,…
Miziol
  • 42
  • 8
1
vote
1 answer

Updating QWidgets in QStatusBar when QSortFilterProxyModel changes PYQT5

I have a QTableView which displays QSortFilterProxyModel and I would like to have a summary row (in QStatusBar) for the columns that can be summed up. I managed to get to this point, however, I would also like to update the sums of these columns…
New2coding
  • 715
  • 11
  • 23
1
vote
1 answer

Set QStatusBar minimum height per stylesheet

Is there a way to set a minimum height for a QStatusBar Docu says QStatusBaronly supports color I have tried QStatusBar::item also QStatusBar QLabel Is there a way to force a minimum size of QStatusBar (per stylesheet)?
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
1
vote
3 answers

Qt simple note pad, print line number on status bar of QmainWindow

I have created simple notepad from Qt/C++. I want to print the line number on status bar of QMainWindow when I click somewhere on the text area, like notepad of Microsoft Windows
G.Wije
  • 27
  • 1
  • 9
1
vote
1 answer

QDockWidget with QStatusBar possible?

For a QMainWindow I can easily set a status bar. When I have a floating QDockWidget, it behaves like a normal window (from user's perspective). What I want to archive is to add a QStatusBarto the floating QDockWidget. With the signal…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
0
votes
0 answers

How to change the style of Qt QStatusBar

I want the text shown by the QStatusBar.showMessage method starts 36 pixels off the left side of the bar. I have tried these 3 approaches from inside my MainWindow.cpp code: statusBar()->setStyleSheet("QStatusBar { padding-left: 36px;…
coterobarros
  • 941
  • 1
  • 16
  • 25
0
votes
1 answer

How to add back a removed widget by removeWidget() from a QStatusBar?

I have read the QStatusBar class Documentation, and it is says that removeWidget(): does not delete the widget but hides it. To add the widget again, you must call both the addWidget() and show() functions. As per the instructions, I wrote the…
0
votes
1 answer

Modify line behind QStatusbar widgets

Is there a way to modify (remove) the line behind a permanent widget in a QStatusbar? I don't know if it's important, but that's how I added the labels to the status bar: wStyleTest::wStyleTest(QWidget *parent) : QMainWindow(parent), ui(new…
Bamp
  • 25
  • 5
0
votes
1 answer

How to set text on status bar and enabled close button in QDockWidget in Qt?

I have a QDockWidget and QToolBar in it. I tried to set StatusBar for QdockWidget but it could not be set. Every QDockWidget has default close button (top most right corner) but my DockWidget does not have it ? Why ? And how to bring it back…
tushar
  • 313
  • 4
  • 10
0
votes
0 answers

Remove and add widget from QStatusBar

I have an application with a status bar to which I would like to add/remove a permanent widget (because I need it on the right). My idea is simple: I have a QLabel widget initially hidden and it will be visible only when a user checks the…
drn_svq
  • 1
  • 3
0
votes
2 answers

How to add a Status Bar in QT (without using forms) and display the length of the text and his coordinates (which are being refreshed)?

I would like to add the status bar to my program, but I can't find any examples of it online. I saw few people using some forms which I don't use. I would like my status bar to be able to show text length and his coordinates. And also I would like…
Jack Jones
  • 57
  • 6
0
votes
2 answers

QStatusBar remove padding

I want to add a colored Widget over the full QStatusBar. I added a QLabel with red background-color but there is a padding around the label, which i can't remove. what i tried: setSizeGripEnabled(false) setStyleSheet("QStatusBar { border: 0px;…
0
votes
1 answer

Error "Object has no attribute" applied to status Bar does not show status

I am trying to load and delete images when loading an image I create a status bar to tell me the name of the file and if I delete it, the bar is cleaned, I get this error and I do not know what it may be, luckily they load me the images but in the…
0
votes
1 answer

How to distribute QLabels in QStatusBar evenly

I am trying to distribute QLabels evenly and in the same manner as columns in QTableView (column-width-wise). Consequently, I would like to replace the strings (data.columns.values.tolist()[index]) in QLabels for "count: CountofRows" for columns…
New2coding
  • 715
  • 11
  • 23
0
votes
1 answer

PyQt5: main window shows without any widgets

I'm using PyQt5 to create my application. The problem is that my window appears, but without any widgets (i.e. without my Main class, without any menus, toolbars, etc.) - just still empty. I'm using Python-3.6 and PyQt5, Windows 10…
Y.Berthoud
  • 75
  • 8