How to programmatically click a QPushButton

后端 未结 3 817
暖寄归人
暖寄归人 2021-01-07 20:40

I am using Qt. I have a button in the page added via the Qt Creator. It is connected to the method void MyPage::on_startButton_clicked().

I want to prog

3条回答
  •  耶瑟儿~
    2021-01-07 21:30

    If you do not want the animation stuff, you can also just call the method:

    on_startButton_clicked();
    

提交回复
热议问题