• <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編程
             
            亚洲乱码日产精品a级毛片久久 | 久久午夜羞羞影院免费观看| 久久精品卫校国产小美女| 久久精品国产亚洲AV无码偷窥| AAA级久久久精品无码片| 久久国产综合精品五月天| 久久精品国产亚洲αv忘忧草| 97久久香蕉国产线看观看| 久久伊人五月天论坛| 色综合久久久久综合体桃花网 | 日韩人妻无码精品久久久不卡 | 三级韩国一区久久二区综合| 无码专区久久综合久中文字幕| 国产精品美女久久久网AV| 亚洲AV无码久久精品狠狠爱浪潮| 国产精品九九久久免费视频| 久久人与动人物a级毛片| 久久人人爽人人爽人人片AV东京热| 亚洲国产精品无码久久SM| 香蕉久久AⅤ一区二区三区| 国产福利电影一区二区三区久久久久成人精品综合 | 中文字幕久久波多野结衣av| 精品久久国产一区二区三区香蕉| 久久亚洲美女精品国产精品| 思思久久精品在热线热| 久久精品人妻一区二区三区| 国产精品99久久精品爆乳| 久久人人爽人人爽人人AV东京热 | 曰曰摸天天摸人人看久久久| 国产成人精品免费久久久久| 亚洲国产欧美国产综合久久| 亚洲熟妇无码另类久久久| 久久人人爽人人人人片av| 超级碰碰碰碰97久久久久| 99久久香蕉国产线看观香| 少妇人妻综合久久中文字幕| 一本色道久久88综合日韩精品 | 亚洲精品无码久久久影院相关影片| 久久久久青草线蕉综合超碰| 综合久久一区二区三区 | 国产成人久久精品区一区二区|