Hi and happy new year,
this is my problem:

my mainDialog has a qlistview. When I click on an item a modeless dialog is open showing some informations related to the item. What i want is that pressing, for example, PagDown it shows me informations on the next item of the qlistview (so having the focus on the informationDialog and without clicking on the item).

I have created this event:

Qt Code:
  1. void informationDialog::keyPressEvent(QKeyEvent *event)
  2. {
  3. if (event->key() == Qt::Key_PageUp){
  4. emit previousTitle();
  5. }
  6. else if (event->key() == Qt::Key_PageDown){
  7. emit nextTitle();
  8. }
  9. }
To copy to clipboard, switch view to plain text mode 

and in mainDialog:

Qt Code:
  1. void MainDialog::viewTitle(const QModelIndex& current)
  2. {
  3. if(!informationDialog) {
  4. informationDialog = new InformationDialog;
  5. connect(informationDialog, SIGNAL(previuosTitle()), this, SLOT(showPreviuosTitle()));
  6. connect(informationDialog, SIGNAL(nextTitle()), this, SLOT(showNextTitle()));
  7. }
  8. informationDialog->currentSelected(current);
  9. }
To copy to clipboard, switch view to plain text mode 

Which code I have to put in showPreviuosTitle()?

Thanks