Hi,

PageCounter is a QWizardPage of a QWizard. This is the slot I'm using in it:

Qt Code:
  1. void PageCounter::refreshDescription(int selectedItem)
  2. {
  3. // this changes the text of a QPlainTextEdit based on the selected item in QComboBox:
  4. plaintextDescriptionOfSelectedCounter->setPlainText(wizard->caller->getCounterDescription(originalCounterIDs.at(selectedItem)));
  5. }
To copy to clipboard, switch view to plain text mode 

Signal is a QComboBox currentIndexChanged(int) defined in PageCounter constructor:

Qt Code:
  1. connect(comboCounters, SIGNAL(currentIndexChanged(int)), this, SLOT(refreshDescription(int)));
To copy to clipboard, switch view to plain text mode 

Everything works, except if I cancel the wizard, then it crashes the whole program.
Maybe I should disconnect the signal, but I don't know where. This is the only clue I have, since it had been working perfectly before I added connect.

Thx!