How to draw shape and make slide event?
Solved
QML and Qt Quick
-
Hello guys. I am a bit confused about drawing the following shape using Rectangle?
When I click green buttons, a following blue menu should appear.
Thank you,
-
I have no idea about the sliding part, your question is vague to say the least, but here is how I would create the 'l-shape' rectangle.
I have deliberately left the lower part of the shape another shade of blue so you can see how it is 'joined'.
import QtQuick 2.1 import QtQuick.Window 2.12 Window { visible: true width: 640 height: 540 Rectangle { id: panel x: 10; y: 10 width: 300 height: 500 color: "lightblue" } Rectangle { id: panelPart x: 10; y: 10 anchors.left: parent.left +5 anchors.bottom: panel.bottom height: 100; width: 400 color: "darkblue" } }
-
Hello guys. I am a bit confused about drawing the following shape using Rectangle?
When I click green buttons, a following blue menu should appear.
Thank you,
@Munkhtamir
I think, what you're looking for is aDrawer
https://github.com/DeiVadder/Topic112113 -
Thank you for help guys. I have solved my problem using Canvas. @J-Hilk was also good idea.