Re: [Interest] Quick Controls 2: custom control

2017-04-13 Thread Jérôme Godbout
I would be curious, in QtQuick.Control 1.x you could do the following: import QtQuick 2.1 import QtQuick.Controls 1.1 import QtQuick.Controls.Private 1.0 import QtQuick.Controls.Styles 1.1 Control { id: component property int rotationbuttonWidth: 50 property bool pressed: false property color bor

Re: [Interest] Quick Controls 2: custom control

2017-04-12 Thread Alexander Dyagilev
Am I right that this is what I'm looking for? http://doc.qt.io/qt-5/qtqml-tutorials-extending-qml-example.html On 4/12/2017 4:09 PM, Alexander Dyagilev wrote: Hello, I know about a possibility to customize existing controls. (http://doc.qt.io/qt-5/qtquickcontrols2-customize.html) But what if

[Interest] Quick Controls 2: custom control

2017-04-12 Thread Alexander Dyagilev
Hello, I know about a possibility to customize existing controls. (http://doc.qt.io/qt-5/qtquickcontrols2-customize.html) But what if I would like to create completely new one? Including ability to draw it by myself. Is it possible with Quick Controls2? If yes, please give me a link to the d