add extra info in statusbar
add extra info in statusbar
Is it possible to add extra-info in statusbar with python script?
- Attachments
-
- extra-info.PNG (12.68 KiB) Viewed 1046 times
Last edited by awei on Tue Jul 07, 2020 2:04 am, edited 1 time in total.
Re: adding extra info in statusbar
What kind of info are you looking to add?
Re: adding extra info in statusbar
I do know that this is a QT concern and in the designer, there is a progress bar available. However, I am unsure how to get it attached to the status bar. If you create a UI file in QT and convert to python, I'm sure there is a way. The navigation style combo view is a python file as well. Anyone?
Re: adding extra info in statusbar
There already is a progress bar in the status bar.
You can just get a reference to it then use it.
I'm with my phone now so it's untested code :
Edit:and yes, you can virtually add any widget to the status bar with Python.
You can just get a reference to it then use it.

I'm with my phone now so it's untested code :
Code: Select all
from PySide import QtGui
pb = Gui.getMainWindow().statusBar().findChild(QtGui.QProgressBar)
pb.setValue(pb.maximum()/2)
pb.show()
Re: adding extra info in statusbar
This is very confusing. It has no sense to create an UI file to add a widget. And Combo view is coded in C++.hrhassan wrote: ↑Wed Jul 01, 2020 8:00 pm I do know that this is a QT concern and in the designer, there is a progress bar available. However, I am unsure how to get it attached to the status bar. If you create a UI file in QT and convert to python, I'm sure there is a way. The navigation style combo view is a python file as well. Anyone?
Re: adding extra info in statusbar
this is what i want!
thanks all. 
Code: Select all
import PySide2
from PySide2 import QtWidgets
pb = pb = PySide2.QtWidgets.QProgressBar()
pb.setValue(pb.maximum()/2)
Gui.getMainWindow().statusBar().addWidget(pb)
pb.show()

- Attachments
-
- 2020-07-02 075628.png (2.97 KiB) Viewed 896 times