• <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編程
             
            国内精品久久久久久久coent | 精品国产乱码久久久久软件| 久久国产香蕉视频| 色婷婷久久综合中文久久一本| 精品久久久久久久国产潘金莲| 久久久久亚洲AV无码观看| 久久91精品国产91久久小草| 久久伊人色| 精品精品国产自在久久高清| 久久久国产视频| 国产精品99久久久久久www| 久久亚洲sm情趣捆绑调教 | 狠狠色丁香久久综合五月| 国产精品欧美亚洲韩国日本久久 | 久久成人国产精品二三区| 欧美日韩精品久久久久| 国产精品99久久免费观看| 亚洲国产天堂久久综合网站| 久久丝袜精品中文字幕| 国产美女久久久| 久久综合狠狠综合久久| 日本WV一本一道久久香蕉| 久久久久国产| 久久久久久国产精品无码下载 | 久久人人爽人人爽AV片| 久久精品国产精品国产精品污 | 亚洲精品午夜国产va久久| 国内精品久久久久久久久| 7国产欧美日韩综合天堂中文久久久久| 香蕉久久久久久狠狠色| 国产精品一区二区久久精品无码| 国产精品久久久久影院嫩草| 久久精品人人做人人爽电影蜜月| 欧美熟妇另类久久久久久不卡| 午夜视频久久久久一区| 一本一本久久a久久精品综合麻豆| 亚洲AⅤ优女AV综合久久久| 成人亚洲欧美久久久久| Xx性欧美肥妇精品久久久久久| 国产精品久久国产精品99盘| 日韩精品国产自在久久现线拍|