开发者

My app does not seem to find my button from the UI file

开发者 https://www.devze.com 2022-12-31 02:31 出处:网络
What i did: create a project, edited the ui file with the designer tool, ran the project, everything is ok

What i did:

create a project,

edited the ui file with the designer tool,

ran the project, everything is ok

tried to add to my cppfile:

connect( pushButton_bracketBegin, SIGNAL( clicked() ), this, S开发者_StackOverflow社区LOT( pushButton_bracketBeginAction() ) );

but i get the error "‘pushButton_bracketBegin’ was not declared in this scope". this is my first project in qt and it should be fairly simple i guess (but yet out of my grasp ) :) appreciate the help


the button is part of the ui object, so the correct way to get it is ui->buttonName :D

0

精彩评论

暂无评论...
验证码 换一张
取 消