class qtPMK : public QMainWindow,public System{ Q_OBJECTpublic: bool connectMySQL(); void LoadLogins();
class System{public: QString message(MESSAGE);
C++ (Qt)class System { System( QObject * obj = 0 } { mObject = obj ? obj : new QObject; mShouldDel = (obj == 0); } QObject * GetSystemObject( void ) { return mObject; } // data QObject * mObject; bool mShouldDel;};