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

Cpper
C/C++高級(jí)工程師 Android高級(jí)軟件工程師 IT集成工程師 音頻工程師 熟悉c,c++,java,c#,py,js,asp等多種語(yǔ)言 程序猿

import QtQuick 2.11

Rectangle 
{
    width
: 640
    height: 480
    color: "#0ff90f"

    Flipable {
            id: flip
            width: 300
            height: 300
            anchors.centerIn: parent

            property bool flipped: false

            front: Image{
                anchors.fill: parent
                source: "file:///C:/Users/Administrator/Desktop/11111/2099720.png"

                transform: Rotation{
                    origin.x: flip.width / 2
                    origin.y: flip.height / 2
                    axis.x: 0
                    axis.y: 1
                    axis.z: 0
                    angle: 180
                
}
            }

            back: Image
{
                anchors.fill
: parent
                source: "file:///C:/Users/Administrator/Desktop/11111/2099720.png"
            
}

            transform: Rotation
{
                id
: rotation
                origin.x: flip.width / 2
                origin.y: flip.height / 2
                axis.x: 0
                axis.y: 1
                axis.z: 0
                angle: 0
            
}

            states:State
{
                PropertyChanges {
                    target
: rotation
                    angle: 180
                
}
                when:flip.flipped
            }

            transitions: Transition
{
                NumberAnimation{
                    target
:rotation
                    properties: "angle"
                    duration: 240
                
}
            }

            MouseArea 
{
                anchors.fill
: parent
                onClicked:  flip.flipped = !flip.flipped
            
}
        }
}
posted @ 2019-09-19 18:22 ccsdu2009 閱讀(1211) | 評(píng)論 (0)編輯 收藏
 
import QtQuick 2.11

Rectangle 
{
    width
: 640
    height: 480
    color: "#0909ff"

    Flipable {
            id: flip
            width: 300
            height: 300
            anchors.centerIn: parent

            property bool flipped: false

            front:Image{
                anchors.fill: parent
                source: "file:///C:/Users/Administrator/Desktop/11111/2099720.png"
            
}

            back:Image
{
                anchors.fill
: parent
                source: "file:///C:/Users/Administrator/Desktop/11111/2099720-flip.png"
            
}

            transform: Rotation
{
                id
: rotation
                origin.x: flip.width / 2
                origin.y: flip.height / 2
                axis.x: 0
                axis.y: 1
                axis.z: 0
                angle: 0
            
}

            states:State
{
                PropertyChanges {
                    target
: rotation
                    angle: 180
                
}
                when:flip.flipped
            }

            transitions: Transition
{
                NumberAnimation{
                    target
:rotation
                    properties: "angle"
                    duration: 240
                
}
            }

            MouseArea 
{
                anchors.fill
: parent

                onClicked:  flip.flipped = !flip.flipped

            
}
        }
}
posted @ 2019-09-19 17:33 ccsdu2009 閱讀(885) | 評(píng)論 (0)編輯 收藏
 
    int result = av_seek_frame(ffmpeg->formatCtx, -1,
        (ffmpeg->formatCtx->start_time + time) * AV_TIME_BASE,
        AVSEEK_FLAG_BACKWARD);
time單位為秒
posted @ 2019-09-19 09:51 ccsdu2009 閱讀(905) | 評(píng)論 (0)編輯 收藏
 
import QtQuick 2.5
import QtQuick.Layouts 1.3
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4

Rectangle 
{
    width
: 640
    height: 480
    color: "#333333"

    Button {
        id: button
        text: "Button"
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 6

        onClicked: {
            var count = layout.count
            if(layout.currentIndex == count - 1)
                layout.currentIndex = 0
            else
                layout.currentIndex ++
        
}
    }

    StackLayout 
{
        id
: layout
        anchors.top: button.bottom
        anchors.topMargin: 6
        anchors.horizontalCenter: parent.horizontalCenter
        width: 480
        height: 320
        currentIndex: 1
        Rectangle {
            color: 'teal'
            implicitWidth: 200
            implicitHeight: 200
        
}
        Rectangle 
{
            color
: 'plum'
            implicitWidth: 300
            implicitHeight: 200
        
}
        Rectangle 
{
            color
: '#c90909'
            implicitWidth: 300
            implicitHeight: 200
        
}
        Rectangle 
{
            color
: 'green'
            implicitWidth: 300
            implicitHeight: 200
        
}
        Rectangle 
{
            color
: 'grey'
            implicitWidth: 300
            implicitHeight: 200
        
}
    }
}
posted @ 2019-09-18 11:49 ccsdu2009 閱讀(721) | 評(píng)論 (0)編輯 收藏
 
import QtQuick 2.5
import QtQuick.Layouts 1.2
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4

Rectangle 
{
    id
: circularProgressBar
    width: 60
    height: 60

    color: "#333333"
    property real currentValue: 86
    property bool textVisible: true
    property bool canClick: false

    Canvas {
        id: canvas
        anchors.fill: parent
        antialiasing: true

        property color primaryColor: "transparent"
        property color secondaryColor: "lightblue"

        property real centerWidth: width / 2
        property real centerHeight: height / 2
        property real radius: Math.min(canvas.width-10, canvas.height-10) / 2

        property real minimumValue: 0
        property real maximumValue: 100
        property alias currentValue : circularProgressBar.currentValue

        property string text: "0"
        property real angle: (currentValue - minimumValue) / (maximumValue - minimumValue) * 2 * Math.PI
        property real angleOffset: -Math.PI / 2

        property real rotate: 0.0

        onPrimaryColorChanged: requestPaint()
        onSecondaryColorChanged: requestPaint()
        onMinimumValueChanged: requestPaint()
        onMaximumValueChanged: requestPaint()
        onCurrentValueChanged: requestPaint()
        onRotateChanged: requestPaint()

        onPaint: {
            var ctx = getContext("2d")
;
            ctx.save();

            ctx.clearRect(0, 0, canvas.width, canvas.height);

            ctx.translate(width/2,height/2)
            ctx.rotate(rotate*Math.PI/180.0)
            ctx.translate(-width/2,-height/2)

            ctx.beginPath();
            ctx.lineWidth = 10;
            ctx.strokeStyle = primaryColor;
            ctx.arc(canvas.centerWidth,
                    canvas.centerHeight,
                    canvas.radius,
                    angleOffset + canvas.angle,
                    angleOffset + 2*Math.PI);
            ctx.stroke();

            ctx.beginPath();
            ctx.lineWidth = 3;
            ctx.strokeStyle = canvas.secondaryColor;
            ctx.arc(canvas.centerWidth,
                    canvas.centerHeight,
                    canvas.radius,
                    canvas.angleOffset,
                    canvas.angleOffset + canvas.angle);
            ctx.stroke();

            ctx.restore();
        
}

        MouseArea 
{
            id
: mouseArea
            anchors.fill: parent
            visible: circularProgressBar.canClick
            onClicked: canvas.clicked()
            onPressedChanged: canvas.requestPaint()
        
}

        Timer
{
            id
: timer
            interval: 150
;
            running
: true
            repeat: true
;
            onTriggered
: {
                canvas.rotate += 5
            
}
        }
    }
}
posted @ 2019-09-18 10:59 ccsdu2009 閱讀(1305) | 評(píng)論 (0)編輯 收藏
 
import QtQuick 2.11
import QtQuick.Controls 2.4

Rectangle
{
    width
:640
    height:480
    color:"#cfcfc0"

    anchors.margins: 6

    property bool load1: true

    Button
    {
        id:button
        text: "Button"
        anchors.horizontalCenter: parent.horizontalCenter
        onClicked:
        {
            if(area.visible)
                fadeOut.start()
            else
                fadeIn.start()
        
}
    }

    PropertyAnimation
    
{
        id
: fadeOut
        target: area
        duration: 300
        property: "opacity"
        from: 1.0
        to: 0.0

        onStopped: area.visible = false
    
}

    PropertyAnimation
    
{
        id
: fadeIn
        target: area
        duration: 300
        property: "opacity"
        from: 0.0
        to: 1.0

        onStarted: area.visible = true
    
}

    Rectangle
    
{
        id
: area
        width: parent.width - 12
        height: parent.height - button.height - 12
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.topMargin: 6
        anchors.top: button.bottom
        visible: false
        color: "#9900ff00"
    
}
}
posted @ 2019-09-17 16:06 ccsdu2009 閱讀(789) | 評(píng)論 (0)編輯 收藏
 
上層MouseArea需要接受右鍵事件,如下
    MouseArea {
        anchors.fill
: parent
        acceptedButtons: Qt.LeftButton | Qt.RightButton
    
}
posted @ 2019-09-17 11:18 ccsdu2009 閱讀(398) | 評(píng)論 (0)編輯 收藏
 
import QtQuick 2.11
import QtQuick.Controls 2.4

Rectangle
{
    width
:640
    height:480
    color:"#cfcfc0"

    anchors.margins: 6

    MouseArea {
        id: mouseRegion
        anchors.fill: parent
;
        acceptedButtons
: Qt.LeftButton | Qt.RightButton

        onClicked: {
            if(mouse.button == Qt.RightButton)
                contentMenu.popup()
        
}

        Menu 
{
            id
: contentMenu

            MenuItem {
                text: "Cut"
                onTriggered: {
}
            }

            MenuItem 
{
                text
: "Copy"
                onTriggered: {
}
            }

            MenuItem 
{
                text
: "Paste"
                onTriggered: {
}
            }

            MenuSeparator 
{ }

            Menu 
{
                title
: "More"
                MenuItem {
                    text: "Edit"
                
}
                MenuItem 
{
                    text
: "Select All"
                
}
            }
        }
    }
}
posted @ 2019-09-17 11:10 ccsdu2009 閱讀(1006) | 評(píng)論 (0)編輯 收藏
 
 1     Button {
 2         anchors.left: button
 3         text: "菜單"
 4         anchors.leftMargin: 12
 5         onClicked: popupMenu.popup()
 6      }
 7 
 8      Menu {
 9           id : popupMenu
10           title: "&File"
11 
12           MenuItem {
13               text: "&Open"
14               onTriggered:{}
15           }
16 
17           MenuItem {
18               text: "&Save"
19               onTriggered: {}
20           }
21 
22           MenuItem {
23               text: "&Close"
24               onTriggered: Qt.quit()
25           }
26     }
posted @ 2019-09-17 11:06 ccsdu2009 閱讀(1179) | 評(píng)論 (0)編輯 收藏
 
import QtQuick 2.5
import QtQuick.Layouts 1.2
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4

Rectangle 
{
    id
: circularProgressBar
    width: 60
    height: 60

    color: "#333333"
    property real currentValue: 0
    property bool textVisible: true
    property bool canClick: false

    Canvas {
        id: canvas
        anchors.fill: parent
        antialiasing: true

        property color primaryColor: "transparent"
        property color secondaryColor: "lightblue"

        property real centerWidth: width / 2
        property real centerHeight: height / 2
        property real radius: Math.min(canvas.width-10, canvas.height-10) / 2

        property real minimumValue: 0
        property real maximumValue: 100
        property alias currentValue : circularProgressBar.currentValue

        property string text: "0"
        property real angle: (currentValue - minimumValue) / (maximumValue - minimumValue) * 2 * Math.PI
        property real angleOffset: -Math.PI / 2

        onPrimaryColorChanged: requestPaint()
        onSecondaryColorChanged: requestPaint()
        onMinimumValueChanged: requestPaint()
        onMaximumValueChanged: requestPaint()
        onCurrentValueChanged: requestPaint()

        onPaint: {
            var ctx = getContext("2d")
;
            ctx.save();

            ctx.clearRect(0, 0, canvas.width, canvas.height);

            if(mouseArea.pressed) {
                ctx.beginPath();
                ctx.lineWidth = 10;
                ctx.fillStyle = Qt.lighter(canvas.secondaryColor,1.25);
                ctx.arc(canvas.centerWidth,
                        canvas.centerHeight,
                        canvas.radius,
                        0,
                        2*Math.PI);
                ctx.fill();

                timer.running = true;
            
}

            ctx.beginPath();
            ctx.lineWidth = 10;
            ctx.strokeStyle = primaryColor;
            ctx.arc(canvas.centerWidth,
                    canvas.centerHeight,
                    canvas.radius,
                    angleOffset + canvas.angle,
                    angleOffset + 2*Math.PI);
            ctx.stroke();

            ctx.beginPath();
            ctx.lineWidth = 3;
            ctx.strokeStyle = canvas.secondaryColor;
            ctx.arc(canvas.centerWidth,
                    canvas.centerHeight,
                    canvas.radius,
                    canvas.angleOffset,
                    canvas.angleOffset + canvas.angle);
            ctx.stroke();

            ctx.restore();
        }

        Text 
{
            id
: progressText
            anchors.centerIn: parent

            font.pixelSize: 16
            text: canvas.text
            visible: circularProgressBar.textVisible
            color: canvas.secondaryColor
        
}

        MouseArea 
{
            id
: mouseArea
            anchors.fill: parent
            visible: circularProgressBar.canClick
            onClicked: canvas.clicked()
            onPressedChanged: canvas.requestPaint()
        
}

        Timer
{
            id
: timer
            interval: 100
;
            running
: true
            repeat: true
;
            onTriggered
: {

                if(circularProgressBar.currentValue === 100) {
                    circularProgressBar.currentValue = 0
;
                    progressText.text = "0"
                
}

                circularProgressBar.currentValue += 1;
                progressText.text = circularProgressBar.currentValue.toString()+"%";
            }

        }
    }
}
posted @ 2019-09-16 16:38 ccsdu2009 閱讀(1351) | 評(píng)論 (0)編輯 收藏
僅列出標(biāo)題
共38頁(yè): 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>
            欧美三区在线视频| 在线观看日韩av先锋影音电影院| 欧美电影免费观看高清完整版| 欧美在线影院在线视频| 亚洲精品一区中文| 亚洲第一精品夜夜躁人人爽 | 欧美日韩在线免费视频| 免费黄网站欧美| 欧美精品1区| 国产精品国色综合久久| 国产一区二区三区视频在线观看| 国产亚洲毛片在线| 亚洲精品在线免费| 亚洲欧美日韩精品久久| 免费观看不卡av| 亚洲欧美国产精品va在线观看| 亚洲一区在线免费观看| 欧美成年人网站| 国产精品亚洲欧美| 亚洲午夜精品17c| 暖暖成人免费视频| 欧美亚洲综合另类| 国产精品第一区| 99国产精品99久久久久久| 久久av一区二区三区漫画| 亚洲丶国产丶欧美一区二区三区| 亚洲日本久久| 欧美77777| 亚洲第一天堂av| 免费久久精品视频| 欧美一区二区三区四区在线| 国产精品毛片在线| 午夜国产不卡在线观看视频| 女人香蕉久久**毛片精品| 欧美一区91| 国内外成人免费激情在线视频| 性欧美大战久久久久久久久| aa成人免费视频| 欧美性一二三区| 亚洲欧美国产日韩中文字幕| 亚洲精品国产无天堂网2021| 久久99伊人| 久久久久一区二区| 亚洲国产精品免费| 99精品国产在热久久婷婷| 女人香蕉久久**毛片精品| 日韩一区二区精品视频| 在线中文字幕不卡| 在线日韩精品视频| 一区二区三区久久| 1769国产精品| 亚洲一区二区精品在线| 一区二区三区在线免费播放| 亚洲精品黄色| 精品成人一区二区三区| 亚洲人成亚洲人成在线观看图片| 国产精品视频大全| 最新国产成人在线观看| 国产一区日韩二区欧美三区| 亚洲精品小视频| 亚洲国产欧美一区| 性欧美超级视频| 亚洲欧美999| 欧美精品一区二区三区四区| 欧美大片在线看| 国语自产精品视频在线看| 日韩视频免费观看| 最新成人av网站| 在线中文字幕一区| 中文久久精品| 久久人人97超碰国产公开结果| 亚洲无线一线二线三线区别av| 欧美在线视频观看| 久久人人九九| 国内精品视频在线播放| 亚洲一级二级| 欧美日韩综合在线免费观看| 欧美成年人视频| 亚洲精品日韩在线观看| 免费在线亚洲| 中文在线不卡| 久久婷婷亚洲| 在线观看精品一区| 久久婷婷国产综合国色天香| 欧美成人情趣视频| av成人天堂| 国产婷婷色综合av蜜臀av| 久久国产88| 一本一本a久久| 麻豆国产精品一区二区三区| 日韩亚洲不卡在线| 国产日产亚洲精品系列| 欧美激情女人20p| 性欧美1819sex性高清| 亚洲国产99| 久久精品国产999大香线蕉| 亚洲精品一区中文| 国产日韩欧美一区| 欧美午夜不卡在线观看免费| 久久精品国产久精国产一老狼| 亚洲美女中出| 欧美1区免费| 亚洲欧美中日韩| 亚洲欧洲精品天堂一级| 国产精品一区免费在线观看| 男女视频一区二区| 久久久久久久一区二区三区| 亚洲视频电影在线| 国产精品99久久不卡二区| 亚洲三级国产| 日韩午夜激情电影| 夜夜嗨av色一区二区不卡| 夜色激情一区二区| 亚洲视频图片小说| 亚洲一区二三| 久久亚洲精品一区| 美女亚洲精品| 欧美一区二区免费观在线| 亚洲精品国久久99热| 免费亚洲婷婷| 亚洲精品1234| 一区二区三区精密机械公司| 亚洲一区二区三区777| 久久黄色级2电影| 鲁大师成人一区二区三区| 欧美成人乱码一区二区三区| 欧美~级网站不卡| 国产精品激情| 黄色成人片子| 亚洲国产一区二区a毛片| 在线天堂一区av电影| 亚洲一二三四区| 欧美亚洲在线| 亚洲精选一区| 亚洲国产经典视频| 亚洲欧美日韩国产成人| 免费日韩av| 香蕉成人久久| 欧美日韩在线观看一区二区三区| 国产欧美视频一区二区| 一区二区三区四区五区在线| 久久狠狠一本精品综合网| 亚洲精品小视频在线观看| 亚洲欧美在线aaa| 欧美日韩精品免费观看视频| 在线成人国产| 欧美日韩成人网| 亚洲国产一二三| 亚洲国产欧美国产综合一区| 久久精精品视频| 国产一区再线| 久久久久久久精| 久久国产综合精品| 极品av少妇一区二区| 米奇777在线欧美播放| 久久这里只精品最新地址| 在线成人免费视频| 欧美1区3d| 欧美mv日韩mv国产网站app| 午夜精品福利一区二区三区av| 欧美日韩亚洲一区二| 亚洲一二三区精品| 亚洲免费网站| 亚洲三级观看| 亚洲视频欧美视频| 一区二区三区自拍| 宅男精品视频| 亚洲国产成人精品久久久国产成人一区| 免费在线日韩av| 欧美日韩精品欧美日韩精品| 欧美自拍偷拍午夜视频| 欧美成人午夜激情在线| 欧美专区日韩视频| 欧美国产一区二区三区激情无套| 午夜精品影院| 久久国产黑丝| 欧美激情黄色片| 欧美高清在线一区| 国产亚洲亚洲| 亚洲一区在线观看免费观看电影高清| 在线看成人片| 久久九九国产精品怡红院| 亚洲一区二区精品视频| 欧美日韩免费观看一区二区三区| 欧美激情偷拍| 在线播放一区| 久久国产综合精品| 久久精选视频| 国产日韩欧美日韩大片| 亚洲欧美日韩在线不卡| 亚洲欧美激情视频| 国产精品v日韩精品v欧美精品网站| 欧美激情第8页| 亚洲欧洲日韩综合二区| 久久综合伊人77777蜜臀| 欧美国产日韩a欧美在线观看| 黑丝一区二区三区| 久久综合九九| 亚洲毛片在线| 久久久久成人网|