-
Notifications
You must be signed in to change notification settings - Fork 0
What We Know About QLabel
Table of Contents
Content here... A label or QLabel is a rectangular area on a GUI that typically:
- has some text
- That's pretty much it. It has no interactivity.
- It typically identifies a text box or some other nearby widget.
After a widget is created we can change may of its characteristics ( and some of these can also be set up in its init, but changing at runtime is more general )
These characteristics are part of the widgets state. Some related to appearance. For example:
- size
- font
- colors
Different widget may have different appearance and action states, depending on their intended use.
You can find the code for the tab at: https://github.com/russ-hensel/qt5_by_example/blob/main/tabs/basic_widgets/tab_q_label.py but is better viewed in your own IDE.
Interaction to try on this tab:
- button press
- hover look for tool tips
- poke around -- do not forget to look
To see and change the state use the mutate/examine button and read the code in the mutate_x methods.
the documentation is in the code. Coverage is not complete, work continues.
You can use the wat-inspect to find out more or dive into the documentation which is all over the web. https://doc.qt.io/archives/qt-5.15/qlabel.html https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QLabel.html
( note: keeping screenshot up to date is a task that still eludes us, hopefully this is close enough )
)