• GUI


    1. 结构活动模板创建

                                               

          

                                              

                

                

    1.  QTDesigner

                       

    1. 3、加选择器,实现选定的控件添加背景图片

                                     

    4、控件显示背景色,即控件透明,

                                   

    5、 控件放上去和离开改变背景色  

             

    QPushButton:hover{background-color: rgb(255, 170, 0);}         #光标放上去显示

         

    QPushButton{                           #正常显示

    background-color: rgb(0, 255, 127);

    color: rgb(170, 85, 255);                      #字体颜色

    border-radius:20px                        #边框倒角

    }

              

    QPushButton:pressed{background-color: rgb(255, 170, 255);}     #鼠标按下显示

    QPushButton:checked{background-color: rgb(255, 170, 170);}     #鼠标选中显示,但QPushButton需要设置:

      

     6、改label的边框及颜色

            

    7、改边Widget的边距,与Widget之间的比例

                                                                   

    8、利用占位控件Qwidget分析布局  

                                                                     

    1.    gif文件只能借助movie进行处理
    2.  9、

     

  • 相关阅读:
    numpy函数库中一些常用函数的记录
    python 中的tile函数,shape函数,sum函数
    数据挖掘十大经典算法(详解)
    逻辑回归
    17个新手常见Python运行时错误
    5.3.4 Hadoop序列化框架
    5.3.3 自定义writable和RawComparatorWritable
    Qt5.11.2 VS2015编译activemq发送程序 _ITERATOR_DEBUG_LEVEL错误和崩溃解决
    @ConfigurationProperties实现配置注入到实体类
    C++微信网页协议实现和应用
  • 原文地址:https://www.cnblogs.com/forhowcar/p/13953332.html
Copyright © 2020-2023  润新知