• <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久久蜜桃| 亚洲精品tv久久久久| 亚洲AV无码成人网站久久精品大| 狠狠色噜噜色狠狠狠综合久久| 亚洲av日韩精品久久久久久a | 久久午夜夜伦鲁鲁片免费无码影视| 日韩亚洲国产综合久久久| 伊人久久无码中文字幕| 久久香蕉综合色一综合色88| 久久精品亚洲精品国产欧美| 久久久久久久精品妇女99 | 青青草国产成人久久91网| 亚洲国产成人久久精品99| 国产婷婷成人久久Av免费高清| 合区精品久久久中文字幕一区| 国产婷婷成人久久Av免费高清| 亚洲欧美另类日本久久国产真实乱对白| 久久久久99精品成人片直播| 久久人人爽人人爽AV片| 国产精品对白刺激久久久| 亚洲国产精品嫩草影院久久| 91久久精品国产免费直播| 97超级碰碰碰久久久久| 18岁日韩内射颜射午夜久久成人 | 大香网伊人久久综合网2020| 久久无码人妻一区二区三区| 久久亚洲精品国产精品婷婷 | 精品久久久久中文字幕日本 | 成人午夜精品久久久久久久小说| 久久精品毛片免费观看| 国产精品99久久久精品无码| 欧美国产精品久久高清| 亚洲国产精品久久久久| 久久免费高清视频| 久久99精品久久久久久久久久 | 日韩精品久久久久久免费| 亚洲国产精品综合久久网络| 青青草国产97免久久费观看| 久久精品99无色码中文字幕| 久久久久九国产精品| 久久精品国产99久久丝袜|