PDA

View Full Version : Convert QWidget to QVariant How to?



sergey_85
15th December 2009, 07:24
Hi!

Is it possible to convert QWidget (for ex. QPushButton, QLineEdit) to QVariant?

dbzhang800
15th December 2009, 07:38
Hi!

Is it possible to convert QWidget (for ex. QPushButton, QLineEdit) to QVariant?

impossible

sergey_85
15th December 2009, 07:50
Ok, can I convert my user type (base class QObject) to QVariant?


class MyObject: public QObject
{
public slots:
};
//How to convert MyObject to QVariant??

sudhansu
15th December 2009, 08:21
Ok, can I convert my user type (base class QObject) to QVariant?


class MyObject: public QObject
{
public slots:
};
//How to convert MyObject to QVariant??


It seems that this link is removed.