这是从黑莓10 helloworld程序中提取的头文件.
#ifndef ApplicationUI_HPP_ #define ApplicationUI_HPP_ #include <QObject> namespace bb { namespace cascades { class Application; class LocaleHandler; } } class QTranslator; /*! * @brief Application object * * */ class ApplicationUI : public QObject { Q_OBJECT public: ApplicationUI(bb::cascades::Application *app); virtual ~ApplicationUI() { } private slots: void onSystemLanguageChanged(); private: QTranslator* m_pTranslator; bb::cascades::LocaleHandler* m_pLocaleHandler; }; #endif /* ApplicationUI_HPP_ */
在类名声明之后,我对冒号运算符感到困惑.
class ApplicationUI : public QObject
这是什么意思?