锘??xml version="1.0" encoding="utf-8" standalone="yes"?>

灏忕帇 2019-08-24 16:25 鍙?#29723;?#29831;勮
]]>JPA锛欼nvocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.***.***.entity.User com.***.***.repository.UserRepository.findFirstByPhone_no(java.lang.String)http://www.kffa.tw/jack-wang/archive/2019/08/24/216737.html灏忕帇灏忕帇Sat, 24 Aug 2019 08:04:00 GMThttp://www.kffa.tw/jack-wang/archive/2019/08/24/216737.htmlhttp://www.kffa.tw/jack-wang/comments/216737.htmlhttp://www.kffa.tw/jack-wang/archive/2019/08/24/216737.html#Feedback0http://www.kffa.tw/jack-wang/comments/commentRss/216737.htmlhttp://www.kffa.tw/jack-wang/services/trackbacks/216737.html { UserEntity findByUsername(String username); } 杩愯鍚?#37814;ラ敊锛岄敊璇?#37712;?#28729;?#28641;傛爣棰?#37813;绀恒? 鍘绘帀UserEntity涓?#37812;愬憳鍙橀噺 phone_no鐨?#28051;?#37714;掔嚎锛屾敼鎴?phoneno銆? 杩愯?#23678;?#29238;锛? O浜?#38171;? 灏肩帥JPA鐪熷潙浣犵埞鍟?#38171;?

灏忕帇 2019-08-24 16:04 鍙?#29723;?#29831;勮
]]>
mongodb妯$硦鏌?#29831;?/title><link>http://www.kffa.tw/alantop/archive/2019/08/23/216734.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Fri, 23 Aug 2019 15:10:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2019/08/23/216734.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/216734.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2019/08/23/216734.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/216734.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/216734.html</trackback:ping><description><![CDATA[<br /><div>db.sites.find(</div><div>{ "name": {$regex:/鐢典俊/}</div><div>    }</div><div>)</div><img src ="http://www.kffa.tw/alantop/aggbug/216734.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2019-08-23 23:10 <a href="http://www.kffa.tw/alantop/archive/2019/08/23/216734.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item><item><title>Qt鎻掍欢鏍蜂緥http://www.kffa.tw/gaimor/archive/2019/08/23/216731.htmlccsdu2009ccsdu2009Fri, 23 Aug 2019 09:49:00 GMThttp://www.kffa.tw/gaimor/archive/2019/08/23/216731.htmlhttp://www.kffa.tw/gaimor/comments/216731.htmlhttp://www.kffa.tw/gaimor/archive/2019/08/23/216731.html#Feedback0http://www.kffa.tw/gaimor/comments/commentRss/216731.htmlhttp://www.kffa.tw/gaimor/services/trackbacks/216731.html#include <QString>
#include 
<QtPlugin>
#include 
<QObject>

struct AddonInfo
{
    QString name;
    QString description;
    QString version;
    QString author;
};

class AddonInterface : public QObject
{
    Q_OBJECT
public:
    
virtual ~AddonInterface() {}
    
virtual AddonInfo addonInfo()const { return AddonInfo(); }
};

Q_DECLARE_INTERFACE(AddonInterface,
"com.ppx.addon.interface/1.0")

class AddonInterfaceIMPL : public AddonInterface
{
    Q_OBJECT
public:
    AddonInfo addonInfo()
const;

#if QT_VERSION >= 0x050000
    Q_PLUGIN_METADATA(IID 
"com.ppx.addon.interface")
    Q_INTERFACES(AddonInterface);
#endif 
};

#include "addon.h"
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(FilterInterface,plugin)
#endif // QT_VERSION < 0x050000

AddonInfo AddonInterfaceIMPL::addonInfo()const
{
    AddonInfo addon;
    addon.name = "MyAddOn";
    addon.author = "Coder";
    addon.description = "Description";
    addon.version = "1.0";
    return addon;
}

浣?#37922;?/span>
#include <qplugin.h>
#include <qpluginloader.h>
#include <qdebug>
#include "addon.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    QPluginLoader loader("addon.dll");
    qDebug()<<"load plugin :"<<loader.load();

    auto object = loader.instance();
    qDebug() << "object:" << object;
    if (object)
    {
        AddonInterface* face = qobject_cast<AddonInterface*>(object);
        qDebug() << "face ptr:"<<face;
        auto info = face->addonInfo();
        qDebug() << info.author << " " << info.description << " " << info.name << " " << info.version;
    }

    return a.exec();
}



ccsdu2009 2019-08-23 17:49 鍙?#29723;?#29831;勮
]]>
QML 鍙嫋鎷界缉鏀剧煩褰㈡http://www.kffa.tw/gaimor/archive/2019/08/22/216726.htmlccsdu2009ccsdu2009Thu, 22 Aug 2019 07:00:00 GMThttp://www.kffa.tw/gaimor/archive/2019/08/22/216726.htmlhttp://www.kffa.tw/gaimor/comments/216726.htmlhttp://www.kffa.tw/gaimor/archive/2019/08/22/216726.html#Feedback0http://www.kffa.tw/gaimor/comments/commentRss/216726.htmlhttp://www.kffa.tw/gaimor/services/trackbacks/216726.htmlimport QtQuick 2.4

Rectangle
{
    id: dragBackground
    visible: 
true
    color: 
"#dad1db"
    width:
720
    height:
480

    DragRectangle
    {
        z: 
10
        id:dragRectangle
        width: 
480
        height:
240

        Component.onCompleted:
        {
             dragBackground.makeViewCenter(dragRectangle)
        }
    }

    
function makeViewCenter(view)
    {
        
var cx = (width-view.width)*0.5
        
var cy = (height-view.height)*0.5
        view.x 
= cx
        view.y 
= cy
    }
}

Rectangle
import QtQuick 2.0

Rectangle
{
    id:resizeRectangle
    property int enableSize: 12
    property bool isPressed: false
    property point customPoint
    color: "#00debff3"
    border.color: "#d37e49"
    readonly property int minWidth: 64
    readonly property int minHeight: 64

    MouseArea
    {
        id: mouseArea
        anchors.fill: resizeRectangle
        drag.target: parent

        onWheel:
        {
            var diff_w = 0.0
            var diff_h = 0.0

            if(wheel.angleDelta.y > 0)
            {
                diff_w = resizeRectangle.width * 0.02
                diff_h = resizeRectangle.height * 0.02
            }
            else if(wheel.angleDelta.y < 0)
            {
                diff_w = -resizeRectangle.width * 0.02
                diff_h = -resizeRectangle.height * 0.02
            }
            else
            {
                resizeRectangle.width = width
                resizeRectangle.height = height
            }

            fixedRetangle(diff_w,diff_h)

            drag.minimumX = 0
            drag.maximumX = dragBackground.width - resizeRectangle.width
            drag.minimumY = 0
            drag.maximumY = dragBackground.height - resizeRectangle.height
        }
    }

    Item
    {
        id: leftTop
        width: enableSize
        height: enableSize
        anchors.left: parent.left
        anchors.top: parent.top

        MouseArea
        {
            anchors.fill: parent
            hoverEnabled: true

            onPressed: press(mouse)
            onEntered: enter(1)
            onReleased: release()
            onPositionChanged: positionChange(mouse, -1, -1)
        }
    }

    Item
    {
        id: top
        height: enableSize
        anchors.left: leftTop.right
        anchors.right: rightTop.left
        anchors.top: parent.top

        MouseArea
        {
            anchors.fill: parent
            hoverEnabled: true

            onPressed: press(mouse)
            onEntered: enter(2)
            onReleased: release()
            onMouseYChanged: positionChange(Qt.point(customPoint.x, mouseY), 1, -1)
        }
    }

    Item
    {
        id: rightTop
        width: enableSize
        height: enableSize
        anchors.right: parent.right
        anchors.top: parent.top

        MouseArea
        {
            anchors.fill: parent
            hoverEnabled: true

            onPressed: press(mouse)
            onEntered: enter(3)
            onReleased: release()
            onPositionChanged: positionChange(mouse, 1, -1)
        }
    }

    Item
    {
        id: left
        width: enableSize
        anchors.left: parent.left
        anchors.top: leftTop.bottom
        anchors.bottom: leftBottom.top

        MouseArea
        {
            anchors.fill: parent
            hoverEnabled: true

            onPressed: press(mouse)
            onEntered: enter(4)
            onReleased: release()

            onMouseXChanged: positionChange(Qt.point(mouseX, customPoint.y), -1, 1)
        }
    }

    Item
    {
        id: center
        anchors.left: left.right
        anchors.right: right.left
        anchors.top: top.bottom
        anchors.bottom: bottom.top

        MouseArea
        {
            anchors.fill: parent
            property point clickPos

            onPressed: clickPos = Qt.point(mouse.x,mouse.y)
            onPositionChanged:
            {
                if(pressed)
                {
                    var delta = Qt.point(mouse.x-clickPos.x, mouse.y-clickPos.y)
                    resizeRectangle.x += delta.x
                    resizeRectangle.y += delta.y
                    fixedRetangle(0,0)
                }
            }
        }
    }

    Item
    {
        id: right
        width: enableSize
        anchors.right: parent.right
        anchors.top: rightTop.bottom
        anchors.bottom: rightBottom.top

        MouseArea
        {
            anchors.fill: parent
            hoverEnabled: true

            onPressed: press(mouse)
            onEntered: enter(6)
            onReleased: release()
            onMouseXChanged: positionChange(Qt.point(mouseX, customPoint.y), 1, 1)
        }
    }

    Item
    {
        id: leftBottom
        width: enableSize
        height: enableSize
        anchors.left: parent.left
        anchors.bottom: parent.bottom

        MouseArea
        {
            anchors.fill: parent
            hoverEnabled: true

            onPressed: press(mouse)
            onEntered: enter(7)
            onReleased: release()
            onPositionChanged: positionChange(mouse, -1, 1)
        }
    }

    Item
    {
        id: bottom
        height: enableSize
        anchors.left: leftBottom.right
        anchors.right: rightBottom.left
        anchors.bottom: parent.bottom

        MouseArea
        {
            anchors.fill: parent
            hoverEnabled: true

            onPressed: press(mouse)
            onEntered: enter(8)
            onReleased: release()
            onMouseYChanged: positionChange(Qt.point(customPoint.x, mouseY), 1, 1)
        }
    }

    Item
    {
        id:rightBottom
        width: enableSize
        height: enableSize
        anchors.right: parent.right
        anchors.bottom: parent.bottom

        MouseArea
        {
            anchors.fill: parent
            hoverEnabled: true

            onPressed: press(mouse)
            onEntered: enter(9)
            onReleased: release()

            onPositionChanged: positionChange(mouse,1,1)
        }
    }

    function fixedRetangle(dx,dy)
    {
        if(resizeRectangle.width <= minWidth && resizeRectangle.height <= minHeight && dx <=0 && dy <= 0)
            return

        resizeRectangle.x -= dx*0.5
        resizeRectangle.y -= dy*0.5
        resizeRectangle.width += dx
        resizeRectangle.height += dy

        if(resizeRectangle.width < minWidth)
            resizeRectangle.width = minWidth
        if(resizeRectangle.height < minHeight)
            resizeRectangle.height = minHeight

        if(resizeRectangle.width > dragBackground.width)
            resizeRectangle.width = dragBackground.width
        if(resizeRectangle.height > dragBackground.height)
            resizeRectangle.height = dragBackground.height

        if(resizeRectangle.width + resizeRectangle.x > dragBackground.width)
            resizeRectangle.x = dragBackground.width - resizeRectangle.width
        if(resizeRectangle.height + resizeRectangle.y > dragBackground.height)
            resizeRectangle.y = dragBackground.height - resizeRectangle.height

        if(resizeRectangle.y < 0)
            resizeRectangle.y = 0

        if(resizeRectangle.x < 0)
            resizeRectangle.x = 0
    }

    function enter(direct)
    {
    }

    function press(mouse)
    {
        isPressed = true
        customPoint = Qt.point(mouse.x, mouse.y)
    }

    function release()
    {
        isPressed = false
    }

    function positionChange(newPosition,directX, directY)
    {
        if(!isPressed)
            return

        var delta = Qt.point(newPosition.x-customPoint.x, newPosition.y-customPoint.y)
        var tmpW,tmpH

        if(directX >= 0)
            tmpW = resizeRectangle.width + delta.x
        else
            tmpW = resizeRectangle.width - delta.x

        if(directY >= 0)
            tmpH = resizeRectangle.height + delta.y
        else
            tmpH = resizeRectangle.height - delta.y

        if(tmpW < resizeRectangle.minimumWidth)
        {
            if(directX < 0)
                resizeRectangle.x += (resizeRectangle.width - resizeRectangle.minimumWidth)
            resizeRectangle.width = resizeRectangle.minimumWidth
        }
        else
        {
            resizeRectangle.width = tmpW
            if(directX < 0)
                resizeRectangle.x += delta.x
        }

        if(tmpH < resizeRectangle.minimumHeight)
        {
            if(directY < 0)
                resizeRectangle.y += (resizeRectangle.height - resizeRectangle.minimumHeight)
            resizeRectangle.height = resizeRectangle.minimumHeight
        }
        else
        {
            resizeRectangle.height = tmpH
            if(directY < 0)
                resizeRectangle.y += delta.y
        }

        fixedRetangle(0,0)
    }
}



ccsdu2009 2019-08-22 15:00 鍙?#29723;?#29831;勮
]]>
Qt璋冩暣鍥剧墖HSL?#20426;?#20229;http://www.kffa.tw/gaimor/archive/2019/08/22/216725.htmlccsdu2009ccsdu2009Thu, 22 Aug 2019 03:49:00 GMThttp://www.kffa.tw/gaimor/archive/2019/08/22/216725.htmlhttp://www.kffa.tw/gaimor/comments/216725.htmlhttp://www.kffa.tw/gaimor/archive/2019/08/22/216725.html#Feedback0http://www.kffa.tw/gaimor/comments/commentRss/216725.htmlhttp://www.kffa.tw/gaimor/services/trackbacks/216725.htmlvoid adjustImageHSL(QImage& image,qreal hue,qreal saturation,qreal lightness)
{
    unsigned 
int* data = (unsigned int*)image.bits();
    
int size = image.width()*image.height();
    QColor color;

    
for(int i = 0; i < size; i++)
    {
        
int red = qRed(data[i]);
        
int green = qGreen(data[i]);
        
int blue = qBlue(data[i]);
        color.setRed(red);
        color.setGreen(green);
        color.setBlue(blue);
        qreal h 
= color.hueF() + hue;
        qreal s 
= color.saturationF() + saturation;
        qreal l 
= color.lightnessF() + lightness;
        h 
= qBound<qreal>(0,h,1);
        s 
= qBound<qreal>(0,s,1);
        l 
= qBound<qreal>(0,l,1);
        color.setHslF(h,s,l);
        color.setAlpha(qAlpha(data[i]));
        data[i] 
= qRgba(color.red(),color.green(),color.blue(),color.alpha());
    }

    
return;
}


ccsdu2009 2019-08-22 11:49 鍙?#29723;?#29831;勮
]]>
QML popup鎺т欢http://www.kffa.tw/gaimor/archive/2019/08/21/216719.htmlccsdu2009ccsdu2009Wed, 21 Aug 2019 07:58:00 GMThttp://www.kffa.tw/gaimor/archive/2019/08/21/216719.htmlhttp://www.kffa.tw/gaimor/comments/216719.htmlhttp://www.kffa.tw/gaimor/archive/2019/08/21/216719.html#Feedback0http://www.kffa.tw/gaimor/comments/commentRss/216719.htmlhttp://www.kffa.tw/gaimor/services/trackbacks/216719.htmlimport QtQuick 2.4
import QtQuick.Controls 
2.4
import QtQuick.Layouts 
1.3
import QtQuick.Dialogs 
1.2

Popup
{
    width: 
360
    height: 
90
    modal: 
true
    focus: 
true
    opacity: 
0.96

    
function setWarningText(input)
    {
        warningText.text 
= input
    }

    Text
    {
        id:warningText
        anchors.centerIn: parent
        text: 
"WarningText"
    }
}


ccsdu2009 2019-08-21 15:58 鍙?#29723;?#29831;勮
]]>
QML鍥剧墖?#32521;鏀?#37724;屾嫋鎷?/title><link>http://www.kffa.tw/gaimor/archive/2019/08/20/216716.html</link><dc:creator>ccsdu2009</dc:creator><author>ccsdu2009</author><pubDate>Tue, 20 Aug 2019 05:53:00 GMT</pubDate><guid>http://www.kffa.tw/gaimor/archive/2019/08/20/216716.html</guid><wfw:comment>http://www.kffa.tw/gaimor/comments/216716.html</wfw:comment><comments>http://www.kffa.tw/gaimor/archive/2019/08/20/216716.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/gaimor/comments/commentRss/216716.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/gaimor/services/trackbacks/216716.html</trackback:ping><description><![CDATA[<div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">import QtQuick </span><span style="color: #000000; ">2.9</span><span style="color: #000000; "><br /><br />Item<br />{<br />    visible: </span><span style="color: #0000FF; ">true</span><span style="color: #000000; "><br />    width: </span><span style="color: #000000; ">1620</span><span style="color: #000000; "><br />    height: </span><span style="color: #000000; ">720</span><span style="color: #000000; "><br />    id:background<br /><br />    Image<br />    {<br />        source: </span><span style="color: #000000; ">"</span><span style="color: #000000; ">images/2560.png</span><span style="color: #000000; ">"</span><span style="color: #000000; "><br />        anchors.fill: parent<br />    }<br /><br />    Flickable<br />    {<br />        id: flick<br />        anchors.top: parent.top;<br />        anchors.left: parent.left<br />        anchors.right: parent.right<br />        anchors.bottom: parent.bottom<br />        anchors.margins: </span><span style="color: #000000; ">3</span><span style="color: #000000; "><br />        contentWidth: </span><span style="color: #000000; ">0</span><span style="color: #000000; "><br />        contentHeight: </span><span style="color: #000000; ">0</span><span style="color: #000000; "><br />        clip: </span><span style="color: #0000FF; ">true</span><span style="color: #000000; "><br /><br />        Image<br />        {<br />            id: image<br />            smooth: </span><span style="color: #0000FF; ">true</span><span style="color: #000000; "><br />            transformOrigin: Item.Center<br />            source:</span><span style="color: #000000; ">"</span><span style="color: #000000; ">mark.png</span><span style="color: #000000; ">"</span><span style="color: #000000; "><br /><br />            onStatusChanged:<br />            {<br />                </span><span style="color: #0000FF; ">if</span><span style="color: #000000; ">(status </span><span style="color: #000000; ">===</span><span style="color: #000000; "> Image.Ready)<br />                {<br />                    image.width </span><span style="color: #000000; ">*=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0.5</span><span style="color: #000000; "><br />                    image.height </span><span style="color: #000000; ">*=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0.5</span><span style="color: #000000; "><br /><br />                    image.x </span><span style="color: #000000; ">=</span><span style="color: #000000; "> background.width</span><span style="color: #000000; ">*</span><span style="color: #000000; ">0.5</span><span style="color: #000000; ">-</span><span style="color: #000000; ">0.5</span><span style="color: #000000; ">*</span><span style="color: #000000; ">image.width<br />                    image.y </span><span style="color: #000000; ">=</span><span style="color: #000000; "> background.height</span><span style="color: #000000; ">*</span><span style="color: #000000; ">0.5</span><span style="color: #000000; ">-</span><span style="color: #000000; ">0.5</span><span style="color: #000000; ">*</span><span style="color: #000000; ">image.height<br /><br />                    </span><span style="color: #008000; ">/*</span><span style="color: #008000; ">mouseArea.drag.minimumX = 0<br />                    mouseArea.drag.maximumX = flick.width - image.width<br />                    mouseArea.drag.minimumY = 0<br />                    mouseArea.drag.maximumY = flick.height - image.height</span><span style="color: #008000; ">*/</span><span style="color: #000000; "><br />                }<br />            }<br />        }<br />    }<br /><br />    </span><span style="color: #0000FF; ">function</span><span style="color: #000000; "> makeImageCenter(imageWidth,imageHeight)<br />    {<br />        </span><span style="color: #0000FF; ">var</span><span style="color: #000000; "> cx </span><span style="color: #000000; ">=</span><span style="color: #000000; "> image.x </span><span style="color: #000000; ">+</span><span style="color: #000000; "> </span><span style="color: #000000; ">0.5</span><span style="color: #000000; ">*</span><span style="color: #000000; ">image.width<br />        </span><span style="color: #0000FF; ">var</span><span style="color: #000000; "> cy </span><span style="color: #000000; ">=</span><span style="color: #000000; "> image.y </span><span style="color: #000000; ">+</span><span style="color: #000000; "> </span><span style="color: #000000; ">0.5</span><span style="color: #000000; ">*</span><span style="color: #000000; ">image.height<br /><br />        image.width </span><span style="color: #000000; ">=</span><span style="color: #000000; "> imageWidth<br />        image.height </span><span style="color: #000000; ">=</span><span style="color: #000000; "> imageHeight<br /><br />        image.x </span><span style="color: #000000; ">=</span><span style="color: #000000; "> cx </span><span style="color: #000000; ">-</span><span style="color: #000000; "> image.width</span><span style="color: #000000; ">*</span><span style="color: #000000; ">0.5</span><span style="color: #000000; "><br />        image.y </span><span style="color: #000000; ">=</span><span style="color: #000000; "> cy </span><span style="color: #000000; ">-</span><span style="color: #000000; "> image.height</span><span style="color: #000000; ">*</span><span style="color: #000000; ">0.5</span><span style="color: #000000; "><br />    }<br /><br />    MouseArea<br />    {<br />        id: mouseArea<br />        anchors.fill: flick<br />        drag.target: image<br /><br />        onWheel:<br />        {<br />            </span><span style="color: #0000FF; ">var</span><span style="color: #000000; "> diff_w </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0.0</span><span style="color: #000000; "><br />            </span><span style="color: #0000FF; ">var</span><span style="color: #000000; "> diff_h </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0.0</span><span style="color: #000000; "><br /><br />            </span><span style="color: #0000FF; ">if</span><span style="color: #000000; ">(wheel.angleDelta.y </span><span style="color: #000000; ">></span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; ">)<br />            {<br />                diff_w </span><span style="color: #000000; ">=</span><span style="color: #000000; "> image.width </span><span style="color: #000000; ">*</span><span style="color: #000000; "> </span><span style="color: #000000; ">0.02</span><span style="color: #000000; "><br />                diff_h </span><span style="color: #000000; ">=</span><span style="color: #000000; "> image.height </span><span style="color: #000000; ">*</span><span style="color: #000000; "> </span><span style="color: #000000; ">0.02</span><span style="color: #000000; "><br />            }<br />            </span><span style="color: #0000FF; ">else</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">if</span><span style="color: #000000; ">(wheel.angleDelta.y </span><span style="color: #000000; "><</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; ">)<br />            {<br />                diff_w </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">-</span><span style="color: #000000; ">image.width </span><span style="color: #000000; ">*</span><span style="color: #000000; "> </span><span style="color: #000000; ">0.02</span><span style="color: #000000; "><br />                diff_h </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">-</span><span style="color: #000000; ">image.height </span><span style="color: #000000; ">*</span><span style="color: #000000; "> </span><span style="color: #000000; ">0.02</span><span style="color: #000000; "><br />            }<br />            </span><span style="color: #0000FF; ">else</span><span style="color: #000000; "><br />            {<br />                image.width </span><span style="color: #000000; ">=</span><span style="color: #000000; "> width<br />                image.height </span><span style="color: #000000; ">=</span><span style="color: #000000; "> height<br />            }<br /><br />            </span><span style="color: #0000FF; ">if</span><span style="color: #000000; ">(wheel.angleDelta.y </span><span style="color: #000000; ">!=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; ">)<br />                background.makeImageCenter(image.width</span><span style="color: #000000; ">+</span><span style="color: #000000; ">diff_w,image.height</span><span style="color: #000000; ">+</span><span style="color: #000000; ">diff_h)<br /><br />            drag.minimumX </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; "><br />            drag.maximumX </span><span style="color: #000000; ">=</span><span style="color: #000000; "> flick.width </span><span style="color: #000000; ">-</span><span style="color: #000000; "> image.width<br />            drag.minimumY </span><span style="color: #000000; ">=</span><span style="color: #000000; "> </span><span style="color: #000000; ">0</span><span style="color: #000000; "><br />            drag.maximumY </span><span style="color: #000000; ">=</span><span style="color: #000000; "> flick.height </span><span style="color: #000000; ">-</span><span style="color: #000000; "> image.height<br />        }<br />    }<br />}<br /></span></div><img src ="http://www.kffa.tw/gaimor/aggbug/216716.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/gaimor/" target="_blank">ccsdu2009</a> 2019-08-20 13:53 <a href="http://www.kffa.tw/gaimor/archive/2019/08/20/216716.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item><item><title>tb 閲?#37922;诲紑鍗曡褰?/title><link>http://www.kffa.tw/alantop/archive/2019/08/20/216715.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Tue, 20 Aug 2019 04:32:00 GMT</pubDate><guid>http://www.kffa.tw/alantop/archive/2019/08/20/216715.html</guid><wfw:comment>http://www.kffa.tw/alantop/comments/216715.html</wfw:comment><comments>http://www.kffa.tw/alantop/archive/2019/08/20/216715.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.kffa.tw/alantop/comments/commentRss/216715.html</wfw:commentRss><trackback:ping>http://www.kffa.tw/alantop/services/trackbacks/216715.html</trackback:ping><description><![CDATA[     ?#25011;瑕?   <a href='http://www.kffa.tw/alantop/archive/2019/08/20/216715.html'>闃?#29831;诲叏鏂?/a><img src ="http://www.kffa.tw/alantop/aggbug/216715.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.kffa.tw/alantop/" target="_blank">AlanTop</a> 2019-08-20 12:32 <a href="http://www.kffa.tw/alantop/archive/2019/08/20/216715.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;勮</a></div>]]></description></item><item><title>QTreeView灏忎緥http://www.kffa.tw/gaimor/archive/2019/08/19/216710.htmlccsdu2009ccsdu2009Mon, 19 Aug 2019 05:42:00 GMThttp://www.kffa.tw/gaimor/archive/2019/08/19/216710.htmlhttp://www.kffa.tw/gaimor/comments/216710.htmlhttp://www.kffa.tw/gaimor/archive/2019/08/19/216710.html#Feedback0http://www.kffa.tw/gaimor/comments/commentRss/216710.htmlhttp://www.kffa.tw/gaimor/services/trackbacks/216710.htmlvoid buildTreeItem(QObjectList* list,QStandardItem* item)
{
    
foreach(auto object,*list)
    {
        auto current 
= new QStandardItem();
        current
->setText(object->objectName());
        item
->appendRow(current);
        auto chidren 
= object->children();
        
if(!chidren.isEmpty())
            buildTreeItem(
&chidren,current);
    }
}

void buildTree(QTreeView* view,const QList<QObject*>& list)
{
    view
->header()->hide();
    view
->setColumnHidden(0,true);
    QStandardItemModel
* model = new QStandardItemModel(view);
    
foreach(auto object,list)
    {
        auto item 
= new QStandardItem(object->objectName());
        auto list 
= object->children();
        buildTreeItem(
&list,item);
        model
->appendRow(item);
    }
    view
->setModel(model);
}

QObject
* buildObjectTree(QObject* parent,const QString& text)
{
    auto 
object = new QObject(parent);
    
object->setObjectName(text);
    
return object;
}



    QWidget widget;
    auto box 
= new QVBoxLayout();
    widget.setLayout(box);
    QTreeView
* tree = new QTreeView(&widget);
    box
->addWidget(tree);

    QList
<QObject*> list;
    auto 
object = buildObjectTree(nullptr,"1");

    list.append(
object);
    
    buildObjectTree(
object"2");
    buildObjectTree(
object"3");
    
object = buildObjectTree(object"4");
    buildObjectTree(
object"5");
    buildObjectTree(
object"6");
    
object = buildObjectTree(object"7");

    buildObjectTree(
object"8");
    buildObjectTree(
object"9");
    buildObjectTree(
object"10");
    buildObjectTree(
object"11");
    
    buildTree(tree,list);
    widget.show();


ccsdu2009 2019-08-19 13:42 鍙?#29723;?#29831;勮
]]>
<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>
快三3稳赚技巧钱绝招
<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>
<var id="pl157"></var>
<cite id="pl157"><noframes id="pl157"><thead id="pl157"><strike id="pl157"><progress id="pl157"></progress></strike></thead>
<var id="pl157"><span id="pl157"></span></var>
<var id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></var>
<cite id="pl157"><video id="pl157"></video></cite><ins id="pl157"></ins>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<cite id="pl157"><span id="pl157"></span></cite><var id="pl157"><video id="pl157"><thead id="pl157"></thead></video></var>
<cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<var id="pl157"><span id="pl157"><menuitem id="pl157"></menuitem></span></var><cite id="pl157"><span id="pl157"><var id="pl157"></var></span></cite>
<var id="pl157"><span id="pl157"></span></var>
<ins id="pl157"><span id="pl157"></span></ins>
<ins id="pl157"><video id="pl157"></video></ins><ins id="pl157"></ins>
<var id="pl157"></var> <cite id="pl157"><video id="pl157"><menuitem id="pl157"></menuitem></video></cite>
<ins id="pl157"></ins>
<ins id="pl157"></ins>
<var id="pl157"></var>
<cite id="pl157"></cite><del id="pl157"></del>
<cite id="pl157"><video id="pl157"></video></cite>
<menuitem id="pl157"></menuitem>
<var id="pl157"></var>
<menuitem id="pl157"></menuitem>
<cite id="pl157"></cite>
<progress id="pl157"><ruby id="pl157"><th id="pl157"></th></ruby></progress><var id="pl157"></var>
<ins id="pl157"><noframes id="pl157"><var id="pl157"></var>
<ins id="pl157"><span id="pl157"></span></ins><cite id="pl157"></cite>
<cite id="pl157"><span id="pl157"></span></cite>
排列五投注金额计算器 北京快三分析 北京快乐8压大小 vc时时彩开奖视频 一点红一波中特 贵州十一选五走势图爱彩乐 九龙六合图库彩图 湖南赛车开奖结果查 魔力宝贝手游 河内五分彩 河北十一选五的预测号 七乐彩旋转矩阵7保5公式 下载qq游戏欢乐升级 黑客能修改私彩余额 湖南彩票双色球115期