myapp-classdef.cpp.svn-base

来自「QT方面的开发」· SVN-BASE 代码 · 共 16 行

SVN-BASE
16
字号
class MyApplication : public QApplication {  Q_OBJECT   /* Required for Qt RTTI */  public:    static MyApplication* instance();    QString imagesURL() const;//   other members go here...};//   ... in the implementation file:MyApplication* MyApplication::instance() {    static MyApplication* inst = 0;    if (inst == 0) {        inst = qobject_cast<MyApplication*>(qApp);    }    return inst;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?