I have a class MainWindow (window) and User . In the class window there is ui . I did the interface through the designer, so I get all the elements using ui->... But I need to get, for example a button, in the file with the main function. As an option, it was possible to make ui public variable, but it did not help. The thing is, I need to connect a button and a slot of the User class with connect .

  • 2
    Pass the User pointer to the window class constructor and connect there? - free_ze
  • It helped)) Thank you)) - Vlad

0