Tito
8th September 2010, 19:27
for no apparent reason, I can't get QMessageBox::information to work in my current application. It always crashes even in the simplest cases.
for example, even this causes a crash.
myAbout = new QAction(tr("About"), this);
connect(myAbout, SIGNAL(triggered()), SLOT(aboutClicked()));
#if defined(Q_OS_SYMBIAN) && defined(USE_ACTIONS)
menuBar()->addAction(myAbout);
#endif
void myApplication::aboutClicked()
{
qDebug() << "myApplication::aboutClicked()";
QMessageBox::information ( this, APP_NAME, "Some text" );
//QMessageBox::information ( 0, APP_NAME, "Some text" );
}
I do have a couple of threads running, but the QMessageBox is always called from the main UI thread. Any ideas?
for example, even this causes a crash.
myAbout = new QAction(tr("About"), this);
connect(myAbout, SIGNAL(triggered()), SLOT(aboutClicked()));
#if defined(Q_OS_SYMBIAN) && defined(USE_ACTIONS)
menuBar()->addAction(myAbout);
#endif
void myApplication::aboutClicked()
{
qDebug() << "myApplication::aboutClicked()";
QMessageBox::information ( this, APP_NAME, "Some text" );
//QMessageBox::information ( 0, APP_NAME, "Some text" );
}
I do have a couple of threads running, but the QMessageBox is always called from the main UI thread. Any ideas?