QLineEdit subclass with foreground and background color helpers.
More...
#include <lineedit.h>
|
| | LineEdit (QWidget *parent=nullptr) |
| | Construct with an optional parent.
|
| |
| | LineEdit (const QString &text, QWidget *parent=nullptr) |
| | Construct with initial text.
|
| |
| void | setForegroundColor (const QColor &color) |
| | Set the foreground (text) color via a stylesheet.
|
| |
| void | setBackgroundColor (const QColor &color) |
| | Set the background color via a stylesheet.
|
| |
QLineEdit subclass with foreground and background color helpers.
LineEdit provides setForegroundColor() and setBackgroundColor() as convenient alternatives to manual stylesheet construction.
Definition at line 13 of file lineedit.h.
◆ LineEdit() [1/2]
| LineEdit::LineEdit |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Construct with an optional parent.
- Parameters
-
| parent | Optional QWidget parent |
◆ LineEdit() [2/2]
| LineEdit::LineEdit |
( |
const QString & |
text, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
Construct with initial text.
- Parameters
-
| text | Initial text content |
| parent | Optional QWidget parent |
◆ setBackgroundColor()
| void LineEdit::setBackgroundColor |
( |
const QColor & |
color | ) |
|
Set the background color via a stylesheet.
- Parameters
-
| color | New background color |
◆ setForegroundColor()
| void LineEdit::setForegroundColor |
( |
const QColor & |
color | ) |
|
Set the foreground (text) color via a stylesheet.
- Parameters
-
| color | New foreground color |
The documentation for this class was generated from the following file: