锘??xml version="1.0" encoding="utf-8" standalone="yes"?>皇室战争a3卡组:C++鍗氬 - 皇室战争比赛视频2019|《皇室战争》昆仑官网//www.pppqb.icu/gaimor/C/C++楂樼駭宸ョ▼甯? Android楂樼駭杞歡宸ョ▼甯? IT闆嗘垚宸ョ▼甯? 闊抽宸ョ▼甯? 鐔熸倝c,c++,java,c#,py,js,asp絳夊縐嶈璦 紼嬪簭鐚?/description>zh-cnSun, 15 Sep 2019 23:58:06 GMTSun, 15 Sep 2019 23:58:06 GMT60QML StackLayout - 皇室战争比赛视频2019|《皇室战争》昆仑官网//www.pppqb.icu/gaimor/archive/2019/09/11/216813.htmlccsdu2009ccsdu2009Wed, 11 Sep 2019 06:02:00 GMT//www.pppqb.icu/gaimor/archive/2019/09/11/216813.html//www.pppqb.icu/gaimor/comments/216813.html//www.pppqb.icu/gaimor/archive/2019/09/11/216813.html#Feedback0//www.pppqb.icu/gaimor/comments/commentRss/216813.html//www.pppqb.icu/gaimor/services/trackbacks/216813.htmlimport 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 --
            
}
        }
    }
}


ccsdu2009 2019-09-11 14:02 鍙戣〃璇勮
]]>
QML DoubleSlider - 皇室战争比赛视频2019|《皇室战争》昆仑官网//www.pppqb.icu/gaimor/archive/2019/09/11/216811.htmlccsdu2009ccsdu2009Wed, 11 Sep 2019 01:47:00 GMT//www.pppqb.icu/gaimor/archive/2019/09/11/216811.html//www.pppqb.icu/gaimor/comments/216811.html//www.pppqb.icu/gaimor/archive/2019/09/11/216811.html#Feedback0//www.pppqb.icu/gaimor/comments/commentRss/216811.html//www.pppqb.icu/gaimor/services/trackbacks/216811.htmlimport 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
            
}
        }
    }
}


ccsdu2009 2019-09-11 09:47 鍙戣〃璇勮
]]>
QML ListView灞曠ず鏃ュ織 - 皇室战争比赛视频2019|《皇室战争》昆仑官网//www.pppqb.icu/gaimor/archive/2019/09/10/216808.htmlccsdu2009ccsdu2009Tue, 10 Sep 2019 07:19:00 GMT//www.pppqb.icu/gaimor/archive/2019/09/10/216808.html//www.pppqb.icu/gaimor/comments/216808.html//www.pppqb.icu/gaimor/archive/2019/09/10/216808.html#Feedback0//www.pppqb.icu/gaimor/comments/commentRss/216808.html//www.pppqb.icu/gaimor/services/trackbacks/216808.htmlimport 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"
;
        
}
    }

}


ccsdu2009 2019-09-10 15:19 鍙戣〃璇勮
]]>
QML 紿楀彛鍔ㄧ敾 - 皇室战争比赛视频2019|《皇室战争》昆仑官网//www.pppqb.icu/gaimor/archive/2019/09/06/216787.htmlccsdu2009ccsdu2009Fri, 06 Sep 2019 09:47:00 GMT//www.pppqb.icu/gaimor/archive/2019/09/06/216787.html//www.pppqb.icu/gaimor/comments/216787.html//www.pppqb.icu/gaimor/archive/2019/09/06/216787.html#Feedback0//www.pppqb.icu/gaimor/comments/commentRss/216787.html//www.pppqb.icu/gaimor/services/trackbacks/216787.htmlimport 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
    
}
}


ccsdu2009 2019-09-06 17:47 鍙戣〃璇勮
]]>
QML TableView浣跨敤 - 皇室战争比赛视频2019|《皇室战争》昆仑官网//www.pppqb.icu/gaimor/archive/2019/09/06/216784.htmlccsdu2009ccsdu2009Fri, 06 Sep 2019 09:26:00 GMT//www.pppqb.icu/gaimor/archive/2019/09/06/216784.html//www.pppqb.icu/gaimor/comments/216784.html//www.pppqb.icu/gaimor/archive/2019/09/06/216784.html#Feedback0//www.pppqb.icu/gaimor/comments/commentRss/216784.html//www.pppqb.icu/gaimor/services/trackbacks/216784.htmlimport 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
            
}
         }
    }
}


ccsdu2009 2019-09-06 17:26 鍙戣〃璇勮
]]>
QML 鎺т歡鍔ㄧ敾 - 皇室战争比赛视频2019|《皇室战争》昆仑官网//www.pppqb.icu/gaimor/archive/2019/09/06/216777.htmlccsdu2009ccsdu2009Fri, 06 Sep 2019 01:35:00 GMT//www.pppqb.icu/gaimor/archive/2019/09/06/216777.html//www.pppqb.icu/gaimor/comments/216777.html//www.pppqb.icu/gaimor/archive/2019/09/06/216777.html#Feedback0//www.pppqb.icu/gaimor/comments/commentRss/216777.html//www.pppqb.icu/gaimor/services/trackbacks/216777.htmlimport 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
            
}
        }
    }
}


ccsdu2009 2019-09-06 09:35 鍙戣〃璇勮
]]>
QML騫寵鍔ㄧ敾 - 皇室战争比赛视频2019|《皇室战争》昆仑官网//www.pppqb.icu/gaimor/archive/2019/09/05/216774.htmlccsdu2009ccsdu2009Thu, 05 Sep 2019 08:16:00 GMT//www.pppqb.icu/gaimor/archive/2019/09/05/216774.html//www.pppqb.icu/gaimor/comments/216774.html//www.pppqb.icu/gaimor/archive/2019/09/05/216774.html#Feedback0//www.pppqb.icu/gaimor/comments/commentRss/216774.html//www.pppqb.icu/gaimor/services/trackbacks/216774.htmlimport 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
            
}
        }
    }
}


ccsdu2009 2019-09-05 16:16 鍙戣〃璇勮
]]>
QML Connections鎺ユ敹涓嶅埌c++淇″彿鐨勯棶棰?/title><link>//www.pppqb.icu/gaimor/archive/2019/09/03/216760.html</link><dc:creator>ccsdu2009</dc:creator><author>ccsdu2009</author><pubDate>Tue, 03 Sep 2019 07:02:00 GMT</pubDate><guid>//www.pppqb.icu/gaimor/archive/2019/09/03/216760.html</guid><wfw:comment>//www.pppqb.icu/gaimor/comments/216760.html</wfw:comment><comments>//www.pppqb.icu/gaimor/archive/2019/09/03/216760.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>//www.pppqb.icu/gaimor/comments/commentRss/216760.html</wfw:commentRss><trackback:ping>//www.pppqb.icu/gaimor/services/trackbacks/216760.html</trackback:ping><description><![CDATA[<div class="dpun"> 鏈夋椂鍊欎俊鍙峰彂閫佽繃蹇紝娑堟伅榪樻病榪囨潵錛屼嬌鐢?span style=" color:#800080;">Connections</span></div><div class="dpun"><span style=" color:#800080;">鏃犳硶鏀跺埌淇℃伅</span></div><div class="dpun"><span style=" color:#800080;">鍙互浣跨敤 signal.connect鐩存帴榪炴帴妲藉嚱鏁板嵆鍙?br /></span></div><img src ="//www.pppqb.icu/gaimor/aggbug/216760.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="//www.pppqb.icu/gaimor/" target="_blank">ccsdu2009</a> 2019-09-03 15:02 <a href="//www.pppqb.icu/gaimor/archive/2019/09/03/216760.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>QML璋冭壊 - 皇室战争比赛视频2019|《皇室战争》昆仑官网//www.pppqb.icu/gaimor/archive/2019/09/02/216758.htmlccsdu2009ccsdu2009Mon, 02 Sep 2019 03:06:00 GMT//www.pppqb.icu/gaimor/archive/2019/09/02/216758.html//www.pppqb.icu/gaimor/comments/216758.html//www.pppqb.icu/gaimor/archive/2019/09/02/216758.html#Feedback0//www.pppqb.icu/gaimor/comments/commentRss/216758.html//www.pppqb.icu/gaimor/services/trackbacks/216758.htmlItem {
      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")
      
}
  }


ccsdu2009 2019-09-02 11:06 鍙戣〃璇勮
]]>
QML ListView 鎷栨嫿縐誨姩錛屼唬鐞嗗拰妯″瀷 - 皇室战争比赛视频2019|《皇室战争》昆仑官网//www.pppqb.icu/gaimor/archive/2019/08/30/216748.htmlccsdu2009ccsdu2009Fri, 30 Aug 2019 07:59:00 GMT//www.pppqb.icu/gaimor/archive/2019/08/30/216748.html//www.pppqb.icu/gaimor/comments/216748.html//www.pppqb.icu/gaimor/archive/2019/08/30/216748.html#Feedback0//www.pppqb.icu/gaimor/comments/commentRss/216748.html//www.pppqb.icu/gaimor/services/trackbacks/216748.htmlimport QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Window 2.2
import QtQuick.Dialogs 1.2

Rectangle
{
    width
: 640
    height: 450

    ListModel
    {
        id: objmodel
        ListElement
        {
            name: "寮犻"
        
}
        ListElement
        
{
            name
: "鍗庝綏"
        
}
        ListElement
        
{
            name
: "鏈辨不"
        
}
        ListElement
        
{
            name
: "鍏瓩搴?
        
}
        ListElement
        
{
            name
: "琚佹湰鍒?
        
}
        ListElement
        
{
            name
: "鏉ㄦ澗"
        
}
    }

    Component
    
{
        id
: delegateItem
        Item
        {
            id: wrapper
            width: parent.width
            height: 30

            Text
            {
                id: coll
                text: name
                font.pointSize: 13
                color: wrapper.ListView.isCurrentItem? "red":"black"
            
}

            MouseArea
            
{
                id
: mousearea
                anchors.fill: parent
                onClicked:listview.currentIndex = index
;

                onMouseXChanged
:
                {
                    var pore = listview.indexAt(mousearea.mouseX + wrapper.x, mousearea.mouseY + wrapper.y)
;
                    if(index !== pore )
                    {
                        objmodel.move(index,pore,1)
                    
}
                }

                onMouseYChanged:
                
{
                    var pore = listview.indexAt(mousearea.mouseX + wrapper.x, mousearea.mouseY + wrapper.y);
                    if(index !== pore)
                    {
                        objmodel.move(index,pore,1)
                    
}
                }
            }
        }
    }

    ListView
    
{
        id
: listview
        width:240
        height:180
        anchors.centerIn: parent
        delegate: delegateItem
        model:objmodel
        interactive: false
        focus: true

        move: Transition
        {
            NumberAnimation { properties: "x,y"
; duration: 2100 }
        }
    }
}


]]>