青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

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 @ 2019-09-16 10:45 ccsdu2009 閱讀(749) | 評論 (0)編輯 收藏
 
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.3
import QtQuick.Controls.Styles 1.4
import QtQuick.Dialogs 1.2

Rectangle 
{
    id
: container
    width: 640
    height: 360

    StackLayout {
        id: layout
        width: parent.width - 120
        height: 300

        anchors.top: parent.top
        anchors.topMargin: 6
        anchors.horizontalCenter: parent.horizontalCenter

        currentIndex: count - 1
        Rectangle {
            color: 'teal'
            implicitWidth: 200
            implicitHeight: 200
        
}
        Rectangle 
{
            color
: 'plum'
            implicitWidth: 300
            implicitHeight: 200
        
}
        Rectangle 
{
            color
: 'red'
            implicitWidth: 300
            implicitHeight: 200
        
}
        Rectangle 
{
            color
: 'blue'
            implicitWidth: 300
            implicitHeight: 200
        
}
        Rectangle 
{
            color
: 'green'
            implicitWidth: 300
            implicitHeight: 200
        
}
    }

    Button 
{
        anchors.horizontalCenter
: parent.horizontalCenter
        anchors.top: layout.bottom
        anchors.topMargin: 6
        text: "Prev"

        onClicked:{
            if(layout.currentIndex == 0)
                layout.currentIndex = layout.count-1
            else {
                layout.currentIndex --
            
}
        }
    }
}
posted @ 2019-09-11 14:02 ccsdu2009 閱讀(221) | 評論 (0)編輯 收藏
 
import QtQuick 2.2
import QtQuick.Controls 1.2

Rectangle 
{
    id
: doubleSlider
    width: 360
    height: 72
    color: "#c3c3c3"

    property int minValue: 0
    property int maxValue: 100
    property int lowValue: 0
    property int highValue: 100
    property int thumbWidth: 12
    readonly property int range: width - thumbWidth
    property var thumbColor: "#c030bb"
    property int lastX: 0

    signal value(int low,int high)

    Rectangle {
        id: startSlider
        width: doubleSlider.thumbWidth
        height: parent.height

        x: 0
        anchors.verticalCenter: parent.verticalCenter

        color: doubleSlider.thumbColor
    
}

    Rectangle 
{
        id
: endSlider
        width: doubleSlider.thumbWidth
        height: parent.height

        x: parent.width - endSlider.width
        anchors.verticalCenter: parent.verticalCenter

        color: doubleSlider.thumbColor
    
}

    MouseArea 
{
        id
: sliderMouseArea
        anchors.fill: parent
        hoverEnabled: true

        property point clickPos
        property var currentSlider: undefined

        onPressed: {
            updateCurrentSlider(mouse)
            clickPos = Qt.point(mouse.x,mouse.y)
        
}

        onPositionChanged:
{
            if(pressed && currentSlider != undefined){
                var delta = Qt.point(mouse.x-clickPos.x,mouse.y-clickPos.y)
                doubleSlider.lastX = currentSlider.x
                currentSlider.x = mouse.x
                fixSliderPosition()
            
}
        }

        onWheel: 
{
            if(currentSlider === undefined)
                return

            var delta = wheel.angleDelta.y/120
            currentSlider.x += delta
            fixSliderPosition()
        
}

        function fixSliderPosition()
{
            if(currentSlider === undefined)
                return

            if(currentSlider === startSlider &&
                    startSlider.x+startSlider.width > endSlider.x)
                currentSlider.x = endSlider.x-startSlider.width

            if(currentSlider === endSlider &&
                    endSlider.x < startSlider.x + startSlider.width)
                currentSlider.x = startSlider.x + startSlider.width


            if(currentSlider.x < 0)
                currentSlider.x = 0
            if(currentSlider.x > doubleSlider.width - currentSlider.width)
                currentSlider.x = doubleSlider.width - currentSlider.width

            if(currentSlider === startSlider){
                var v0 = 100*startSlider.x/doubleSlider.range
                if(v0 != lowValue){
                    lowValue = v0
                    doubleSlider.value(lowValue,highValue)
                
}
            }
            else if(currentSlider === endSlider)
{
                var v1 = 100*endSlider.x/doubleSlider.range
                if(v1 != highValue){
                    highValue = v1
                    doubleSlider.value(lowValue,highValue)
                
}
            }
        }

        function containPoint(input,minValue,maxValue)
{
            if(input < minValue || input > maxValue)
                return false
            return true
        
}

        function updateCurrentSlider(mouse)
{
            if(containPoint(mouse.x,startSlider.x,startSlider.x+startSlider.width)){
                currentSlider = startSlider
                doubleSlider.lastX = startSlider.x
            
}
            else if(containPoint(mouse.x,endSlider.x,endSlider.x+endSlider.width))
{
                currentSlider = endSlider
                doubleSlider.lastX = endSlider.x
            
}
        }
    }
}
posted @ 2019-09-11 09:47 ccsdu2009 閱讀(307) | 評論 (0)編輯 收藏
 
import QtQuick 2.2
import QtQuick.Controls 2.4
import QtQuick.Controls.Styles 1.4
import QtQuick.Window 2.11
import QtQuick.Layouts 1.1


Rectangle
{
    anchors.rightMargin
: 4
    anchors.bottomMargin: 4
    anchors.leftMargin: 4
    anchors.topMargin: 4
    anchors.fill: parent

    ColumnLayout
    {
        spacing: 2
        anchors.fill: parent

        Rectangle
        {
            Layout.fillWidth: true
            Layout.fillHeight: true
            RowLayout {
                anchors.fill: parent
                Rectangle
                {
                    Layout.fillWidth: true
                    Layout.fillHeight: true

                    ListView {
                        id:idLogListView
                        focus:true

                        anchors.fill: parent
                        highlight: Rectangle { color: "#A0CED1" 
}
                        model: idListModle
                        delegate: Component
                        
{

                        RowLayout {

                            id
:idlistElemnet
                            height: 20
                            width: parent.width
                            spacing: 20
                            Layout.fillWidth: true

                            Rectangle {height: 16
                                width: 16
                                radius: 5
                                color:getListEleHeadColor(type)
                                Text{ anchors.centerIn: parent
}
                            }

                            Text 
{ text: time; font.bold: true}
                            Text 
{ text:type }
                            Text 
{ text:descripe; color:"blue" ; Layout.fillWidth: true}

                            states: State 
{
                                name
: "Current"
                                when: idlistElemnet.ListView.isCurrentItem
                                PropertyChanges { target: idlistElemnet
; x: 20 }
                            }
                            transitions: Transition 
{
                                NumberAnimation { properties
: "x"; duration: 200 }
                            }
                            MouseArea 
{
                                anchors.fill
: parent
                                onClicked: idlistElemnet.ListView.view.currentIndex = index
                            
}
                        }
                    }

                    Component.onCompleted:
                    
{
                        for(var idx=0;idx<100;idx++)
                        {
                            var newType=parseInt((Math.random(Math.random())*100+1)%3);
                            idListModle.append( { "descripe"
: "系統日志..","time": "2016-10-2","type":newType});
                        }
                    }
                }

                ListModel 
{

                    id
:idListModle
                    ListElement {
                        descripe: "系統日志"
                        time: "2016-11-2"
                        type:1
                    
}
                }
            }

            Rectangle
            
{
                Layout.fillHeight
: true
                id: scrollbar
                width: 10
;
                height
: 380
                color: "#D9D9D9"
                radius: 10
                Rectangle {
                    id: button
                    x: 0
                    y: idLogListView.visibleArea.yPosition * scrollbar.height
                    width: 10
                    height: idLogListView.visibleArea.heightRatio * scrollbar.height
;
                    color
: "#979797"
                    radius: 10
                    MouseArea {
                        id: mouseArea
                        anchors.fill: button
                        drag.target: button
                        drag.axis: Drag.YAxis
                        drag.minimumY: 0
                        drag.maximumY: scrollbar.height - button.height
                        onMouseYChanged: {
                            idLogListView.contentY = button.y / scrollbar.height * idLogListView.contentHeight
                        
}
                    }
                }
            }
        }
    }

    Rectangle
    
{
        Layout.preferredHeight
: 40
        Layout.fillWidth: true
        Layout.minimumHeight:40
    
}
}

    function getListEleHeadColor(ntype)
    
{
        switch(ntype)
        {
        case 0
:
            return "lightblue"
        case 1:
            return "red"
;
        case 2
:
            return "yellow"
;
        case 3
:
            return "green"
;
        default
:
            return "black"
;
        
}
    }

}
posted @ 2019-09-10 15:19 ccsdu2009 閱讀(1668) | 評論 (0)編輯 收藏
 
import QtQuick 2.2

Rectangle
{
    id
: rootItem
    width: 360
    height: 360
    color: "#cfcfcf"

    property int targetWidth: 0

    Rectangle{
        id: rect1
        width:360
        height:rootItem.height
        color:"#808080"
    
}

    Rectangle
{
        id
: rect2
        width:rootItem.width-rect1.width
        height:parent.height
        x:rootItem.width
        color:"#c0c0c0"
    
}

    Button
{
        text
: "Button"
        anchors.centerIn: parent
        onClicked: {
            animation.start()
        
}
    }

    NumberAnimation
{
        id
: animation
        target: rect1
        properties:  "width"
        to: rootItem.targetWidth
        duration: 720

        onStopped: rootItem.targetWidth = rootItem.width - to
    
}
}
posted @ 2019-09-06 17:47 ccsdu2009 閱讀(518) | 評論 (0)編輯 收藏
 
import QtQuick 2.6
import QtQuick.Controls 1.4

Rectangle
{
    id
: rect1
    width: 640
    height: 480

    ListModel{
        id:libraryModel
        ListElement{title: "aaa"
; author: "AAA"}
        ListElement
{title: "bbb"; author: "BBB"}
        ListElement
{title: "ccc"; author: "ccc"}
    }

    TableView
{
        anchors.fill
: parent
        model:libraryModel

        TableViewColumn{role:"title"
; title: "Title"; width: 100}
        TableViewColumn
{role:"author"; title: "Author"; width: 200}

        rowDelegate: Rectangle
{
            height
: 50
            color: styleData.selected?"#f0b0b0af":(styleData.alternate?"#c3c3c0":"#c0c0c3")
        
}

        itemDelegate: Rectangle 
{
            height
: 50
            color: "transparent"
            Text {
                //anchors.centerIn: parent
                anchors.left: parent.left
                anchors.leftMargin: 6
                anchors.verticalCenter: parent.verticalCenter
                color: styleData.textColor
                text: styleData.value
                verticalAlignment: Text.AlignVCenter
                font.pointSize: 13
            
}
         }
    }
}
posted @ 2019-09-06 17:26 ccsdu2009 閱讀(3021) | 評論 (0)編輯 收藏
 
import QtQuick 2.2

Rectangle
{
    id
: rootItem
    width: 360
    height: 360
    color: "#cfcfcf"

    Rectangle{
        id: rect
        width: 50
        height: 50
        x: 0
        y: 5
        color: "#c0c0ff"

        MouseArea{
            id: mouseArea
            anchors.fill: parent
            onClicked: {
                animation.newHeight = 60
                animation.start()
            
}
        }

        ParallelAnimation
{
            id
: animation
            property int newHeight: 240
            NumberAnimation{
                target: rootItem
                properties:  "height"
                to: animation.newHeight
                duration: 300
            
}
            NumberAnimation
{
                target
: rootItem
                properties:  "y"
                to: y + (height-animation.newHeight)*0.5
                duration: 300
            
}
        }
    }
}
posted @ 2019-09-06 09:35 ccsdu2009 閱讀(216) | 評論 (0)編輯 收藏
 
import QtQuick 2.2

Rectangle
{
    id
: rootItem
    width: 360
    height: 240
    color: "#cfcfcf"

    Rectangle{
        id: rect
        width: 50
        height: 50
        x: 0
        y: 5
        color: "#c0c0ff"

        MouseArea{
            id: mouseArea
            anchors.fill: parent
            onClicked: {
                animation.start()
            
}
        }

        ParallelAnimation
{
            id
: animation
            NumberAnimation{
                target: rect
                properties:  "x"
                to: 100
                duration: 300
            
}
            NumberAnimation
{
                target
: rect
                properties:  "y"
                to: 100
                duration: 300
            
}
        }
    }
}
posted @ 2019-09-05 16:16 ccsdu2009 閱讀(115) | 評論 (0)編輯 收藏
 
有時候信號發送過快,消息還沒過來,使用Connections
無法收到信息
可以使用 signal.connect直接連接槽函數即可
posted @ 2019-09-03 15:02 ccsdu2009 閱讀(1043) | 評論 (0)編輯 收藏
 
Item {
      Rectangle {
          id
: item1
          x: 0
; width: 80; height: 80
          color: "#0000FF"
      
}
      Rectangle 
{
          id
:item2
          x: 100
; width: 80; height: 80
          color: Qt.tint(item1.color, "#80FF0000")
      
}
  }
posted @ 2019-09-02 11:06 ccsdu2009 閱讀(183) | 評論 (0)編輯 收藏
僅列出標題
共38頁: 1 2 3 4 5 6 7 8 9 Last 
 
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <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>
            亚洲尤物视频在线| 最新国产の精品合集bt伙计| 国产精品无码专区在线观看| 欧美午夜免费| 国产精品多人| 国产精品一区二区三区免费观看| 国内精品久久久久影院色 | 在线视频日本亚洲性| 欧美国产第二页| 亚洲国产精品激情在线观看| 99精品视频免费观看| 在线一区二区三区四区| 亚洲视频在线观看免费| 欧美一区日韩一区| 麻豆精品视频| 欧美日韩一区二区三区在线看| 一区二区三区久久精品| 日韩亚洲不卡在线| 欧美亚洲自偷自偷| 欧美国产精品人人做人人爱| 欧美日韩午夜在线| 国产一区二区三区高清播放| 亚洲美女诱惑| 久久久久久久久久久久久女国产乱 | 久久av资源网| 你懂的一区二区| 最近中文字幕mv在线一区二区三区四区| 欧美精品91| 国产精品扒开腿做爽爽爽软件| 久久久蜜桃精品| 欧美日韩免费观看一区| 国产午夜精品全部视频播放| 亚洲蜜桃精久久久久久久| 久久爱91午夜羞羞| 日韩一级片网址| 久久综合伊人77777蜜臀| 欧美日韩一本到| 亚洲高清免费在线| 香蕉久久一区二区不卡无毒影院 | 久久成人亚洲| 欧美日韩国产成人在线91| 国产视频久久久久| 一区二区久久久久| 亚洲大胆人体视频| 久久精品视频一| 国产女人18毛片水18精品| 亚洲网站视频| 亚洲精品久久久久久久久久久| 欧美 日韩 国产在线| 亚洲一区二区免费在线| 欧美日韩一级黄| 亚洲欧洲在线视频| 欧美福利网址| 欧美在线免费播放| 国产欧美不卡| 久久久精品国产一区二区三区| 午夜在线不卡| 99国产精品国产精品久久| 欧美高清在线一区二区| 亚洲高清一二三区| 免费不卡在线观看| 久久一综合视频| 在线观看视频免费一区二区三区| 永久域名在线精品| 久久精品人人做人人爽电影蜜月| 久久精品亚洲热| 亚洲在线观看视频网站| 国产精品美女主播在线观看纯欲| 欧美性猛片xxxx免费看久爱| 日韩午夜电影av| 亚洲丰满在线| 欧美日韩国产欧美日美国产精品| 欧美日韩亚洲在线| 一区二区三区日韩欧美精品| 99国产精品视频免费观看| 欧美日韩国产在线观看| 亚洲一区在线观看视频| 亚洲欧美另类在线| 激情综合五月天| 蜜臀久久99精品久久久久久9 | 亚洲欧美日韩精品久久久久| 欧美日韩午夜激情| 亚洲欧洲av一区二区| 久久激情网站| 亚洲免费av电影| 午夜免费在线观看精品视频| 一区二区在线视频观看| 亚洲第一在线综合在线| 欧美午夜不卡视频| 久久综合福利| 欧美人与禽猛交乱配| 欧美综合77777色婷婷| 久久久夜色精品亚洲| 亚洲免费高清视频| 性色av香蕉一区二区| 亚洲毛片在线观看| 午夜免费久久久久| 亚洲片在线资源| 亚洲在线播放| 亚洲精品欧美| 午夜视频在线观看一区二区三区 | 午夜亚洲伦理| 国产一区二区三区四区五区美女| 亚洲免费大片| 亚洲影视在线播放| 91久久久在线| 午夜视频精品| 亚洲视频你懂的| 久久全球大尺度高清视频| 9久re热视频在线精品| 久久riav二区三区| 在线亚洲欧美| 久久影视三级福利片| 亚洲在线免费视频| 欧美sm极限捆绑bd| 久久在线精品| 国产精品影片在线观看| 亚洲国产高潮在线观看| 韩国欧美一区| 亚洲欧美成人| 亚洲欧美成人在线| 欧美国产精品va在线观看| 麻豆久久精品| 国产一区二区中文| 亚洲视频一区在线观看| 日韩视频精品在线观看| 久久夜色精品国产亚洲aⅴ| 性亚洲最疯狂xxxx高清| 欧美婷婷六月丁香综合色| 亚洲久久在线| 夜夜嗨av一区二区三区中文字幕 | 久久久久久有精品国产| 亚洲在线一区| 欧美黑人一区二区三区| 美女精品视频一区| 国内精品视频在线播放| 亚洲在线电影| 久久精品日韩| 亚洲欧美日本伦理| 销魂美女一区二区三区视频在线| 先锋资源久久| 欧美一区三区三区高中清蜜桃| 亚洲欧美日韩在线观看a三区| 欧美午夜精品久久久| 亚洲日韩成人| 亚洲天堂黄色| 国产精品系列在线| 亚洲欧美精品在线观看| 欧美一区成人| 国产在线拍揄自揄视频不卡99 | 免费一区二区三区| 黄色综合网站| 欧美sm视频| 一本久久综合亚洲鲁鲁五月天| 国产精品久久婷婷六月丁香| 一本色道久久综合狠狠躁的推荐| 国产日韩欧美中文| 久久成人免费网| 欧美激情中文不卡| 亚洲日本一区二区| 欧美日韩精品欧美日韩精品| 亚洲午夜激情免费视频| 久久成人综合网| 91久久精品国产91久久| 欧美网站大全在线观看| 亚洲一级在线| 男女精品网站| 亚洲桃花岛网站| 精品91久久久久| 欧美日韩国产综合网| 亚洲影视九九影院在线观看| 久久综合狠狠综合久久激情| 日韩视频精品| 国产麻豆视频精品| 免费国产自线拍一欧美视频| 亚洲手机在线| 欧美激情欧美激情在线五月| 亚洲影院免费观看| 黄色一区二区在线观看| 欧美日韩精品综合| 午夜久久tv| 亚洲精品久久久久中文字幕欢迎你| 国产在线观看91精品一区| 欧美与黑人午夜性猛交久久久| 亚洲麻豆一区| 国产欧美91| 欧美日本网站| 久久久97精品| 亚洲手机视频| 亚洲精品影视| 欧美成人精品一区二区三区| 亚洲欧美日韩精品| 日韩亚洲不卡在线| 韩国av一区二区三区| 欧美1区2区3区| 羞羞色国产精品| 99在线精品视频在线观看| 欧美刺激午夜性久久久久久久| 在线国产日韩| 国产日韩精品视频一区二区三区|