Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Functions of QWidgets used for QTableWidgets



  • Hi All,

    QTableWidgets class is a subclass of QtWidgets. The functions of QWidgets can be used for QTableWidgets objects. I have found some functions not working in my program.

    I have another doubt, can public slots be used as public member functions of a class?

    Thanks.



  • @Swati777999 said in Functions of QWidgets used for QTableWidgets:

    QTableWidgets class is a subclass of QtWidgets. The functions of QWidgets can be used for QTableWidgets objects.

    Yup.

    I have found some functions not working in my program.

    Like what? Yes you can call methods of QWidget on, say, QTableWidget.

    I have another doubt, can public slots be used as public member functions of a class?

    ? Yes, public slots are just public methods.


Log in to reply