1
J'ai la classe MyForm
qui a hérité de QMainWindow
.Qt test UI: Impossible d'exécuter QTest :: keyPress
Voici mon code:
std::auto_ptr<MyForm> pForm(new MyForm(3,3));
QTest::keyPress(&pForm, Qt::Key_0);
Cependant quand j'utilise QTest::keyPress
là-dessus, je reçois:
error: no matching function for call to keyPress(std::auto_ptr*, Qt::Key)
Toutes les idées?