The QListObject class is used to pass a list of object to a view page. NOTE: Always when you need to pass a list of object to a view page you will need to use this class, your class need to inherit from the QObject class and all the methods needs to be in the public slots session.
More...
#include <qlistobject.h>
|
| | QListObject (QObject *parent=0) |
| | This constructor can receive a parent. More...
|
| |
|
| QListObject (QObject *parent, const std::initializer_list< QObject *> &objects) |
| | Contructs a QListObject with N elements.
|
| |
|
| QListObject (const std::initializer_list< QObject *> &objects) |
| | Contructs a QListObject with N elements.
|
| |
|
| ~QListObject () |
| | Destructor.
|
| |
| QObject * | operator[] (int index) const |
| | This is an operator overload and returns a QObject given an specific index. More...
|
| |
| int | size () const |
| | This method returns the number of elements in this QListObject. More...
|
| |
| void | add (QObject *object) |
| | This method add a new QObject to the list. More...
|
| |
|
void | add (const std::initializer_list< QObject *> &objects) |
| | This method add a N new QObjects to the list.
|
| |
| void | remove (QObject *object) |
| | This method remove and object from the list. More...
|
| |
| bool | getAutoDelete () const |
| | getAutoDelete More...
|
| |
| void | setAutoDelete (bool value) |
| | setAutoDelete More...
|
| |
The QListObject class is used to pass a list of object to a view page. NOTE: Always when you need to pass a list of object to a view page you will need to use this class, your class need to inherit from the QObject class and all the methods needs to be in the public slots session.
◆ QListObject()
| QListObject::QListObject |
( |
QObject * |
parent = 0 | ) |
|
|
inlineexplicit |
This constructor can receive a parent.
- Parameters
-
◆ add()
| void QListObject::add |
( |
QObject * |
object | ) |
|
|
inline |
This method add a new QObject to the list.
- Parameters
-
◆ getAutoDelete()
| bool QListObject::getAutoDelete |
( |
| ) |
const |
|
inline |
◆ operator[]()
| QObject* QListObject::operator[] |
( |
int |
index | ) |
const |
|
inline |
This is an operator overload and returns a QObject given an specific index.
- Parameters
-
| index | : This is an integer value. |
- Returns
- QObject *
◆ remove()
| void QListObject::remove |
( |
QObject * |
object | ) |
|
|
inline |
This method remove and object from the list.
- Parameters
-
◆ setAutoDelete()
| void QListObject::setAutoDelete |
( |
bool |
value | ) |
|
|
inline |
◆ size()
| int QListObject::size |
( |
| ) |
const |
|
inline |
This method returns the number of elements in this QListObject.
- Returns
- int
The documentation for this class was generated from the following files:
- /home/herik/CPPWebFramework/CPPWebFramework/cwf/qlistobject.h
- /home/herik/CPPWebFramework/CPPWebFramework/cwf/qlistobject.cpp