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. If I need a class for rendering a widget how do I pass information to the instance that renders it
QtWS25 Last Chance

If I need a class for rendering a widget how do I pass information to the instance that renders it

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 179 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.
  • A Offline
    A Offline
    AI_Messiah
    wrote on last edited by
    #1

    So I can create an instance and play with that instance of the class, but how do I pass information globally or something like that. I have debugged my code. I know that the instance that I was using works. When I go to another method within the class and put a breakpoint to the loop that contains the stuff to draw the debugger does not stop there.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AI_Messiah
      wrote on last edited by
      #2

      I found out how to do this to go to the Main Window and put```
      this->ui->widget->

      then you can use this to affect the widget class.
      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Yes if made with Designer.
        You do not need to put this-> in front in c++.
        Its not common and frankly not needed.

        1 Reply Last reply
        1

        • Login

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