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

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

import QtQuick 2.2  
import QtQuick.Controls 1.1
    
Column
{
    spacing: 2
    Repeater
    {
        model: ["A","B","C","D","E","F"]
        Rectangle
        {
            width: 100
            height: 20
            radius: 3
            color: "blue"
            Text
            {
                anchors.centerIn: parent
                text: modelData
            }
        }
    }
}
2
import QtQuick 2.2  
import QtQuick.Controls 1.1
    
Column
{
    spacing: 2
    Repeater
    {
        model: 5
        Rectangle
        {
            width: 100
            height: 20
            radius: 3
            color: "blue"
            Text
            {
                anchors.centerIn: parent
                text: modelData
            }
        }
    }
}

posted @ 2015-08-20 13:53 ccsdu2009 閱讀(404) | 評論 (0)編輯 收藏
 
import QtQuick 2.2  
import QtQuick.Controls 1.1 
     
Image 
{
    width
: 240
    height: 240
    source: "assets/background.png"
    Image 
    {
        id: ufo
        y: 90
        x: 90
        width: 48
        height: 48
        source: "assets/ufo.png"
    
}
    
    ParallelAnimation
    
{
        id
: ani
        NumberAnimation
        {
            target: ufo
            properties: "width"
            to: 60
            duration: 600
        
}
        NumberAnimation
        
{
            target
: ufo
            properties: "height"
            to: 60
            duration: 600
        
}    
    }
        
    MouseArea 
    
{
        anchors.fill
: parent
        onClicked: 
        {
            ani.restart()
;
        
}
    }         
}
序列動畫
import QtQuick 2.2  
import QtQuick.Controls 1.1 
     
Image 
{
    width
: 240
    height: 240
    source: "assets/background.png"
    Image 
    {
        id: ufo
        y: 90
        x: 90
        width: 48
        height: 48
        source: "assets/ufo.png"
    
}
    
    SequentialAnimation
    
{
        id
: ani
        NumberAnimation
        {
            target: ufo
            properties: "width"
            to: 60
            duration: 600
        
}
        NumberAnimation
        
{
            target
: ufo
            properties: "height"
            to: 60
            duration: 600
        
}    
    }
        
    MouseArea 
    
{
        anchors.fill
: parent
        onClicked: 
        {
            ani.restart()
;
        
}
    }         
}

posted @ 2015-08-20 13:41 ccsdu2009 閱讀(651) | 評論 (0)編輯 收藏
 
行列布局
    import QtQuick 2.2  
    import QtQuick.Controls 1.1 
     
    Item 
    
{
        id
: root
        Column 
        {
            id: buttons
            anchors.centerIn: parent
            spacing: 6
            MyButton
            {
                width:64
                height:48
            
}
            MyButton
            
{
                width
:64
                height:48
            
}
            MyButton
            
{
                width
:64
                height:48
            
}
            
            Row 
            
{
                id
: rows
                spacing: 12
                MyButton
                {
                    width:64
                    height:48
                
}
                MyButton
                
{
                    width
:64
                    height:48
                
}
                MyButton
                
{
                    width
:64
                    height:48
                
}
            }
        }
    }   

格子布局
    import QtQuick 2.2  
    import QtQuick.Controls 1.1 
     
    Item 
    
{
        id
: root
        Grid
        {
            id: buttons
            rows: 3
            columns: 2
            anchors.centerIn: parent
            spacing: 6
            MyButton
            {
                width:64
                height:48
            
}
            MyButton
            
{
                width
:64
                height:48
            
}
            MyButton
            
{
                width
:64
                height:48
            
}
            MyButton
            
{
                width
:64
                height:48
            
}
            MyButton
            
{
                width
:64
                height:48
            
}
            MyButton
            
{
                width
:64
                height:48
                color: "red"
            
}
        }
    }   

MyButton.qml
    import QtQuick 2.2  
    import QtQuick.Controls 1.1  
     
    Rectangle 
    
{ 
        id
: item
        color: "yellow"
        border.color: "blue"
        Text 
        {
            id: text
            anchors.centerIn: parent
            text: "點擊我"
        
}
        MouseArea 
        
{
            anchors.fill
: parent
            onClicked: 
            {
                text.text = "我被點擊了"
            
}
        }
    }
posted @ 2015-08-20 11:47 ccsdu2009 閱讀(392) | 評論 (0)編輯 收藏
 
    import QtQuick 2.2  
    import QtQuick.Controls 1.1  
    
    Rectangle 
    
{
        id
: rect1
        x: 12
; y: 12
        width: 176
; height: 96
        gradient: Gradient 
        {
            GradientStop { position: 0.0
; color: '#FF4444' }
            GradientStop 
{ position: 1.0; color: "blue" }
        }
        // 邊框顏色
        border.color: "red"
        radius: 8
        
        Text 
        
{
            text
: "The quick brown fox"
            color: "#303030"
            anchors.centerIn: parent
            font.family: "Ubuntu"
            font.pixelSize: 24
        
}    
    }

再上一個
    import QtQuick 2.2  
    import QtQuick.Controls 1.1  
    
    Rectangle 
    
{
        id
: rect1
        x: 12
; y: 12
        width: 176
; height: 96
        gradient: Gradient 
        {
            GradientStop { position: 0.0
; color: '#FF4444' }
            GradientStop 
{ position: 1.0; color: "blue" }
        }
        // 邊框顏色
        border.color: "red"
        radius: 8
        
        Text 
        
{
            text
: "The quick brown fox"
            color: "#303060"
            anchors.centerIn: parent
            font.family: "Ubuntu"
            font.pixelSize: 24
            elide: Text.ElideMiddle
            style: Text.Sunken
            styleColor: '#FF4444'
            verticalAlignment: Text.AlignTop
        
}    
    }
使用鼠標控制字體的顯示
    import QtQuick 2.2  
    import QtQuick.Controls 1.1  
    
    Rectangle 
    
{
        id
: rect1
        x: 12
; y: 12
        width: 176
; height: 96
        gradient: Gradient 
        {
            GradientStop { position: 0.0
; color: '#FF4444' }
            GradientStop 
{ position: 1.0; color: "blue" }
        }
        // 邊框顏色
        border.color: "red"
        radius: 8
        
        Text 
        
{
            id
: text
            text: "The quick brown fox"
            color: "#303060"
            anchors.centerIn: parent
            font.family: "Ubuntu"
            font.pixelSize: 24
            elide: Text.ElideMiddle
            style: Text.Sunken
            styleColor: '#FF4444'
            verticalAlignment: Text.AlignTop
            visible: true
        
}    
        
        MouseArea 
        
{
            id
: area
            width: parent.width
            height: parent.height
            onClicked: text.visible = !text.visible
        
}        
    }

posted @ 2015-08-20 11:13 ccsdu2009 閱讀(3208) | 評論 (0)編輯 收藏
 
    import QtQuick 2.2  
    import QtQuick.Controls 1.1  
    
    Text 
    
{
        id
: label
        x: 24
        y: 24
        
        //here
        property int spacePresses: 0
        
        text: "Space pressed: " + spacePresses + " times"
        onTextChanged: console.log("text changed to:", text)

        focus: true
        
        Keys.onSpacePressed: 
        {
            increment()
        
}
        Keys.onEscapePressed: 
        
{
            label.text = ''
        
}
        
        //! 這是一個js函數
        function increment() 
        
{
            spacePresses = spacePresses + 1
        
}
    }
posted @ 2015-08-20 10:51 ccsdu2009 閱讀(388) | 評論 (0)編輯 收藏
 
    import QtQuick 2.2  
    import QtQuick.Controls 1.1  
    
    Rectangle 
    
{        
        Image
        {
            anchors.fill
: parent
            id: background
            source: "background.png"
        
}
        
        width: 360
        height: 360
        Text 
        
{
            anchors.centerIn
: parent
            text: "你好世界,點擊鼠標退出程序"
        
}
        MouseArea 
        
{
            anchors.fill
: parent
            onClicked: 
            {
                Qt.quit()
;
            
}
        }    
    }   
posted @ 2015-08-20 10:33 ccsdu2009 閱讀(293) | 評論 (0)編輯 收藏
 
基本代碼如下:
    import QtQuick 2.2  
    import QtQuick.Controls 1.1  
      
    Image
    
{
        id
: root
        source: "background.png"
    
}
這個是使用給定圖形填充背景,
如果使用多個圖形嵌套,做法如下:
    import QtQuick 2.2  
    import QtQuick.Controls 1.1  
      
    Image
    
{
        id
: root
        source: "background.png"
        
        Image
        {
            id: head
            source: "head.png"
            anchors.centerIn: parent
            anchors.verticalCenterOffset: 20
        
}
    }
當然可以再加上旋轉
    import QtQuick 2.2  
    import QtQuick.Controls 1.1  
      
    Image
    {
        id: root
        source: "background.png"
        
        Image
        {
            id: head
            width: 48
            height: 48
            source: "head.png"
            anchors.centerIn: parent
            anchors.verticalCenterOffset: 20
            
            MouseArea
            {
                anchors.fill: parent
                onClicked: head.rotation += 9
            }
        }
    }
加上動畫可以讓旋轉更加平滑點,如下:
    import QtQuick 2.2  
    import QtQuick.Controls 1.1  
      
    Image
    
{
        id
: root
        source: "background.png"
        
        Image
        {
            id: head
            width: 48
            height: 48
            source: "head.png"
            anchors.centerIn: parent
            anchors.verticalCenterOffset: 20
            
            MouseArea 
            {
                anchors.fill: parent
                onClicked: head.rotation += 90
            
}
            
            Behavior on rotation 
            
{
                NumberAnimation 
                {
                    duration
: 600
                
}
            }
        }
    }
posted @ 2015-08-20 10:24 ccsdu2009 閱讀(373) | 評論 (0)編輯 收藏
 
一個Item對應一個場景,提供隱藏或顯示場景即可切換,如下:
    import QtQuick 2.2  
    import QtQuick.Controls 1.1  
      
    ApplicationWindow  
    
{  
        visible
: true  
        width:  480  
        height: 360  
        title: "Hello World"  
      
        Item  
        {  
            id: scene_1  
            visible: true  
            anchors.fill: parent  
            Text  
            {  
                anchors.centerIn: parent  
                textFormat: Text.RichText  
                text: "<h1><font color=red>這是第一個場景</color></h1>" 
            
}  
            MouseArea  
            
{  
                anchors.fill
: parent  
                onClicked:  
                {  
                    scene_1.visible = false
;
                    scene_2.visible = true;
                    scene_3.visible = false;                     
                
}  
            }  
      
        }  
      
        Item  
        
{  
            id
: scene_2  
            visible: false  
            anchors.fill: parent  
            Text  
            {  
                anchors.centerIn: parent  
                textFormat: Text.RichText  
                text: "<h1><font color=green>這是第二個場景</color></h1>" 
            
}  
            MouseArea  
            
{  
                anchors.fill
: parent  
                onClicked:  
                {  
                    scene_2.visible = false
;  
                    scene_1.visible = false;
                    scene_3.visible = true;                    
                
}  
            }  
        }  
        
        Item  
        
{  
            id
: scene_3  
            visible: false  
            anchors.fill: parent  
            Text  
            {  
                anchors.centerIn: parent  
                textFormat: Text.RichText  
                text: "<h1><font color=black>這是第三個場景</color></h1>"
            
}  
            MouseArea  
            
{  
                anchors.fill
: parent  
                onClicked:  
                {  
                    scene_1.visible = true
                    scene_2.visible = false
;
                    scene_3.visible = false;                      
                
}  
            }  
        }          
    } 
posted @ 2015-08-19 17:54 ccsdu2009 閱讀(476) | 評論 (0)編輯 收藏
 
 如下:
            
            sql 
+= "',N'";
            sql 
+= desc1;
            sql 
+= "',N'";
            sql 
+= desc2;
            sql 
+= "',N'";
            sql 
+= desc3;
            sql 
+= "');select @@identity;";
            
            OleDbConnection conn 
= getOleDbConntion();
            OleDbCommand cmd 
= new OleDbCommand(sql, conn);
            conn.Open();

            OleDbDataReader reader 
= cmd.ExecuteReader();

            reader.Read();
            
string index = reader.GetValue(0).ToString();
            conn.Close();
            
return index;
        }

posted @ 2015-07-29 16:29 ccsdu2009 閱讀(439) | 評論 (0)編輯 收藏
 
       Date.prototype.format = function(format) {
            
var args = {
                
"M+"this.getMonth() + 1,
                
"d+"this.getDate(),
                
"h+"this.getHours(),
                
"m+"this.getMinutes(),
                
"s+"this.getSeconds(),
                
"q+": Math.floor((this.getMonth() + 3/ 3),  
                
"S"this.getMilliseconds()
            };
            
if (/(y+)/.test(format))
                format 
= format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
            
for (var i in args) {
                
var n = args[i];
                
if (new RegExp("(" + i + ")").test(format))
                    format 
= format.replace(RegExp.$1, RegExp.$1.length == 1 ? n : ("00" + n).substr(("" + n).length));
            }
            
return format;
        };
posted @ 2015-07-13 16:48 ccsdu2009 閱讀(417) | 評論 (0)編輯 收藏
僅列出標題
共38頁: First 6 7 8 9 10 11 12 13 14 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| 日韩视频一区二区在线观看| 性欧美大战久久久久久久免费观看 | 一区二区三区久久| 91久久视频| 久热精品在线视频| 亚洲激情欧美| 亚洲精品色图| 国产精品毛片a∨一区二区三区| 亚洲一区二区三区四区在线观看 | 欧美国产亚洲精品久久久8v| 久久婷婷久久| 亚洲美女毛片| 亚洲欧美日本伦理| 韩国av一区二区| 亚洲成色777777女色窝| 欧美色一级片| 久久久久久尹人网香蕉| 久久久久久久一区二区| 99www免费人成精品| 亚洲影院在线| 在线色欧美三级视频| 亚洲精品久久久蜜桃| 国产免费亚洲高清| 欧美不卡视频一区发布| 欧美视频一区二| 葵司免费一区二区三区四区五区| 麻豆精品在线观看| 亚洲欧美国产视频| 另类酷文…触手系列精品集v1小说| 亚洲精品精选| 先锋影音一区二区三区| 亚洲九九九在线观看| 性伦欧美刺激片在线观看| 亚洲欧洲在线观看| 亚洲天堂第二页| 91久久精品www人人做人人爽| 亚洲午夜一区| 亚洲精品婷婷| 久久精品国产久精国产爱| 在线视频你懂得一区| 久久精品av麻豆的观看方式| 亚洲一区二区视频在线观看| 久久―日本道色综合久久| 亚洲一区久久久| 欧美成人免费观看| 久久网站免费| 国产精品综合| 亚洲深夜影院| 这里只有精品丝袜| 免费在线观看日韩欧美| 久久天天狠狠| 国产亚洲欧美激情| 亚洲尤物视频在线| 一区二区三区久久精品| 欧美电影免费观看高清完整版| 久久久人成影片一区二区三区| 欧美视频在线观看免费| 亚洲精品一线二线三线无人区| 亚洲国产精品成人精品| 欧美在线亚洲在线| 久久精品国产999大香线蕉| 国产精品久久网| 亚洲视频每日更新| 亚洲先锋成人| 国产精品久久精品日日| 99re8这里有精品热视频免费| 亚洲人成在线免费观看| 欧美激情欧美狂野欧美精品| 亚洲电影免费观看高清| 亚洲人屁股眼子交8| 欧美激情女人20p| 亚洲精品视频在线播放| 一区二区高清| 国产精品v亚洲精品v日韩精品| 99热这里只有成人精品国产| 亚洲专区在线视频| 国产精品日韩在线播放| 亚洲欧美精品在线观看| 久久久一区二区三区| 激情综合在线| 欧美福利精品| 亚洲视频在线一区观看| 久久er精品视频| 精品成人一区二区三区四区| 老司机免费视频久久| 亚洲福利视频网站| 亚洲午夜久久久久久久久电影院 | 一区二区三区欧美在线| 欧美三级网址| 欧美亚洲视频在线观看| 欧美成人国产va精品日本一级| 91久久香蕉国产日韩欧美9色| 欧美日韩国产在线播放| 亚洲欧美怡红院| 欧美福利在线观看| 亚洲私拍自拍| 在线播放中文一区| 欧美日韩视频在线一区二区观看视频| av成人黄色| 久久一二三四| 在线亚洲高清视频| 狠狠操狠狠色综合网| 欧美精品久久99久久在免费线| 亚洲一区二区日本| 欧美~级网站不卡| 亚洲欧美美女| 亚洲韩国青草视频| 国产精品一区二区三区久久久| 久久综合伊人77777蜜臀| 一本色道久久综合| 欧美a一区二区| 欧美一级艳片视频免费观看| 亚洲国产裸拍裸体视频在线观看乱了中文 | 亚洲综合日韩| 91久久精品国产91久久性色tv| 欧美与欧洲交xxxx免费观看| 日韩一区二区免费高清| 国内精品一区二区三区| 欧美三区免费完整视频在线观看| 久久精品免费看| 亚洲你懂的在线视频| 亚洲欧洲精品天堂一级| 久久尤物视频| 欧美一区二区免费视频| 亚洲午夜在线视频| 亚洲经典三级| 尤物精品在线| 国产一区二区三区免费不卡| 欧美日韩美女在线| 欧美激情中文不卡| 欧美成人xxx| 久久久久看片| 久久精品电影| 欧美影院在线| 亚洲综合色丁香婷婷六月图片| 亚洲日本欧美| 亚洲欧洲综合另类| 欧美激情无毛| 欧美韩日一区二区| 欧美激情一区二区| 欧美国产日韩a欧美在线观看| 久久性天堂网| 久久亚洲精选| 久久亚洲精品一区| 蜜臀av一级做a爰片久久| 美女网站久久| 免费在线观看精品| 欧美成人免费网| 亚洲黄一区二区| 亚洲日本中文字幕区| 亚洲精品一线二线三线无人区| 亚洲精品一二三| 9色porny自拍视频一区二区| 一区电影在线观看| 亚洲一区在线免费观看| 亚洲欧美日韩天堂一区二区| 欧美一激情一区二区三区| 欧美制服第一页| 久久免费一区| 蜜桃视频一区| 欧美日韩一区三区四区| 国产精品专区h在线观看| 国产精品亚洲激情| 激情成人综合| 亚洲欧洲日本国产| 亚洲一区二区三区精品在线观看| 欧美一级黄色网| 另类综合日韩欧美亚洲| 亚洲国产精品精华液2区45| 亚洲靠逼com| 亚洲免费视频观看| 久久一区中文字幕| 欧美区日韩区| 国产日韩视频| 亚洲区在线播放| 午夜精品久久久久久久久久久久 | 免费中文字幕日韩欧美| 91久久久久| 欧美一区久久| 欧美国产视频日韩| 国产精品自在欧美一区| 亚洲黄色一区| 欧美在线关看| 亚洲国产免费| 欧美一级大片在线免费观看| 久热精品视频在线观看一区| 国产精品高潮在线| 在线看无码的免费网站| 亚洲免费在线播放| 欧美国产极速在线| 亚洲影音一区| 欧美激情视频给我| 依依成人综合视频| 亚洲欧美日韩国产一区| 亚洲第一精品在线| 午夜精品国产精品大乳美女| 欧美精品福利在线| 在线 亚洲欧美在线综合一区| 亚洲欧美日韩精品久久亚洲区|