I subclassed a QPushButton and in the constructor I changed the text of QPushButton however the text does not change in the actual button any suggestions on why the text is not changing ?
Qt Code:
#ifndef QCUSTOMPUSHBUTTON #define QCUSTOMPUSHBUTTON #include "QObject" #include "QPushButton" { Q_OBJECT public: { this->setText("testing123"); } signals: void DoubleClick(); protected: { emit DoubleClick(); } }; #endif // QCUSTOMPUSHBUTTONTo copy to clipboard, switch view to plain text mode
Bookmarks