• 5202阅读
  • 2回复

怎样设置使按钮单击一下呈按下状态,再单击一下才恢复成原状 [复制链接]

上一主题 下一主题
离线aoo7wangyan
 

只看楼主 倒序阅读 楼主  发表于: 2009-09-12
怎样设置使按钮单击一下呈按下状态,再单击一下才恢复成原状。谢谢!
离线dbzhang800

只看该作者 1楼 发表于: 2009-09-12
看 manual:

checkable : bool

This property holds whether the button is checkable.

By default, the button is not checkable.

Access functions:

bool isCheckable () const
void setCheckable ( bool )
See also checked.

checked : bool

This property holds whether the button is checked.

Only checkable buttons can be checked. By default, the button is unchecked.

Access functions:

bool isChecked () const
void setChecked ( bool )
See also checkable.
离线aoo7wangyan

只看该作者 2楼 发表于: 2009-09-12
回 楼主(aoo7wangyan) 的帖子
谢谢!
快速回复
限100 字节
 
上一个 下一个