Operator overloading on QStandardItemModel
-
Hi to all
This is my first question on Qt.
I have tried to set in a class QStandardItemModel as a parameter and i faled to get a copy of a model.
Is there any chance to make operator &= for the QStandardItemModel ?
sory for my english
Periklis. -
Hi and welcome to devnet,
No, not like that, QObject classes "can't be copied":http://qt-project.org/doc/qt-5/qobject.html#no-copy-constructor-or-assignment-operator . You would need to pass a pointer to your model as parameters.
Hope it helps