当QToolButton获得焦点时,我尝试以编程方式使其突出显示。我希望它被突出显示,就像当它被鼠标悬停选中时一样。这个是可能的吗?
谢谢!
发布于 2014-05-14 21:55:41
不知道您是否熟悉样式表,但这篇文章应该可以帮助您入门:
QPushButton:hover { background-color: rgb(224, 255, 0); }
QPushButton:focus { background-color: green; }https://stackoverflow.com/questions/23654592
复制相似问题