2010年7月1日 星期四

Qt 之 connect 的 error

Qt signal 與 slot 的 connect所傳遞的參數必須要系統能夠識別,否則在run的時候會出現類似下列訊息(compile 不會有錯誤),並且所對應的slot不會被呼叫。
QObject::connect: Cannot queue arguments of type 'CmdSeq'
(Make sure 'CmdSeq' is registered using qRegisterMetaType().)
(CmdSeq是我自己建立的class,無繼承任何class)

沒有留言:

搜尋此網誌