Hello!
Please help!
here is code, compiled ok but don't work...

I insert it in constructor of mainWindow:
Qt Code:
  1. QAction *a = new QAction(this);
  2. a->setShortcut(QKeySequence(Qt::Key_F11));
  3. a->setShortcutContext(Qt::ApplicationShortcut);
  4. connect(a, SIGNAL(triggered() ), this, SLOT(showMaximized() ) );
To copy to clipboard, switch view to plain text mode 

Thanks!