• 3878阅读
  • 1回复

Qt 4 如何改变按钮图片? [复制链接]

上一主题 下一主题
离线cresthong
 

只看楼主 倒序阅读 楼主  发表于: 2007-11-19
— 本帖被 XChinux 执行加亮操作(2008-07-17) —
按钮点击后可改变背景图片,怎么实现?
离线zhangjianjun
只看该作者 1楼 发表于: 2007-11-20
In your header file, declare the following two slot:
    void on_pushButton_pressed();
    void on_pushButton_released();
Then change image in the two slot, I have tested in my machine, it has worked
快速回复
限100 字节
 
上一个 下一个