The code generated by uic from your Designer ui file is included in your systemsettingsdialog class (by the template code generated by Qt Creator I assume) as a private member variable, nothing public about it.
This:
systemsettingsdialog
::systemsettingsdialog(QWidget *parent
) : ui(new Ui::systemsettingsdialog)
{
...
}
systemsettingsdialog::systemsettingsdialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::systemsettingsdialog)
{
...
}
To copy to clipboard, switch view to plain text mode
is the constructor for the class, and lines 2 and 3 are the initialization list for the parent class and member variables.
You can grant controlled access to private parts of the systemsettingsdialog by creating public getter functions in the systemsettingsdialog. Allowing uncontrolled access by, for example, moving the declaration of ui into the public part of the class is generally a bad idea even if it is valid C++.
Bookmarks