diff -r dee5afe5301f -r 3f74d0d4af4c examples/widgets/wiggly/dialog.cpp --- a/examples/widgets/wiggly/dialog.cpp Mon Mar 15 12:43:09 2010 +0200 +++ b/examples/widgets/wiggly/dialog.cpp Thu Apr 08 14:19:33 2010 +0300 @@ -57,15 +57,16 @@ setLayout(layout); #ifdef QT_SOFTKEYS_ENABLED + QAction *exitAction = new QAction(tr("Exit"), this); + exitAction->setSoftKeyRole(QAction::NegativeSoftKey); + connect (exitAction, SIGNAL(triggered()),this, SLOT(close())); + addAction (exitAction); - QAction *exitAction = new QAction(tr("Exit"), this); - exitAction->setSoftKeyRole(QAction::NegativeSoftKey); - connect (exitAction, SIGNAL(triggered()),this, SLOT(close())); - addAction (exitAction); - + Qt::WindowFlags flags = windowFlags(); + flags |= Qt::WindowSoftkeysVisibleHint; + setWindowFlags(flags); #endif - connect(lineEdit, SIGNAL(textChanged(QString)), wigglyWidget, SLOT(setText(QString))); if (!smallScreen){