QContactSelector Class Reference
The QContactSelector class provides a way of selecting a single contact from a QContactModel. More...
#include <QContactSelector>
Inherits QDialog.
Public Functions
- 9 public functions inherited from QDialog
- 258 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
- 55 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 QContactSelector class provides a way of selecting a single contact from a QContactModel.
In addition, the user can optionally be allowed to indicate they want to create a new contact, if none of the existing contacts are suitable.
The following image displays a QContactSelector with the option to create a new QContact highlighted.

Member Function Documentation
QContactSelector::QContactSelector ( bool allowNew, QWidget * parent )
Constructs a QContactSelector with the given parent.
If allowNew is true, the selector provides the user an option to create a new QContact (see newContactSelected()).
bool QContactSelector::contactSelected () const
Returns true if the dialog was accepted with an existing contact selected. Otherwise returns false.
See also newContactSelected().
bool QContactSelector::newContactSelected () const
Returns true if the dialog was accepted via the option to create a new contact. Otherwise returns false.
See also contactSelected().
QContact QContactSelector::selectedContact () const
Returns the contact that was selected. If no contact was selected returns a null contact.
See also contactSelected() and newContactSelected().
void QContactSelector::setModel ( QContactModel * model )
Sets the model providing the choice of contacts to model.