collycrk
20th August 2015, 14:08
void test_Dialog::on_SaveUpdateComboBox_activated(const QString &arg1)
{
QString myarg;
myarg = ui->SaveUpdateComboBox->currentText();
if (myarg == "Update Work Order"){
ui->label_status->setText("Updating the Work Order table.....");
}
I am going to use a combobox to save/update to different database tables.
I'm getting a warning that tells me the arg1 option in the above test_Dialog line above is not being used.
(unused parameter arg1) is the warning.
My question is how do I use these parameters? I have tried myarg = &arg1; but that gives an error.
Thanks for your time and help on this matter, it will be appreciated! :-)
Please excuse the red-lipped smiley face in the text, if you do not see one I'm not seeing thing it was in the preview of this post.
{
QString myarg;
myarg = ui->SaveUpdateComboBox->currentText();
if (myarg == "Update Work Order"){
ui->label_status->setText("Updating the Work Order table.....");
}
I am going to use a combobox to save/update to different database tables.
I'm getting a warning that tells me the arg1 option in the above test_Dialog line above is not being used.
(unused parameter arg1) is the warning.
My question is how do I use these parameters? I have tried myarg = &arg1; but that gives an error.
Thanks for your time and help on this matter, it will be appreciated! :-)
Please excuse the red-lipped smiley face in the text, if you do not see one I'm not seeing thing it was in the preview of this post.