摘要:        
通过metamethod调用函数普通函数,发现indexOfMethod总是返回-1,查看文档,发现下面: Q_INVOKABLE Apply this macro to definitions of member functions to allow them to be invoked via the meta-object system. The macro is written befor...    阅读全文
posted @ 2011-07-04 16:36
katago
阅读(316)
评论(0)
推荐(0)
        
            
        
        
摘要:        
QList<QCheckBox *> widgets = findChildren<QCheckBox *>(); foreach(QCheckBox* checkbox, widgets) {  connect(checkbox, SIGNAL(stateChanged(int)), this, SLOT(slotEnableSaveButton())); }    阅读全文
posted @ 2011-07-04 12:03
katago
阅读(426)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号