If a QListWidget has checkable elements in any column, on needs to explicitly click on the checkbox to change the check state.
More...
#include <pqListWidgetCheckHelper.h>
Inherits QObject.
If a QListWidget has checkable elements in any column, on needs to explicitly click on the checkbox to change the check state.
However, sometimes we simply want the checkbox to be updated when the user clicks on the entire row. For that purpose, we use pqListWidgetCheckHelper. Simply create and instance of pqListWidgetCheckHelper, and set a List to use.
Definition at line 23 of file pqListWidgetCheckHelper.h.
◆ pqListWidgetCheckHelper()
pqListWidgetCheckHelper::pqListWidgetCheckHelper |
( |
QListWidget * |
ListWidget, |
|
|
QObject * |
parent |
|
) |
| |
◆ onItemClicked
void pqListWidgetCheckHelper::onItemClicked |
( |
QListWidgetItem * |
item | ) |
|
|
protectedslot |
◆ onItemPressed
void pqListWidgetCheckHelper::onItemPressed |
( |
QListWidgetItem * |
item | ) |
|
|
protectedslot |
The documentation for this class was generated from the following file: