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
Forum Updated to NodeBB v4.3 + New Features

Conversion from Widget class to QWidget

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 970 Views 1 Watching
  • 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 19 Nov 2014, 23:48 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 20 Nov 2014, 22:38 last edited by
      #2

      Thank you very much! It worked!

      1 Reply Last reply
      0

      2/2

      20 Nov 2014, 22:38

      • Login

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