araglin
29th January 2009, 14:04
Hello!
Please help!
here is code, compiled ok but don't work...
I insert it in constructor of mainWindow:
QAction *a = new QAction(this);
a->setShortcut(QKeySequence(Qt::Key_F11));
a->setShortcutContext(Qt::ApplicationShortcut);
connect(a, SIGNAL(triggered() ), this, SLOT(showMaximized() ) );
Thanks!
Please help!
here is code, compiled ok but don't work...
I insert it in constructor of mainWindow:
QAction *a = new QAction(this);
a->setShortcut(QKeySequence(Qt::Key_F11));
a->setShortcutContext(Qt::ApplicationShortcut);
connect(a, SIGNAL(triggered() ), this, SLOT(showMaximized() ) );
Thanks!