2014-01-22 52 views

回答

12

你是對的。要做一個孤兒QObject,只需做

// on C++11 compiler 
object->setParent(nullptr); 

// on a pre-C++11 compiler 
object->setParent(0); 
+0

謝謝!在實現明顯的目標之前,我搜索了一段時間。 – BigONotation

相關問題