How to call a function for adding items in QComboBox while click on QCombobox.
Please suggest any one...
How to call a function for adding items in QComboBox while click on QCombobox.
Please suggest any one...
What do you mean?
thank you for your reply.
I mean
how to add items into combobox dynamically from table.
My Code like
Constructor()
{
sqlquery qry("select distinct column from table",db);
while(qry.next())
{
combobox->addItem(qry.value(0).toString());
}
}
but when i add any new value in table i didn't get into combobox , until i close the app and reopen the app. why because the constructor calls only when i open the app.
but i want to get all values dynamically.
is there any signal for call our own function while click on combobox .
if it's possible i will run above query and add to combobox every time.
Bookmarks