Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

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

    General and Desktop
    2
    3
    60
    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.
    • A
      AI_Messiah last edited by

      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 Reply Quote 0
      • A
        AI_Messiah last edited by

        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 Reply Quote 0
        • mrjj
          mrjj Lifetime Qt Champion last edited by

          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 Reply Quote 1
          • First post
            Last post