This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.7 | |
import QtQuick.Controls 2.0 | |
import QtQml 2.2 | |
import QtQuick.Controls.Material 2.0 | |
import QtQuick.Layouts 1.3 | |
// DEMO VIDEO : https://gfycat.com/WarlikeImportantAmericanrobin | |
ApplicationWindow { | |
visible: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.7 | |
import QtQuick.Controls 2.0 | |
ApplicationWindow { | |
visible: true | |
width: 640 | |
height: 480 | |
ListView { | |
id: listView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.15 | |
import QtQml 2.15 | |
Behavior { | |
id: root | |
property QtObject fadeTarget: targetProperty.object | |
property string fadeProperty: "scale" | |
property int fadeDuration: 150 | |
property string easingType: "Quad" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "bibinding.h" | |
#include <QDebug> | |
QQmlProperty BiBinding::source() const | |
{ | |
return m_source; | |
} | |
void BiBinding::setSource(const QQmlProperty& source) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.9 | |
Binding { | |
id: root | |
property int delay: 500 | |
property alias value: root._delayedValue | |
property alias _actualValue: root.value | |
property var _delayedValue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rect { | |
radius: Math.min(width, height) / 2 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
MouseArea { | |
id: root | |
property Item draggedParent: parent ? parent.parent || parent : null | |
property var modelIndex: typeof model !== "undefined" ? model.index : undefined | |
signal move(int from, int to) | |
property bool dropEnabled: true | |
property bool dropBlocked: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.7 | |
Item { | |
id: root | |
property Flickable flickable: parent | |
anchors.fill: parent | |
property MouseArea mouseArea | |
readonly property bool active: flickable && (mouseArea ? mouseArea.drag.active : false) |
NewerOlder