Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Conversion from Widget class to QWidget

    General and Desktop
    1
    2
    846
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      noastick last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • N
        noastick last edited by

        Thank you very much! It worked!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post