And if I want to do something like this: When user clicks a button, function is called. And in this function, I want to do if combo item was activated, than...
void Dialog::whichDialog()
{
if(itemName->activated())
...
}
void Dialog::whichDialog()
{
if(itemName->activated())
...
}
To copy to clipboard, switch view to plain text mode
Would it be correct? And if no, how should it be?
edit:
and what will be the item name, If designer generated this:
comboBox->addItem(QApplication::translate("Dialog", "Beaufort", 0, QApplication::UnicodeUTF8));
To copy to clipboard, switch view to plain text mode
Bookmarks