Conversion from Widget class to QWidget
-
Hi!
I have a problem with Qt I'm hoping you can help me with.
I created a Qt Designer Form Class set as a Widget vent (this is the name). In MainWindow I created a TabWidget. Every new tab is a new Widget vent. Right?
The thing is, now I want to execute an action from MainWindow using ui->tabWidget->currentWidget(). When I execute the action, I want to call a function from widget vent. But I can't, because currentWidget returns a QWidget* and vent is recognized as itself, not a QWidget (even though I created the Designer Form Class as one).
Help?
Thanks!
Hope I was clear enough.