|
| SearchBox (QWidget *parent=0) |
|
QString | placeholderText () const |
|
void | setPlaceholderText (const QString &defaultText) |
|
void | setShowSearchIcon (bool show) |
| False by default.
|
|
bool | showSearchIcon () const |
|
void | setAlwaysShowClearIcon (bool show) |
| False by default.
|
|
bool | alwaysShowClearIcon () const |
|
void | setSearchIcon (const QIcon &icon) |
| Set the search icon.
|
|
QIcon | searchIcon () const |
| Get the current search icon.
|
|
void | setClearIcon (const QIcon &icon) |
| Set the clear icon.
|
|
QIcon | clearIcon () const |
| Get the current clear icon.
|
|
QLineEdit with two QIcons on each side: search and clear. "Search" selects all the text "Clear" clears the current text See QLineEdit::text to set/get the current text. SearchBox's purpose is to be used to filter other widgets. e.g.: SearchBox searchBox; QSortFilterProxyModel filterModel; QObject::connect(&searchBox, SIGNAL(textChanged(QString)), &filterModel, SLOT(setFilterFixedString(QString))); ...