I am newbie to Qt and currently working on one QTabWidget which have two tabs means two widgets, as such
tabWidget->addTab(new First_Widget(),tr("Home"));
tabWidget->addTab(new Second_Widget(), tr("Download"));
First Widget have some integers and floats values which i want to use in the second widget. I can make a constructor of second widget like this
tabWidget->addTab(new Second_Widget(argument1, argument2,argument3), tr("Download"));
and i think i can call second tab form the first widget but in that case the second tab will be hide until i don't click the respective button. Can anyone tell me how i can use first tab's values in the second.
You can maintain variables at tabWidget calling level. and pass variables by reference to both the tabs.