I should have said that I used QT Designer to generate the form.
This declares all members that I need access to as public, and I can access them if I have a pointer to the class, which I have in the code snippet from systemsettingsdialog.cpp. (ui). However, this is declared as a local variable, and is out of scope when I try to access it from MainWindow.cpp.

If somebody could explain what "systemsettingsdialog::systemsettingsdialog(QWidge t *parent) : QDialog(parent), ui(new Ui::systemsettingsdialog)" means, and how to make "ui" public, then I think I can sort out the problem.

-a.