• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            Cpper
            C/C++高級工程師 Android高級軟件工程師 IT集成工程師 音頻工程師 熟悉c,c++,java,c#,py,js,asp等多種語言 程序猿
            import QtQuick 2.0
            import QtQuick.Controls 
            1.3  
            import QtQuick.Window 
            2.2  

            ApplicationWindow 
            {
                id: window 
                visible: 
            true   
                title: qsTr(
            "Hello World")  
                width: 
            480  
                height: 
            480  
                color: 
            "#339546"
                property variant colorArray: [
            "#00bde3","#67c111","#ea7025","#ef0748","#1894af"

                Column
                {
                    id: flow
                    spacing: 
            2
                    anchors.fill: parent

                    Grid
                    {
                        anchors.margins: 
            8
                        spacing:
            2
                        Repeater
                        {
                            model: 
            12
                            Rectangle
                            {
                                id: flag
                                width: 
            120
                                height: 
            0
                                property 
            int colorIndex: Math.floor(Math.random()*5)
                                color: window.colorArray[colorIndex]
                                border.color: Qt.lighter(color)
                                Text
                                {
                                    anchors.centerIn: parent
                                    color: 
            "#f0f0f0"
                                    font.pixelSize: 
            18
                                    text: qsTr(
            "WPS表單")
                                }

                                MouseArea 
                                {
                                     anchors.fill: parent
                                     onClicked: 
                                     {
                                         animateColor.start()
                                         animateOpacity.start()
                                     }
                                }

                                PropertyAnimation 
                                {
                                     id: animateColor; 
                                     target: flag; 
                                     properties: 
            "color"
                                     to: 
            "green"
                                     duration: 
            100
                                }

                                NumberAnimation 
                                {
                                     id: animateOpacity
                                     target: flag
                                     properties: 
            "opacity"
                                     from: 
            0.99
                                     to: 
            1.0
                                     loops: Animation.Infinite
                                     easing {type: Easing.OutBack; overshoot: 
            500}
                                }

                                PropertyAnimation on height{to: 
            24 ;duration:600; loops:Animation.Infinite }
                            } 
                        }
                    }
                    
                    Rectangle
                    {
                        id: desc
                        width: 
            486
                        height: 
            0
                        property 
            int colorIndex: Math.floor(Math.random()*5)
                        color: window.colorArray[colorIndex]
                        border.color: Qt.lighter(color)
                        
                        Text
                        {
                            anchors.centerIn: parent
                            color: 
            "#f0f0f0"
                            font.pixelSize: 
            18
                            text: qsTr(
            "描述信息")
                        }

                        PropertyAnimation on height{to: 
            32 ;duration:600; loops:Animation.Infinite }
                    }

                    Rectangle
                    {
                        id: detail
                        width: 
            486
                        height: 
            0
                        property 
            int colorIndex: Math.floor(Math.random()*5)
                        color: window.colorArray[colorIndex]
                        border.color: Qt.lighter(color)
                        
                        Text
                        {
                            id: text
                            anchors.centerIn: parent
                            color: 
            "#f0f0f0"
                            font.pixelSize: 
            18
                            text: qsTr(
            "點擊展開")
                        }

                        MouseArea  
                        {  
                            anchors.fill: parent  
               
                            onReleased:
                            {
                                text.text 
            = row.visible == true ? qsTr("點擊展開") : qsTr("點擊折疊")
                                row.visible 
            = row.visible == true ? false : true
                            } 
                        }  

                        PropertyAnimation on height{to: 
            32 ;duration:600; loops:Animation.Infinite }
                    }  

                    Row
                    {
                        id: row
                        visible: 
            false
                        spacing: 
            2
                        
                        Rectangle
                        {
                            id: d1
                            width: 
            120
                            height: 
            32
                            property 
            int colorIndex: Math.floor(Math.random()*5)
                            color: window.colorArray[colorIndex]
                            border.color: Qt.lighter(color)
                            Text
                            {
                                anchors.centerIn: parent
                                color: 
            "#f0f0f0"
                                font.pixelSize: 
            18
                                text: qsTr(
            "WPS表單")
                            }
                        }
                        Rectangle
                        {
                            id: d2
                            width: 
            120
                            height: 
            32
                            property 
            int colorIndex: Math.floor(Math.random()*5)
                            color: window.colorArray[colorIndex]
                            border.color: Qt.lighter(color)
                            Text
                            {
                                anchors.centerIn: parent
                                color: 
            "#f0f0f0"
                                font.pixelSize: 
            18
                                text: qsTr(
            "WPS表單")
                            }
                        }
                        Rectangle
                        {
                            id: d3
                            width: 
            120
                            height: 
            32
                            property 
            int colorIndex: Math.floor(Math.random()*5)
                            color: window.colorArray[colorIndex]
                            border.color: Qt.lighter(color)
                            Text
                            {
                                anchors.centerIn: parent
                                color: 
            "#f0f0f0"
                                font.pixelSize: 
            18
                                text: qsTr(
            "WPS表單")
                            }
                        }
                    }
                }

            posted on 2015-11-03 19:37 ccsdu2009 閱讀(394) 評論(0)  編輯 收藏 引用 所屬分類: QT編程
             
            成人国内精品久久久久影院| 香蕉久久夜色精品国产尤物| 国内精品人妻无码久久久影院| 精品无码久久久久久尤物| 品成人欧美大片久久国产欧美...| 丁香久久婷婷国产午夜视频| 久久丫忘忧草产品| 99久久亚洲综合精品成人| 色天使久久综合网天天| 99久久精品毛片免费播放| 亚洲欧美一级久久精品| 久久超乳爆乳中文字幕| 午夜精品久久久久久影视777 | 色综合久久久久网| 久久久亚洲裙底偷窥综合| 国产A级毛片久久久精品毛片| 久久狠狠爱亚洲综合影院| 国产一区二区三精品久久久无广告| 中文无码久久精品| 精品国产日韩久久亚洲| 久久99精品九九九久久婷婷| 国产精品久久波多野结衣| 婷婷久久久亚洲欧洲日产国码AV | 91久久婷婷国产综合精品青草| 亚洲第一永久AV网站久久精品男人的天堂AV | 国产成人久久AV免费| 18岁日韩内射颜射午夜久久成人 | 久久综合香蕉国产蜜臀AV| 国内精品伊人久久久久妇| 国产成人精品久久综合| 久久精品国产一区二区三区日韩| 亚洲av成人无码久久精品| 亚洲午夜久久久久久久久久| 香蕉99久久国产综合精品宅男自 | 精品国产乱码久久久久久1区2区| 久久久亚洲欧洲日产国码是AV| 思思久久精品在热线热| 亚洲精品国产字幕久久不卡| 久久综合88熟人妻| 久久九九亚洲精品| 99久久成人18免费网站|