This is a piece of the header:
{
Q_OBJECT
public:
explicit Qt_utiles
(QObject *parent
= 0);
.....
class Qt_utiles : public QObject
{
Q_OBJECT
public:
explicit Qt_utiles(QObject *parent = 0);
.....
To copy to clipboard, switch view to plain text mode
and the constructor into cpp :
Qt_utiles
::Qt_utiles(QObject *parent
) :{
}
Qt_utiles::Qt_utiles(QObject *parent) :
QObject(parent)
{
}
To copy to clipboard, switch view to plain text mode
Ok. My questions ....
Must I create the class in this way ?:
Qt_utiles *qt_utiles : at h.file
Qt_utiles qt_utiles(0) :at cpp.file
There is another way ?
Every class that extends Qt must be created using * approach ?
(Yes, I know that these are basic C++ questions ...)
Thanks
Bookmarks