You don't use QSettings to pass data between forms. QSettings is for accessing application's configuration and other data that need permanent store.Originally Posted by patrik08
To pass data between forms you can use signals & slots mechanism or just create a normal methods that pass data:Qt Code:
void Form1::passDataToSecondForm() { // _form2 points to an object that represents the second form. _form2->setSomething( _ui.someLineEdit->text() ); }To copy to clipboard, switch view to plain text mode




Reply With Quote

Bookmarks