Here you can find answers to questions about how the board works. Use the links or search box below to find your way around.
Build your application in debug mode (add CONFIG+=debug into your project file) and make sure you have console support turned on (in Windows you need to add CONFIG+=console to your project file). Then rerun your application. You might get a warning message then like the following one, stating what the problem is:
Object::connect: No such signal QApplication::nonexistantsignal()
You can't use values in signal-slot connections, so any of these won't work:
QTimer::singleShot( 10000, this, SLOT(doSomething(10)));
connect(checkbox, SIGNAL(stateChanged(Qt::Checked)), this, SLOT(buttonChecked()));
Instead you have to connect to a custom slot and check the value there:
connect(checkbox, SIGNAL(stateChanged(int)), this, SLOT(buttonStateChanged(int))); //... void someClass::buttonStateChanged(int state){ if(state==Qt::Checked) buttonChecked(); }
You can't put parameter names (nor values) inside SIGNAL() and SLOT() macros. This won't work:
connect(tableView, SIGNAL(doubleClicked(const QModelIndex &index)), this, SLOT(myTableView_doubleClicked(const QModelIndex &index)));Instead you should write:
connect(tableView, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(myTableView_doubleClicked(const QModelIndex &)));