I need to change the mainwindow or the native app size width x height in other class not in the mainwindow class. How can I do this?
void OptionsDialog::resetWindowLayoutClicked(QResizeEvent* event) {
QMainWindow::resize(640, 483);
}
This is my first try but with no happiness.
I would make a signal and connect it to a slot in the main window.
For example:
When you create the OptionsDialog, connect the signal like this:
And implement the slot: