I have created the widegts in the form editor and changed their object names. I then save the form and then run the code.
I get the error error: 'primaryOrderComboBox' was not declared in this scope
as well as for all other objects.
When you use the form editor any changes are made in the ui file and you have to tell it look there.
1 2 3 4 5 6 7
primaryOrderComboBox->addItem("Ascending");
primaryOrderComboBox->addItem("Descending");
// For example should be
ui->primaryOrderComboBox->addItem("Ascending");
ui->primaryOrderComboBox->addItem("Descending");
If you had created them in the header file, what you have would work.