|
KanoopGuiQt 1.3.0
Qt GUI utility library
|
|
QFrame subclass with logging support and color Q_PROPERTYs. More...
#include <frame.h>
Inheritance diagram for Frame:
Collaboration diagram for Frame:Public Member Functions | |
| Frame (QWidget *parent=nullptr) | |
| Construct with an optional parent. | |
| QColor | foregroundColor () const |
| Return the current foreground color. | |
| void | setForegroundColor (const QColor &color) |
| Set the foreground color and repaint. | |
| QColor | backgroundColor () const |
| Return the current background color. | |
| void | setBackgroundColor (const QColor &color) |
| Set the background color and repaint. | |
Properties | |
| QColor | foregroundColor |
| Foreground (text) color of the frame. | |
| QColor | backgroundColor |
| Background color of the frame. | |
QFrame subclass with logging support and color Q_PROPERTYs.
Frame exposes foregroundColor and backgroundColor as Qt properties, allowing them to be set from Qt Designer or stylesheets and causing the widget to repaint with the chosen colors.
|
explicit |
Construct with an optional parent.
| parent | Optional QWidget parent |
|
inline |
|
inline |
| void Frame::setBackgroundColor | ( | const QColor & | color | ) |
Set the background color and repaint.
| color | New background color |
| void Frame::setForegroundColor | ( | const QColor & | color | ) |
Set the foreground color and repaint.
| color | New foreground color |
|
readwrite |
|
readwrite |