`
kongshanxuelin
  • 浏览: 926816 次
  • 性别: Icon_minigender_1
  • 来自: 宁波
社区版块
存档分类
最新评论

高仿360界面的实现(用纯XML和脚本实现)

阅读更多

本项目XML的桌面渲染依赖GQT开源项目(请感兴趣的朋友加入QQ讨论群:101189702,在群共享文件里下载GQT源码),以下是360界面实现的全部XML代码,所有的代码都在360_ui目录里,事件交互写在360safe.js里(再次申明是桌面程序不是Web):

 效果图:

 

 Qt设计器中:



 

 XML:

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>mainWidget</class>
 <widget class="QWidget" name="mainWidget">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>986</width>
    <height>714</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Form</string>
  </property>
  <property name="styleSheet">
   <string notr="true"/>
  </property>
  <layout class="QVBoxLayout" name="verticalLayout">
   <property name="spacing">
    <number>0</number>
   </property>
   <property name="margin">
    <number>0</number>
   </property>
   <item>
    <widget class="QFrame" name="titleBar">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <property name="minimumSize">
      <size>
       <width>0</width>
       <height>100</height>
      </size>
     </property>
     <property name="maximumSize">
      <size>
       <width>16777215</width>
       <height>100</height>
      </size>
     </property>
     <property name="frameShape">
      <enum>QFrame::StyledPanel</enum>
     </property>
     <property name="frameShadow">
      <enum>QFrame::Raised</enum>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout_7">
      <property name="spacing">
       <number>0</number>
      </property>
      <property name="margin">
       <number>0</number>
      </property>
      <item>
       <layout class="QHBoxLayout" name="horizontalLayout_6">
        <property name="spacing">
         <number>0</number>
        </property>
        <property name="leftMargin">
         <number>15</number>
        </property>
        <property name="topMargin">
         <number>0</number>
        </property>
        <property name="rightMargin">
         <number>5</number>
        </property>
        <item>
         <widget class="QLabel" name="version_title">
          <property name="text">
           <string>360安全卫士9.2</string>
          </property>
         </widget>
        </item>
        <item>
         <spacer name="horizontalSpacer_8">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>40</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
        <item>
         <widget class="QPushButton" name="pushButton">
          <property name="minimumSize">
           <size>
            <width>25</width>
            <height>25</height>
           </size>
          </property>
          <property name="maximumSize">
           <size>
            <width>25</width>
            <height>25</height>
           </size>
          </property>
          <property name="text">
           <string/>
          </property>
          <property name="icon">
           <iconset>
            <normaloff>360_img/contentWidget/medal.png</normaloff>360_img/contentWidget/medal.png</iconset>
          </property>
          <property name="iconSize">
           <size>
            <width>25</width>
            <height>25</height>
           </size>
          </property>
         </widget>
        </item>
        <item>
         <spacer name="horizontalSpacer_9">
          <property name="orientation">
           <enum>Qt::Horizontal</enum>
          </property>
          <property name="sizeType">
           <enum>QSizePolicy::Fixed</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>10</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
        <item>
         <widget class="GButton" name="skin_button">
          <property name="gqtIcon" stdset="0">
           <pixmap>360_img/sysButton/skin_button.png</pixmap>
          </property>
         </widget>
        </item>
        <item>
         <widget class="GButton" name="main_menu_button">
          <property name="gqtIcon" stdset="0">
           <pixmap>360_img/sysButton/main_menu.png</pixmap>
          </property>
         </widget>
        </item>
        <item>
         <widget class="GButton" name="min_button">
          <property name="gqtIcon" stdset="0">
           <pixmap>360_img/sysButton/min_button.png</pixmap>
          </property>
         </widget>
        </item>
        <item>
         <widget class="GButton" name="max_button">
          <property name="gqtIcon" stdset="0">
           <pixmap>360_img/sysButton/max_button.png</pixmap>
          </property>
         </widget>
        </item>
        <item>
         <widget class="GButton" name="close_button">
          <property name="gqtIcon" stdset="0">
           <pixmap>360_img/sysButton/close_button.png</pixmap>
          </property>
         </widget>
        </item>
       </layout>
      </item>
      <item>
       <widget class="QFrame" name="titleFrame">
        <property name="maximumSize">
         <size>
          <width>16777215</width>
          <height>75</height>
         </size>
        </property>
        <property name="frameShape">
         <enum>QFrame::StyledPanel</enum>
        </property>
        <property name="frameShadow">
         <enum>QFrame::Raised</enum>
        </property>
        <layout class="QHBoxLayout" name="horizontalLayout">
         <property name="spacing">
          <number>2</number>
         </property>
         <property name="topMargin">
          <number>0</number>
         </property>
         <property name="bottomMargin">
          <number>0</number>
         </property>
         <item>
          <widget class="GToolButton" name="tiJian">
           <property name="minimumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="text">
            <string>电脑体检</string>
           </property>
           <property name="icon">
            <iconset>
             <normaloff>360_img/toolWidget/tiJian.png</normaloff>360_img/toolWidget/tiJian.png</iconset>
           </property>
           <property name="iconSize">
            <size>
             <width>48</width>
             <height>48</height>
            </size>
           </property>
           <property name="gqtChecked" stdset="0">
            <bool>true</bool>
           </property>
          </widget>
         </item>
         <item>
          <widget class="GToolButton" name="muMa">
           <property name="minimumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="text">
            <string>木马查杀</string>
           </property>
           <property name="icon">
            <iconset>
             <normaloff>360_img/toolWidget/muMa.png</normaloff>360_img/toolWidget/muMa.png</iconset>
           </property>
           <property name="iconSize">
            <size>
             <width>48</width>
             <height>48</height>
            </size>
           </property>
          </widget>
         </item>
         <item>
          <widget class="GToolButton" name="louDong">
           <property name="minimumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="text">
            <string>漏洞修复</string>
           </property>
           <property name="icon">
            <iconset>
             <normaloff>360_img/toolWidget/louDong.png</normaloff>360_img/toolWidget/louDong.png</iconset>
           </property>
           <property name="iconSize">
            <size>
             <width>48</width>
             <height>48</height>
            </size>
           </property>
          </widget>
         </item>
         <item>
          <widget class="GToolButton" name="xiTong">
           <property name="minimumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="text">
            <string>系统修复</string>
           </property>
           <property name="icon">
            <iconset>
             <normaloff>360_img/toolWidget/xiTong.png</normaloff>360_img/toolWidget/xiTong.png</iconset>
           </property>
           <property name="iconSize">
            <size>
             <width>48</width>
             <height>48</height>
            </size>
           </property>
          </widget>
         </item>
         <item>
          <widget class="GToolButton" name="qingLi">
           <property name="minimumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="text">
            <string>电脑清理</string>
           </property>
           <property name="icon">
            <iconset>
             <normaloff>360_img/toolWidget/qingLi.png</normaloff>360_img/toolWidget/qingLi.png</iconset>
           </property>
           <property name="iconSize">
            <size>
             <width>48</width>
             <height>48</height>
            </size>
           </property>
          </widget>
         </item>
         <item>
          <widget class="GToolButton" name="jiaSu">
           <property name="minimumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="text">
            <string>优化加速</string>
           </property>
           <property name="icon">
            <iconset>
             <normaloff>360_img/toolWidget/jiaSu.png</normaloff>360_img/toolWidget/jiaSu.png</iconset>
           </property>
           <property name="iconSize">
            <size>
             <width>48</width>
             <height>48</height>
            </size>
           </property>
          </widget>
         </item>
         <item>
          <widget class="GToolButton" name="menZhen">
           <property name="minimumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="text">
            <string>电脑专家</string>
           </property>
           <property name="icon">
            <iconset>
             <normaloff>360_img/toolWidget/menZhen.png</normaloff>360_img/toolWidget/menZhen.png</iconset>
           </property>
           <property name="iconSize">
            <size>
             <width>48</width>
             <height>48</height>
            </size>
           </property>
          </widget>
         </item>
         <item>
          <widget class="GToolButton" name="ruanJian">
           <property name="minimumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>73</width>
             <height>75</height>
            </size>
           </property>
           <property name="text">
            <string>软件管理</string>
           </property>
           <property name="icon">
            <iconset>
             <normaloff>360_img/toolWidget/ruanJian.png</normaloff>360_img/toolWidget/ruanJian.png</iconset>
           </property>
           <property name="iconSize">
            <size>
             <width>48</width>
             <height>48</height>
            </size>
           </property>
          </widget>
         </item>
         <item>
          <spacer name="horizontalSpacer">
           <property name="orientation">
            <enum>Qt::Horizontal</enum>
           </property>
           <property name="sizeHint" stdset="0">
            <size>
             <width>40</width>
             <height>20</height>
            </size>
           </property>
          </spacer>
         </item>
         <item>
          <widget class="QLabel" name="logo">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="minimumSize">
            <size>
             <width>140</width>
             <height>67</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>140</width>
             <height>67</height>
            </size>
           </property>
           <property name="text">
            <string/>
           </property>
           <property name="pixmap">
            <pixmap>360_img/logo.png</pixmap>
           </property>
          </widget>
         </item>
        </layout>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item>
    <widget class="QFrame" name="contentFrame">
     <property name="frameShape">
      <enum>QFrame::StyledPanel</enum>
     </property>
     <property name="frameShadow">
      <enum>QFrame::Raised</enum>
     </property>
     <layout class="QHBoxLayout" name="horizontalLayout_3">
      <property name="margin">
       <number>0</number>
      </property>
      <item>
       <widget class="QFrame" name="leftFrame">
        <property name="frameShape">
         <enum>QFrame::StyledPanel</enum>
        </property>
        <property name="frameShadow">
         <enum>QFrame::Raised</enum>
        </property>
        <layout class="QVBoxLayout" name="verticalLayout_3">
         <item>
          <layout class="QHBoxLayout" name="horizontalLayout_2">
           <property name="sizeConstraint">
            <enum>QLayout::SetMinimumSize</enum>
           </property>
           <property name="leftMargin">
            <number>30</number>
           </property>
           <property name="topMargin">
            <number>20</number>
           </property>
           <item alignment="Qt::AlignTop">
            <widget class="QLabel" name="label">
             <property name="sizePolicy">
              <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
               <horstretch>0</horstretch>
               <verstretch>0</verstretch>
              </sizepolicy>
             </property>
             <property name="minimumSize">
              <size>
               <width>158</width>
               <height>125</height>
              </size>
             </property>
             <property name="maximumSize">
              <size>
               <width>158</width>
               <height>125</height>
              </size>
             </property>
             <property name="text">
              <string/>
             </property>
             <property name="pixmap">
              <pixmap>360_img/contentWidget/computer.png</pixmap>
             </property>
             <property name="alignment">
              <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
             </property>
            </widget>
           </item>
           <item>
            <layout class="QVBoxLayout" name="verticalLayout_2">
             <property name="spacing">
              <number>15</number>
             </property>
             <property name="topMargin">
              <number>20</number>
             </property>
             <item>
              <widget class="QLabel" name="suggest_label">
               <property name="text">
                <string>上次体检良好,请保持每天体检的习惯!</string>
               </property>
              </widget>
             </item>
             <item>
              <widget class="QLabel" name="system_safe_label">
               <property name="text">
                <string>上次体检时间是一分钟前,还有2个优化项可以优化。</string>
               </property>
              </widget>
             </item>
             <item>
              <spacer name="verticalSpacer_2">
               <property name="orientation">
                <enum>Qt::Vertical</enum>
               </property>
               <property name="sizeHint" stdset="0">
                <size>
                 <width>20</width>
                 <height>40</height>
                </size>
               </property>
              </spacer>
             </item>
            </layout>
           </item>
          </layout>
         </item>
         <item alignment="Qt::AlignHCenter|Qt::AlignVCenter">
          <widget class="QPushButton" name="power_button">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="minimumSize">
            <size>
             <width>180</width>
             <height>70</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>180</width>
             <height>70</height>
            </size>
           </property>
           <property name="text">
            <string>立即体检</string>
           </property>
           <property name="icon">
            <iconset>
             <normaloff>360_img/contentWidget/power.png</normaloff>360_img/contentWidget/power.png</iconset>
           </property>
           <property name="iconSize">
            <size>
             <width>35</width>
             <height>35</height>
            </size>
           </property>
          </widget>
         </item>
         <item>
          <spacer name="verticalSpacer">
           <property name="orientation">
            <enum>Qt::Vertical</enum>
           </property>
           <property name="sizeHint" stdset="0">
            <size>
             <width>20</width>
             <height>40</height>
            </size>
           </property>
          </spacer>
         </item>
        </layout>
       </widget>
      </item>
      <item>
       <widget class="QFrame" name="rightFrame">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="minimumSize">
         <size>
          <width>273</width>
          <height>0</height>
         </size>
        </property>
        <property name="frameShape">
         <enum>QFrame::StyledPanel</enum>
        </property>
        <property name="frameShadow">
         <enum>QFrame::Raised</enum>
        </property>
        <layout class="QVBoxLayout" name="verticalLayout_6">
         <property name="spacing">
          <number>0</number>
         </property>
         <property name="margin">
          <number>0</number>
         </property>
         <item>
          <widget class="QFrame" name="rightTopWidget">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="minimumSize">
            <size>
             <width>250</width>
             <height>130</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>250</width>
             <height>130</height>
            </size>
           </property>
           <property name="frameShape">
            <enum>QFrame::StyledPanel</enum>
           </property>
           <property name="frameShadow">
            <enum>QFrame::Raised</enum>
           </property>
           <layout class="QVBoxLayout" name="verticalLayout_4">
            <property name="spacing">
             <number>0</number>
            </property>
            <property name="margin">
             <number>10</number>
            </property>
            <item>
             <layout class="QHBoxLayout" name="login_layout">
              <property name="spacing">
               <number>0</number>
              </property>
              <property name="leftMargin">
               <number>5</number>
              </property>
              <item>
               <widget class="QPushButton" name="login_button">
                <property name="minimumSize">
                 <size>
                  <width>240</width>
                  <height>60</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>240</width>
                  <height>60</height>
                 </size>
                </property>
                <property name="text">
                 <string>登录我的360账号</string>
                </property>
               </widget>
              </item>
             </layout>
            </item>
            <item>
             <layout class="QHBoxLayout" name="register_layout">
              <property name="spacing">
               <number>5</number>
              </property>
              <item>
               <spacer name="horizontalSpacer_2">
                <property name="orientation">
                 <enum>Qt::Horizontal</enum>
                </property>
                <property name="sizeHint" stdset="0">
                 <size>
                  <width>40</width>
                  <height>20</height>
                 </size>
                </property>
               </spacer>
              </item>
              <item>
               <widget class="QLabel" name="priv_label">
                <property name="text">
                 <string/>
                </property>
                <property name="pixmap">
                 <pixmap>360_img/contentWidget/priv.png</pixmap>
                </property>
               </widget>
              </item>
              <item>
               <widget class="QLabel" name="info_label">
                <property name="text">
                 <string>开启炫动卫士图标,</string>
                </property>
               </widget>
              </item>
              <item>
               <widget class="QPushButton" name="register_button">
                <property name="minimumSize">
                 <size>
                  <width>0</width>
                  <height>0</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>555</width>
                  <height>555</height>
                 </size>
                </property>
                <property name="cursor">
                 <cursorShape>PointingHandCursor</cursorShape>
                </property>
                <property name="text">
                 <string>10秒免费注册</string>
                </property>
               </widget>
              </item>
              <item>
               <spacer name="horizontalSpacer_3">
                <property name="orientation">
                 <enum>Qt::Horizontal</enum>
                </property>
                <property name="sizeHint" stdset="0">
                 <size>
                  <width>40</width>
                  <height>20</height>
                 </size>
                </property>
               </spacer>
              </item>
             </layout>
            </item>
            <item>
             <layout class="QHBoxLayout" name="privilege_layout">
              <property name="spacing">
               <number>8</number>
              </property>
              <item>
               <spacer name="horizontalSpacer_4">
                <property name="orientation">
                 <enum>Qt::Horizontal</enum>
                </property>
                <property name="sizeHint" stdset="0">
                 <size>
                  <width>40</width>
                  <height>20</height>
                 </size>
                </property>
               </spacer>
              </item>
              <item>
               <widget class="QLabel" name="privilege_label">
                <property name="text">
                 <string>专享特权:</string>
                </property>
               </widget>
              </item>
              <item>
               <widget class="QPushButton" name="safe_button">
                <property name="minimumSize">
                 <size>
                  <width>16</width>
                  <height>16</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>16</width>
                  <height>16</height>
                 </size>
                </property>
                <property name="cursor">
                 <cursorShape>PointingHandCursor</cursorShape>
                </property>
                <property name="text">
                 <string/>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/360.png</normaloff>360_img/contentWidget/360.png</iconset>
                </property>
               </widget>
              </item>
              <item>
               <widget class="QPushButton" name="tab_button">
                <property name="minimumSize">
                 <size>
                  <width>16</width>
                  <height>16</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>16</width>
                  <height>16</height>
                 </size>
                </property>
                <property name="cursor">
                 <cursorShape>PointingHandCursor</cursorShape>
                </property>
                <property name="text">
                 <string/>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/tab.png</normaloff>360_img/contentWidget/tab.png</iconset>
                </property>
               </widget>
              </item>
              <item>
               <widget class="QPushButton" name="pet_button">
                <property name="minimumSize">
                 <size>
                  <width>16</width>
                  <height>16</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>16</width>
                  <height>16</height>
                 </size>
                </property>
                <property name="cursor">
                 <cursorShape>PointingHandCursor</cursorShape>
                </property>
                <property name="text">
                 <string/>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/pet.png</normaloff>360_img/contentWidget/pet.png</iconset>
                </property>
               </widget>
              </item>
              <item>
               <widget class="QPushButton" name="lottery_button">
                <property name="minimumSize">
                 <size>
                  <width>16</width>
                  <height>16</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>16</width>
                  <height>16</height>
                 </size>
                </property>
                <property name="cursor">
                 <cursorShape>PointingHandCursor</cursorShape>
                </property>
                <property name="text">
                 <string/>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/lottery.png</normaloff>360_img/contentWidget/lottery.png</iconset>
                </property>
               </widget>
              </item>
              <item>
               <widget class="QPushButton" name="cloud_five_button">
                <property name="minimumSize">
                 <size>
                  <width>16</width>
                  <height>16</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>16</width>
                  <height>16</height>
                 </size>
                </property>
                <property name="cursor">
                 <cursorShape>PointingHandCursor</cursorShape>
                </property>
                <property name="text">
                 <string/>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/cloud_five.png</normaloff>360_img/contentWidget/cloud_five.png</iconset>
                </property>
               </widget>
              </item>
              <item>
               <widget class="QPushButton" name="caipiao_button">
                <property name="minimumSize">
                 <size>
                  <width>16</width>
                  <height>16</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>16</width>
                  <height>16</height>
                 </size>
                </property>
                <property name="cursor">
                 <cursorShape>PointingHandCursor</cursorShape>
                </property>
                <property name="text">
                 <string/>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/caipiao.png</normaloff>360_img/contentWidget/caipiao.png</iconset>
                </property>
               </widget>
              </item>
              <item>
               <spacer name="horizontalSpacer_5">
                <property name="orientation">
                 <enum>Qt::Horizontal</enum>
                </property>
                <property name="sizeHint" stdset="0">
                 <size>
                  <width>40</width>
                  <height>20</height>
                 </size>
                </property>
               </spacer>
              </item>
             </layout>
            </item>
           </layout>
          </widget>
         </item>
         <item>
          <widget class="QFrame" name="right_center_widget">
           <property name="minimumSize">
            <size>
             <width>250</width>
             <height>90</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>250</width>
             <height>90</height>
            </size>
           </property>
           <property name="frameShape">
            <enum>QFrame::StyledPanel</enum>
           </property>
           <property name="frameShadow">
            <enum>QFrame::Raised</enum>
           </property>
           <layout class="QHBoxLayout" name="horizontalLayout_4">
            <property name="spacing">
             <number>0</number>
            </property>
            <property name="margin">
             <number>0</number>
            </property>
            <item>
             <widget class="QToolButton" name="fireproof_button">
              <property name="minimumSize">
               <size>
                <width>73</width>
                <height>73</height>
               </size>
              </property>
              <property name="maximumSize">
               <size>
                <width>73</width>
                <height>73</height>
               </size>
              </property>
              <property name="text">
               <string>木马防火墙.</string>
              </property>
              <property name="icon">
               <iconset>
                <normaloff>360_img/contentWidget/fireproof.png</normaloff>360_img/contentWidget/fireproof.png</iconset>
              </property>
              <property name="iconSize">
               <size>
                <width>48</width>
                <height>48</height>
               </size>
              </property>
              <property name="toolButtonStyle">
               <enum>Qt::ToolButtonTextUnderIcon</enum>
              </property>
             </widget>
            </item>
            <item>
             <widget class="QLabel" name="line_label_1">
              <property name="minimumSize">
               <size>
                <width>1</width>
                <height>90</height>
               </size>
              </property>
              <property name="maximumSize">
               <size>
                <width>1</width>
                <height>90</height>
               </size>
              </property>
              <property name="text">
               <string/>
              </property>
             </widget>
            </item>
            <item>
             <widget class="QToolButton" name="triggerman_button">
              <property name="minimumSize">
               <size>
                <width>73</width>
                <height>73</height>
               </size>
              </property>
              <property name="maximumSize">
               <size>
                <width>73</width>
                <height>73</height>
               </size>
              </property>
              <property name="text">
               <string>360保镖</string>
              </property>
              <property name="icon">
               <iconset>
                <normaloff>360_img/contentWidget/triggerman.png</normaloff>360_img/contentWidget/triggerman.png</iconset>
              </property>
              <property name="iconSize">
               <size>
                <width>48</width>
                <height>48</height>
               </size>
              </property>
              <property name="toolButtonStyle">
               <enum>Qt::ToolButtonTextUnderIcon</enum>
              </property>
             </widget>
            </item>
            <item>
             <widget class="QLabel" name="line_label_2">
              <property name="minimumSize">
               <size>
                <width>1</width>
                <height>90</height>
               </size>
              </property>
              <property name="maximumSize">
               <size>
                <width>1</width>
                <height>90</height>
               </size>
              </property>
              <property name="text">
               <string/>
              </property>
             </widget>
            </item>
            <item>
             <widget class="QToolButton" name="net_shop_button">
              <property name="minimumSize">
               <size>
                <width>73</width>
                <height>73</height>
               </size>
              </property>
              <property name="maximumSize">
               <size>
                <width>73</width>
                <height>73</height>
               </size>
              </property>
              <property name="text">
               <string>网购先赔</string>
              </property>
              <property name="icon">
               <iconset>
                <normaloff>360_img/contentWidget/net_shop.png</normaloff>360_img/contentWidget/net_shop.png</iconset>
              </property>
              <property name="iconSize">
               <size>
                <width>48</width>
                <height>48</height>
               </size>
              </property>
              <property name="toolButtonStyle">
               <enum>Qt::ToolButtonTextUnderIcon</enum>
              </property>
             </widget>
            </item>
           </layout>
          </widget>
         </item>
         <item>
          <widget class="QFrame" name="right_center_function_widget">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="frameShape">
            <enum>QFrame::StyledPanel</enum>
           </property>
           <property name="frameShadow">
            <enum>QFrame::Raised</enum>
           </property>
           <layout class="QVBoxLayout" name="verticalLayout_5">
            <property name="spacing">
             <number>10</number>
            </property>
            <property name="margin">
             <number>0</number>
            </property>
            <item>
             <layout class="QHBoxLayout" name="h_layout">
              <property name="spacing">
               <number>0</number>
              </property>
              <property name="leftMargin">
               <number>10</number>
              </property>
              <property name="topMargin">
               <number>5</number>
              </property>
              <item>
               <widget class="QLabel" name="function_label">
                <property name="text">
                 <string>功能大全</string>
                </property>
               </widget>
              </item>
              <item>
               <spacer name="horizontalSpacer_6">
                <property name="orientation">
                 <enum>Qt::Horizontal</enum>
                </property>
                <property name="sizeHint" stdset="0">
                 <size>
                  <width>40</width>
                  <height>20</height>
                 </size>
                </property>
               </spacer>
              </item>
              <item>
               <widget class="QPushButton" name="more_button">
                <property name="minimumSize">
                 <size>
                  <width>50</width>
                  <height>25</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>50</width>
                  <height>25</height>
                 </size>
                </property>
                <property name="cursor">
                 <cursorShape>PointingHandCursor</cursorShape>
                </property>
                <property name="text">
                 <string>更多</string>
                </property>
               </widget>
              </item>
             </layout>
            </item>
            <item>
             <layout class="QGridLayout" name="gridLayout">
              <property name="leftMargin">
               <number>5</number>
              </property>
              <property name="rightMargin">
               <number>5</number>
              </property>
              <property name="bottomMargin">
               <number>5</number>
              </property>
              <property name="spacing">
               <number>0</number>
              </property>
              <item row="1" column="2">
               <widget class="QToolButton" name="auto_run_button">
                <property name="minimumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="text">
                 <string>开机加速</string>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/auto_run.png</normaloff>360_img/contentWidget/auto_run.png</iconset>
                </property>
                <property name="iconSize">
                 <size>
                  <width>32</width>
                  <height>32</height>
                 </size>
                </property>
                <property name="toolButtonStyle">
                 <enum>Qt::ToolButtonTextUnderIcon</enum>
                </property>
               </widget>
              </item>
              <item row="0" column="1">
               <widget class="QToolButton" name="mobile_button">
                <property name="minimumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="text">
                 <string>手机助手</string>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/mobile.png</normaloff>360_img/contentWidget/mobile.png</iconset>
                </property>
                <property name="iconSize">
                 <size>
                  <width>32</width>
                  <height>32</height>
                 </size>
                </property>
                <property name="toolButtonStyle">
                 <enum>Qt::ToolButtonTextUnderIcon</enum>
                </property>
               </widget>
              </item>
              <item row="2" column="2">
               <widget class="QToolButton" name="first_add_button">
                <property name="minimumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="text">
                 <string>系统急救箱</string>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/first_add.png</normaloff>360_img/contentWidget/first_add.png</iconset>
                </property>
                <property name="iconSize">
                 <size>
                  <width>32</width>
                  <height>32</height>
                 </size>
                </property>
                <property name="toolButtonStyle">
                 <enum>Qt::ToolButtonTextUnderIcon</enum>
                </property>
               </widget>
              </item>
              <item row="0" column="2">
               <widget class="QToolButton" name="game_box_button">
                <property name="minimumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="text">
                 <string>游戏盒子</string>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/game_box.png</normaloff>360_img/contentWidget/game_box.png</iconset>
                </property>
                <property name="iconSize">
                 <size>
                  <width>32</width>
                  <height>32</height>
                 </size>
                </property>
                <property name="toolButtonStyle">
                 <enum>Qt::ToolButtonTextUnderIcon</enum>
                </property>
               </widget>
              </item>
              <item row="2" column="1">
               <widget class="QToolButton" name="net_pretext_button">
                <property name="minimumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="text">
                 <string>360网盾</string>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/net_pretext.png</normaloff>360_img/contentWidget/net_pretext.png</iconset>
                </property>
                <property name="iconSize">
                 <size>
                  <width>32</width>
                  <height>32</height>
                 </size>
                </property>
                <property name="toolButtonStyle">
                 <enum>Qt::ToolButtonTextUnderIcon</enum>
                </property>
               </widget>
              </item>
              <item row="2" column="0">
               <widget class="QToolButton" name="net_speed_button">
                <property name="minimumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="text">
                 <string>宽带测速器</string>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/net_speed.png</normaloff>360_img/contentWidget/net_speed.png</iconset>
                </property>
                <property name="iconSize">
                 <size>
                  <width>32</width>
                  <height>32</height>
                 </size>
                </property>
                <property name="toolButtonStyle">
                 <enum>Qt::ToolButtonTextUnderIcon</enum>
                </property>
               </widget>
              </item>
              <item row="0" column="0">
               <widget class="QToolButton" name="recovery_button">
                <property name="minimumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="text">
                 <string>文件恢复</string>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/recovery.png</normaloff>360_img/contentWidget/recovery.png</iconset>
                </property>
                <property name="iconSize">
                 <size>
                  <width>32</width>
                  <height>32</height>
                 </size>
                </property>
                <property name="toolButtonStyle">
                 <enum>Qt::ToolButtonTextUnderIcon</enum>
                </property>
               </widget>
              </item>
              <item row="1" column="0">
               <widget class="QToolButton" name="desktop_button">
                <property name="minimumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="text">
                 <string>安全桌面</string>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/desktop.png</normaloff>360_img/contentWidget/desktop.png</iconset>
                </property>
                <property name="iconSize">
                 <size>
                  <width>32</width>
                  <height>32</height>
                 </size>
                </property>
                <property name="toolButtonStyle">
                 <enum>Qt::ToolButtonTextUnderIcon</enum>
                </property>
               </widget>
              </item>
              <item row="1" column="1">
               <widget class="QToolButton" name="net_repair_button">
                <property name="minimumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>87</width>
                  <height>67</height>
                 </size>
                </property>
                <property name="text">
                 <string>断网急救箱</string>
                </property>
                <property name="icon">
                 <iconset>
                  <normaloff>360_img/contentWidget/net_repair.png</normaloff>360_img/contentWidget/net_repair.png</iconset>
                </property>
                <property name="iconSize">
                 <size>
                  <width>32</width>
                  <height>32</height>
                 </size>
                </property>
                <property name="toolButtonStyle">
                 <enum>Qt::ToolButtonTextUnderIcon</enum>
                </property>
               </widget>
              </item>
              <item row="3" column="1">
               <spacer name="verticalSpacer_3">
                <property name="orientation">
                 <enum>Qt::Vertical</enum>
                </property>
                <property name="sizeHint" stdset="0">
                 <size>
                  <width>20</width>
                  <height>40</height>
                 </size>
                </property>
               </spacer>
              </item>
             </layout>
            </item>
           </layout>
          </widget>
         </item>
         <item>
          <widget class="QFrame" name="right_bottom_widget">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
           <property name="minimumSize">
            <size>
             <width>260</width>
             <height>30</height>
            </size>
           </property>
           <property name="maximumSize">
            <size>
             <width>250</width>
             <height>30</height>
            </size>
           </property>
           <property name="frameShape">
            <enum>QFrame::StyledPanel</enum>
           </property>
           <property name="frameShadow">
            <enum>QFrame::Raised</enum>
           </property>
           <layout class="QHBoxLayout" name="horizontalLayout_5">
            <property name="spacing">
             <number>5</number>
            </property>
            <property name="leftMargin">
             <number>10</number>
            </property>
            <property name="topMargin">
             <number>0</number>
            </property>
            <property name="rightMargin">
             <number>10</number>
            </property>
            <property name="bottomMargin">
             <number>0</number>
            </property>
            <item>
             <widget class="QLabel" name="icon_label">
              <property name="minimumSize">
               <size>
                <width>16</width>
                <height>16</height>
               </size>
              </property>
              <property name="maximumSize">
               <size>
                <width>16</width>
                <height>16</height>
               </size>
              </property>
              <property name="text">
               <string/>
              </property>
              <property name="pixmap">
               <pixmap>360_img/contentWidget/cloud.png</pixmap>
              </property>
             </widget>
            </item>
            <item>
             <widget class="QLabel" name="connect_label">
              <property name="text">
               <string>成功连接至晕安全中心</string>
              </property>
             </widget>
            </item>
            <item>
             <spacer name="horizontalSpacer_7">
              <property name="orientation">
               <enum>Qt::Horizontal</enum>
              </property>
              <property name="sizeHint" stdset="0">
               <size>
                <width>40</width>
                <height>20</height>
               </size>
              </property>
             </spacer>
            </item>
            <item>
             <widget class="QLabel" name="version_label">
              <property name="minimumSize">
               <size>
                <width>60</width>
                <height>20</height>
               </size>
              </property>
              <property name="maximumSize">
               <size>
                <width>555</width>
                <height>555</height>
               </size>
              </property>
              <property name="text">
               <string/>
              </property>
              <property name="pixmap">
               <pixmap>360_img/contentWidget/version.png</pixmap>
              </property>
             </widget>
            </item>
            <item>
             <widget class="QPushButton" name="version_button">
              <property name="minimumSize">
               <size>
                <width>20</width>
                <height>20</height>
               </size>
              </property>
              <property name="maximumSize">
               <size>
                <width>20</width>
                <height>20</height>
               </size>
              </property>
              <property name="text">
               <string/>
              </property>
              <property name="icon">
               <iconset>
                <normaloff>360_img/contentWidget/version.png</normaloff>360_img/contentWidget/version.png</iconset>
              </property>
             </widget>
            </item>
           </layout>
          </widget>
         </item>
        </layout>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>GButton</class>
   <extends>QPushButton</extends>
   <header>gbutton.h</header>
  </customwidget>
  <customwidget>
   <class>GToolButton</class>
   <extends>QToolButton</extends>
   <header>gtoolbutton.h</header>
  </customwidget>
 </customwidgets>
 <resources/>
 <connections/>
</ui>

 

 

程序在360UI.rar中,运行可查看效果哦! 

 

GQT开源项目简介:

 A C++ GUI Framework Written by Like "Java"(Easily),Run as "C++" (High-Performance),And Show Perfect!

 

开源项目地址:

QQ讨论群:101189702 (请注明GQT或Qt,C++等)

设计文档:http://goo.gl/MM9E7j

PPT介绍(English):http://goo.gl/pEKiE9

 

其他Demo程序(本博客包含了GQT载入UI支持的所有3种机制[Qt dll,XML和QML]):

 

 实现的QQ登录界面(基于dll载入方式):




扑克牌翻转效果(QML载入方式):


8
4
分享到:
评论
9 楼 放羊的boy 2014-02-28  
大神!!!!!!!!!
8 楼 gundumw100 2014-02-28  
好长的xml啊。QT?
类似android采用xml配置界面的嘛
7 楼 rex0654335 2014-02-28  
有没有功能的?还是只是看的?
6 楼 kongshanxuelin 2014-02-28  
liu78778 写道
tomakemyself 写道
楼主好无聊

你这种人,自己不研究不奉献,还对别人的心血说风凉话。
博主,我非常赞赏你这种研究以及你的分享精神,你不用理会这种人。
QT也是我很感兴趣的,以后又机会再来请教问题

谢谢支持,我们开源出来也没大家想的这么伟大,只是碍于形式,喜欢的,大家下载下,同时多给我们提意见,测bug,反馈问题,以便框架更加完善,轮到口水战那就不好了
5 楼 liu78778 2014-02-28  
tomakemyself 写道
楼主好无聊

你这种人,自己不研究不奉献,还对别人的心血说风凉话。
博主,我非常赞赏你这种研究以及你的分享精神,你不用理会这种人。
QT也是我很感兴趣的,以后又机会再来请教问题
4 楼 tomakemyself 2014-02-28  
楼主好无聊
3 楼 semmy 2014-02-28  
这个真心不错
2 楼 jssqsgzh 2014-02-27  
不错 自己动手
1 楼 huzhenyu 2014-02-27  
效果挺不错,good job!

相关推荐

    高仿360安全卫士 9.2 界面 (纯qml实现)

    【标题】"高仿360安全卫士 9.2 界面 (纯qml实现)" 描述了一个项目,该项目旨在使用QML语言模仿360安全卫士的9.2版本用户界面。QML是Qt框架下用于构建用户界面的一种声明式语言,它允许开发者以一种直观、高效的方式...

    高仿360UI的实现(XML+Script)

    【高仿360UI的实现(XML+Script)】是一个项目,旨在通过XML和脚本语言来构建一个与360安全卫士用户界面类似的交互体验。在IT领域,尤其是软件开发中,UI(User Interface)设计是至关重要的,因为它直接影响到用户...

    Qt高仿360界面设计

    【Qt高仿360界面设计】是一个针对Qt框架的学习项目,旨在帮助初学者了解如何使用Qt库创建类似360安全卫士的用户界面。Qt是一个跨平台的应用程序开发框架,广泛应用于桌面、移动以及嵌入式系统,支持C++语言编写,...

    高仿360界面风格的非360软件源码

    标题中的“高仿360界面风格的非360软件源码”指的是一个软件开发项目,其目标是创建一个用户界面(UI)设计,模仿知名的360安全卫士的外观和交互体验,但该软件本身并非360公司的产品。这个项目可能是为了学习、实践...

    C# Winform 界面 CSkin 高仿360手机界面

    通过Winform,开发者可以使用丰富的控件和事件驱动编程模型来设计和实现功能丰富的图形用户界面。 接下来,我们讨论CSkin库的核心功能。CSkin库提供了一系列预设的皮肤样式,可以模拟出360手机或其他设备的界面效果...

    qt模仿编写的高仿360卫士界面

    在高仿360卫士界面项目中,QSS起着至关重要的作用,它允许开发者用CSS语法定义各个界面组件的样式,以达到与原版360卫士界面一致的视觉体验。 在360qt6.4这个压缩包文件中,可能包含的是整个项目的源代码、资源文件...

    高仿360安全卫士9.2界面(使用Qt中的qml实现)

    "高仿360安全卫士9.2界面(使用Qt中的qml实现)" 这个标题揭示了我们正在讨论一个软件项目,它的目标是模仿360安全卫士9.2版本的用户界面。这里的“高仿”意味着开发者尽力复制了360安全卫士的外观和功能,以提供...

    高仿360UI,WinForm界面美化

    本教程将详细介绍如何在WinForm中实现高仿360UI的界面美化。 首先,我们需要理解WinForm的基本结构。Windows Forms是.NET Framework提供的一种用于构建桌面应用程序的开发平台。通过拖放控件、设置属性和编写事件...

    mooc_android_高仿qq登录界面设计与实现

    在本课程"mooc_android_高仿qq登录界面设计与实现"中,我们将深入探讨如何在Android平台上构建一个类似于QQ的登录界面。这个项目旨在帮助开发者掌握Android UI设计的基本技巧,特别是通过使用RelativeLayout和...

    mfc界面开发-高仿360sd杀毒源码

    总结来说,这个"mfc界面开发-高仿360sd杀毒源码"项目涵盖了MFC编程基础、界面设计技巧、图形绘制、事件处理、用户体验等多个方面,对于学习和提升MFC应用开发能力具有很高的参考价值。通过研究这个项目,开发者可以...

    动画物体控件(高仿360界面例子)

    通过研究这个项目,开发者可以学习到如何将上述技术整合到实际的360界面中,从而提升自己的技能和实现类似的应用。 总之,创建一个高仿360界面需要对动画、物体控件、交互设计以及前端技术有深入的理解和实践。通过...

    WPF高仿360卫士9.0界面设计

    在本文中,我们将深入探讨如何使用C#和WPF(Windows Presentation Foundation)技术来实现一个高仿360卫士9.0的界面设计。360卫士是一款知名的电脑安全软件,其用户界面设计简洁、直观且功能丰富。通过学习和模仿...

    android模仿360界面布局

    本教程将详细讲解如何在Android中实现360界面布局的复刻。 首先,理解360界面布局的特点至关重要。360界面通常具有以下特征: 1. **清晰的导航**:360界面通常包含一个直观的导航系统,如底部导航栏,方便用户快速...

    QT实现高仿QQ QT实现QQ界面

    10. **国际化与本地化(Internationalization and Localization)**:如果项目考虑到了不同语言环境,可能会使用QT的QTranslator和QLocale类来实现界面的多语言支持。 以上是"QT实现高仿QQ QT实现QQ界面"项目可能...

    android高仿360主界面

    在Android开发领域,"android高仿360主界面"是一个常见的练习项目,旨在帮助开发者学习和理解如何构建类似于360手机应用的用户界面。360是中国知名的网络安全公司,其手机应用界面设计简洁、易用,是很多开发者模仿...

    纯HTML5和CSS3实现高仿小米商城源码.zip

    高仿小米商城,纯HTML5和CSS3实现 高仿小米商城,纯HTML5和CSS3实现 高仿小米商城,纯HTML5和CSS3实现 高仿小米商城,纯HTML5和CSS3实现 高仿小米商城,纯HTML5和CSS3实现 高仿小米商城,纯HTML5和CSS3...

    高仿360安全卫士

    对于初学者而言,通过分析这个项目可以学习到如何使用易语言创建类似的安全防护应用,了解如何设计和实现常见的安全功能。例如,可以学习如何集成反病毒引擎,实现文件扫描和查杀;如何监控系统进程,防止恶意行为;...

    Android 高仿360软件详情页

    整体来说,【Android 高仿360软件详情页】是一个综合性的Android开发练习,涵盖UI设计、组件使用、动画实现等多个方面,对于提升Android开发技能有很大帮助。通过实际操作和学习,开发者不仅能掌握具体的实现技巧,...

Global site tag (gtag.js) - Google Analytics