hi,
i'd like to have shortcuts to change between the tabs of a tabwidget. after some searching through the fine manual and some posts i came up with:
Qt Code:
  1. page1 = new QAction(this);
  2. page1->setShortcut(QKeySequence(tr("Ctrl+F1")));
  3. connect(page1, SIGNAL(triggered()), this, SLOT(openPage1()));
To copy to clipboard, switch view to plain text mode 
which i hope will call
Qt Code:
  1. void MainWindow::openPage1() {
  2. tabWidget->setCurrentIndex(0);
  3. }
To copy to clipboard, switch view to plain text mode 
(and obviously two other, similar actions and functions for the other two tabs.

nothing happens. i also tried to set the translation to Strg+F1 in linguist as i am using the app in german. Where am i going wrong?