[Interest] Subclassing QTreeWidgetItem together with QObject
Andrej Kacian
andrej at kacian.sk
Fri Nov 27 10:19:24 CET 2015
Hello all,
I have a class derived from QTreeWidgetItem, and would like it to
be able to use Qt's signal/slot system.
Since QTreeWidgetItem is not itself derived from QObject, can I safely
inherit from QTreeWidgetItem and QObject at the same time? E.g.:
class MyTreeWidgetItem: public QTreeWidgetItem, public QObject
{
Q_OBJECT
...
}
Or is there a better way to do what I described?
Thanks in advance,
--
Andrej
More information about the Interest
mailing list