Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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.



  • 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.

  • Lifetime Qt Champion

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


Log in to reply