[Qt-interest] QMessageBox can't be closed

Marcos wcdmaxp at gmail.com
Sat Jan 29 03:34:41 CET 2011


Hi guys,

In the moment I'm writing a mobile app (to symbian), and it is start in
FullScreen mode, and in  a part of my code I use QMessageBox and when
QMessegeBox is called my application freezes. I found this bug report, but
it was closed ( http://bugreports.qt.nokia.com/browse/QTBUG-4953 )
P.S: That behavior is just on symbian and simulator, when a run my app to
Desktop, everything works fine.

I'm using Qt 4.7.1

A piece of my code is shown below:
//My app is running in full screen mode

QSqlQuery query;

    query.prepare("SELECT name FROM unit WHERE name = ?");

    query.addBindValue(ui->leName->text().trimmed());

     query.exec();

     if(query.next())

    {

        //When this message is called my app freezes

        QMessageBox::warning(this, tr("Warning"), tr("Unit already
registered"));

         return;

    }


Marcos,


Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110129/7b52a03f/attachment.html 


More information about the Qt-interest-old mailing list