Asking for simple advise
I am rebuilding my C++ code.
Currently I have QtCreator build default class.
The class processes "system call" using library.
I like to rebuild the class passing either option #
or actual text of the system command.
What would be preferred?
I think passing a option # and let new, not default, constructor
to pic (switch ) the command...
The commands can be "string list" and the "switch" could get too convoluted...
What I have tried:
Pass option # - int ....
Here is the original default constructor
MainWindow_Bluewtoothctl_Dialog::MainWindow_Bluewtoothctl_Dialog(QWidget *parent)
: QDialog(parent)
, ui(new Ui::MainWindow_Bluewtoothctl_Dialog)
{
ui->setupUi(this);
#ifdef TRACE
...
#endif
}
Actually
how do I pass an int option to the "new constructor"?
As of now this looks this way:
MainWindow_Bluewtoothctl_Dialog(QWidget *parent = nullptr);