Pass the widgets by pointer. You cannot pass them by value, even if that made sense, because they do not have the requisite copy constructor.
Qt Code:
class MyClass { ... private: QWidget *aWidget; }; { aWidget = widget; }To copy to clipboard, switch view to plain text modeQObject qobject_cast to the relevant type and check the returned pointer.2.- How can I identify what kind of Qwidget is 'A_widget_to_remember'
Bookmarks