• <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.7
            import QtQuick.Controls 2.0
            import QtGraphicalEffects 1.0

            Rectangle
            {
                visible
            : true
                width: 400
                height: 300

                Text
                {
                    id: textID
                    height: 240
                    width: 240
                    anchors.centerIn: parent
                    text:"點擊鼠標可旋轉文字"
                    verticalAlignment: Text.AlignVCenter
                    horizontalAlignment: Text.AlignHCenter
                    font.pointSize: 13

                    MouseArea
                    {
                        anchors.fill: parent
                        onClicked:
                        {
                            if(rotationAnimation.running === true)
                                return
            ;
                            rotationAnimation.start();
                        
            }
                    }

                    LinearGradient
                    
            {
                        source
            : textID
                        width: 240
                        height: 240
                        gradient: Gradient
                        {
                            GradientStop
                            {
                                position: 0.0
                                color: "#22F222"
                            
            }
                            GradientStop
                            
            {
                                position
            : 0.9
                                color: "#F0280F"
                            
            }
                        }
                        start: Qt.point(0,0)
                        end: Qt.point(240,240)
                    }
                }

                RotationAnimation
                
            {
                    id
            : rotationAnimation
                    target: textID
                    from: currentAngle
                    to: currentAngle+diff
                    duration: 100
                    readonly property int diff: 5
                    property int currentAngle: 0
                    property bool isDown: true

                    onStopped:
                    {
                        rotationAnimation.from = rotationAnimation.to
                        rotationAnimation.to = rotationAnimation.to+diff
            ;
                    
            }
                }
            }
            posted on 2019-08-26 10:03 ccsdu2009 閱讀(402) 評論(0)  編輯 收藏 引用 所屬分類: QT編程
             
            精品人妻久久久久久888| 人妻精品久久无码专区精东影业| 999久久久免费国产精品播放| 国产亚洲精午夜久久久久久| 久久精品视屏| 国产精品99久久精品| 一本一本久久a久久精品综合麻豆| 97精品国产97久久久久久免费| 97r久久精品国产99国产精| 久久久高清免费视频| segui久久国产精品| 男女久久久国产一区二区三区| 久久久国产精品| 日本免费久久久久久久网站| 噜噜噜色噜噜噜久久| 国产叼嘿久久精品久久| 99久久777色| 久久久久无码精品国产| 久久精品国产亚洲av麻豆蜜芽 | 久久无码专区国产精品发布| 国产一级做a爰片久久毛片| 伊人久久综合无码成人网| 久久国产视屏| 久久99久久无码毛片一区二区| 99久久无色码中文字幕| 精品国产VA久久久久久久冰 | 亚洲第一永久AV网站久久精品男人的天堂AV | 久久天天躁狠狠躁夜夜网站| 久久久久久国产a免费观看黄色大片 | 久久精品不卡| 久久露脸国产精品| 无码人妻少妇久久中文字幕 | 91亚洲国产成人久久精品| 亚洲国产精品久久久久婷婷软件| 2022年国产精品久久久久| 国产精品久久久天天影视| 亚洲va中文字幕无码久久| 无码人妻久久一区二区三区免费丨 | 久久久网中文字幕| 久久久噜噜噜久久中文字幕色伊伊| 久久国产福利免费|