首页 > 其他 > 详细

QT_动态样式管理

时间:2017-04-27 20:37:09      阅读:346      评论:0      收藏:0      [点我收藏+]
    void CPlaySlider::updatesliderstyle()
    {
        ui.suspend_slider->style()->unpolish(ui.suspend_slider);
        ui.suspend_slider->style()->polish(ui.suspend_slider);
        ui.suspend_slider->update();
    }
    void CPlaySlider::setslidersuspendstyle()
    {
        ui.suspend_slider->setProperty("suspend_sliderProperty", "suspend");
        updatesliderstyle();
    }
    void CPlaySlider::setsliderrunstyle()
    {
        ui.suspend_slider->setProperty("suspend_sliderProperty", "run");
        updatesliderstyle();
   }

技术分享

QT_动态样式管理

原文:http://www.cnblogs.com/liuhan333/p/6776362.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!