• <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.11
            import QtQuick.Controls 2.4

            Rectangle
            {
                id
            : base
                width:640
                height:480
                color: backgroundColor

                property string backgroundColor: "#191919"
                anchors.margins: 6

                Rectangle {
                    id: seekTimeBubble
                    width: currentSeekTime.width + 14
                    height: currentSeekTime.height + 21
                    anchors.centerIn: parent
                    color: parent.color

                    Canvas {
                        id: canvasSeekTime
                        anchors.fill: parent
                        property real radius: 9

                        onPaint: {
                            var ctx = getContext('2d')
                            ctx.reset()
                            ctx.strokeStyle = base.color
                            ctx.lineWidth = 1
                            ctx.clearRect(0, 0, width, height)
                            ctx.beginPath()

                            ctx.moveTo(0, radius)
                            ctx.arcTo(0, 0, radius, 0,radius)

                            ctx.lineTo(parent.width - radius, 0)
                            ctx.arcTo(parent.width, 0, parent.width, radius, radius)

                            ctx.lineTo(parent.width, parent.height - radius * 2)
                            ctx.arcTo(parent.width, parent.height - radius,parent.width - radius,parent.height - radius, radius)

                            ctx.lineTo(parent.width / 2 + 1.5*radius,parent.height - radius)
                            ctx.lineTo(parent.width / 2, parent.height)
                            ctx.lineTo(parent.width / 2 - 1.5*radius,parent.height - radius)
                            ctx.lineTo(radius, parent.height - radius)
                            ctx.arcTo(0, parent.height - radius, 0, parent.height - radius * 2, radius)

                            ctx.closePath()
                            ctx.clip()
                            ctx.stroke()
                            ctx.fillStyle = "#333333"
                            ctx.fillRect(0, 0, width, height)
                        
            }

                        Text 
            {
                            id
            : currentSeekTime
                            anchors {
                                top: parent.top
                                topMargin: 3
                                horizontalCenter: parent.horizontalCenter
                            
            }
                            color: "#ffffff"
                            font.pointSize: 12
                            text: "03:21"
                            onWidthChanged: 
            {
                                canvasSeekTime.requestPaint()
                            
            }
                        }
                    }
                    Glow 
            {
                        anchors.fill
            : canvasSeekTime
                        samples: 17
                        color: "transparent"
                        source: canvasSeekTime
                    
            }
                }
            }
            posted on 2019-09-16 10:45 ccsdu2009 閱讀(729) 評論(0)  編輯 收藏 引用 所屬分類: QT編程
             
            噜噜噜色噜噜噜久久| 久久综合丁香激情久久| 国产精品免费久久| 色综合久久综合中文综合网| 久久亚洲精品国产精品婷婷| 久久久久久久久久免免费精品| 99久久国产主播综合精品| 久久精品国产99国产精偷| 国产精品毛片久久久久久久| 69久久精品无码一区二区| 亚洲国产精品一区二区久久hs | 久久夜色撩人精品国产| 久久艹国产| 欧美亚洲另类久久综合婷婷| 国内精品久久久久影院亚洲| 狠狠色综合网站久久久久久久高清| 7777精品伊人久久久大香线蕉 | 久久亚洲中文字幕精品一区| 亚洲精品乱码久久久久久不卡| yy6080久久| 国产精品久久99| 久久精品国产一区二区| 免费久久人人爽人人爽av| 亚洲AV无码久久精品色欲 | 国产精品久久久久9999高清| 狠狠狠色丁香婷婷综合久久俺| 精品久久久久久无码中文字幕| 亚洲国产成人精品91久久久 | 夜夜亚洲天天久久| 久久亚洲欧洲国产综合| 亚洲欧美成人综合久久久| 国产精品久久久久天天影视| 久久男人中文字幕资源站| 久久久久成人精品无码中文字幕 | 91秦先生久久久久久久| 亚洲国产成人久久综合碰| 久久精品午夜一区二区福利 | 四虎亚洲国产成人久久精品| 亚洲乱码精品久久久久..| 久久99精品国产99久久6| 亚洲va久久久噜噜噜久久天堂|