QTaskSelector Class Reference
The QTaskSelector class provides a way of selecting a single task from a QTaskModel. More...
#include <QTaskSelector>
Inherits QDialog.
Public Functions
- 9 public functions inherited from QDialog
- 264 public functions inherited from QWidget
- 37 public functions inherited from QObject
- 20 public functions inherited from QPaintDevice
Additional Inherited Members
- 2 properties inherited from QDialog
- 56 properties inherited from QWidget
- 1 property inherited from QObject
- 5 public slots inherited from QDialog
- 20 public slots inherited from QWidget
- 1 public slot inherited from QObject
- 3 signals inherited from QDialog
- 1 signal inherited from QWidget
- 1 signal inherited from QObject
- 1 public type inherited from QObject
- 5 static public members inherited from QWidget
- 4 static public members inherited from QObject
- 13 static public members inherited from QPaintDevice
- 39 protected functions inherited from QWidget
- 8 protected functions inherited from QObject
- 1 protected function inherited from QPaintDevice
- 1 protected slot inherited from QWidget
- 2 protected variables inherited from QObject
- 1 protected type inherited from QPaintDevice
- 1 static protected member inherited from QObject
Detailed Description
The QTaskSelector class provides a way of selecting a single task from a QTaskModel.
In addition, the user can optionally be allowed to indicate they want to create a new task, if none of the existing tasks are suitable.
The following image shows a QTaskSelector with the option to create a new task highlighted.

Member Function Documentation
QTaskSelector::QTaskSelector ( bool allowNew, QWidget * parent )
Constructs a QTaskSelector with parent parent. If allowNew is true will also provide an option to indicate a new task should be created.
bool QTaskSelector::newTaskSelected () const
Returns true if the dialog was accepted with the option to create a new task selected. Otherwise returns false.
See also taskSelected().
QTask QTaskSelector::selectedTask () const
Returns the task that was selected. If no task was selected returns a null task.
See also taskSelected() and newTaskSelected().
void QTaskSelector::setModel ( QTaskModel * model )
Sets the model providing the choice of tasks to model.
bool QTaskSelector::taskSelected () const
Returns true if the dialog was accepted with an existing task selected. Otherwise returns false.
See also newTaskSelected().