Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Conversion from Widget class to QWidget

Conversion from Widget class to QWidget

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 965 Views
  • 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 Offline
    N Offline
    noastick
    wrote on last edited by
    #1

    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
    0
    • N Offline
      N Offline
      noastick
      wrote on last edited by
      #2

      Thank you very much! It worked!

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved