QComboBox::currentIndex() and QComboBox::currentText() give you the entry number and text respectively of the currently selected item in the combo box (if there is one). The signal you named tells you when that changes. So you want something like:
Qt Code:
private: int m_diety; ... m_deity = ui->deityCombo->currentIndex(); // or m_deity = ui.deityCombo->currentIndex(); // or m_deity = deityCombo->currentIndex(); // depending on how you have incorporated the designer UITo copy to clipboard, switch view to plain text mode
Bookmarks