zoukankan      html  css  js  c++  java
  • paip.提高用户体验c++图片按钮方法总结

    paip.提高用户体验----c++图片按钮方法总结


    作者Attilax ,  EMAIL:1466519819@qq.com 
    来源:attilax的专栏
    地址:http://blog.csdn.net/attilax


    1.new>qt  >resource file  >>*.qrc
    -------------------------------------------
    then can auto change in *.pro 
    RESOURCES += \
        picnavbek.qrc


    2.add a jpg into from gui   ... finaly open with txt editor like this
    ----------------------------------------------------------------


    <RCC>
        <qresource>
            <file>C:/Documents and Settings/Administrator/桌面/nav2.jpg</file>
        </qresource>
    </RCC>


    3.button>rit key >change stylySheet> add resource >select resource  :select the pic..   then floow txt box like this
    =============================================================================================
    background-image: url(:/C:/Documents and Settings/Administrator/桌面/nav2.jpg);




    参考
    QT4.6上怎样给按钮加背景图片 - CSDN论坛 - CSDN.NET.htm





  • 相关阅读:
    搜索入门练习题3 全组合 题解
    搜索入门练习题1 素数环 题解
    搜索入门练习题2 全排列 题解
    二分 大纲
    凸包
    快速幂&矩阵快速幂
    最长不下降子序列的优化
    poj 3190 Stall Reservations
    poj 2431 Expedition

  • 原文地址:https://www.cnblogs.com/attilax/p/15199534.html
Copyright © 2011-2022 走看看