Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-12 Thread Shawn Rutledge
> It probably wasn't mentioned because it's got a bad reputation as being slow. > It's easy to abuse it and end up with crappy performance. As long as you > limit the amount of painting you do and how often you do it, I don't think > using it is really an issue in practice. ... > like Canvas

Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-12 Thread Oleg Evseev
> It probably wasn't mentioned because it's got a bad reputation as being > slow. It's easy to abuse it and end up with crappy performance. As long as > you limit the amount of painting you do and how often you do it, I don't > think using it is really an issue in practice. I see, thanks for

Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-12 Thread Mitch Curtis
. From: Interest <interest-bounces+mitch.curtis=qt...@qt-project.org> on behalf of Oleg Evseev <ev.m...@gmail.com> Sent: Wednesday, 12 October 2016 1:48:54 PM To: Qt Project Subject: Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup? Great t

Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-12 Thread Oleg Evseev
Jérôme, I didn't understand what your suggestion for? One can easy draw round cornered rectangle with Canvas (see roundedrect.qml in canvas example) [image: Встроенное изображение 1] Based on that example I did my rectangle (with *all *rounded corners) with tip in one draw path and solved my

Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-12 Thread Jérôme Godbout
For the round corner with rectangle: Rectangle { border.width: 2 border.color: "black" color: Qt.rgba(0,0,0,0) clip: true width: canvas_.width height: canvas_.height Canvas { ... } } Using the clip and the round corner should work. On Wed, Oct 12, 2016 at 7:48 AM, Oleg

Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-12 Thread Oleg Evseev
Great thanks, Shawn. Canvas is what I searching for! Even in canvas example there is a Talk bubble example that is look similar to tipped Popup! [image: Встроенное изображение 1] Canvas is Qt Quick Item, so it is quite easy to add it on the scene and add a shadows (or other effects) to it

Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-07 Thread Oleg Evseev
> using an Image is a very simple solution Thanks for suggestion! 2016-10-07 8:27 GMT+03:00 Gunnar Sletta : > Although you can do a custom shape like this using QSGGeometryNode, using > an Image is a very simple solution which also gives you complete control > over the look

Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-06 Thread Gunnar Sletta
Although you can do a custom shape like this using QSGGeometryNode, using an Image is a very simple solution which also gives you complete control over the look and how it integrates with the rest of the popup. And all from QML.. cheers, Gunnar > On 06 Oct 2016, at 21:22, Oleg Evseev

Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-06 Thread Oleg Evseev
> > But lack of this solution - you can not set the opacity of such > constructed popup :) Plus, I think, set elevation to get shade of popup without doing it for arrow tip will not have a good look. 2016-10-06 22:16 GMT+03:00 Oleg Evseev : > And yes I understand that this

Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-06 Thread Oleg Evseev
And yes I understand that this could be done with help of clipping rotated rectangle by half and get it ahead of popup with border offset overlap. But lack of this solution - you can not set the opacity of such constructed popup :) 2016-10-06 22:11 GMT+03:00 Oleg Evseev : >

Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-06 Thread Oleg Evseev
Thanks for suggestion, Jérôme. I thought about such workaround, but for me it would be very nice to have border of such popup. 2016-10-06 21:19 GMT+03:00 Jérôme Godbout : > More a workaround then a real solution, but could work as long as the > triangle is still sharp 90

Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-06 Thread Jérôme Godbout
My bad, oups 90 deg and bad rotation center... Item { id: component property real sizing: 100 property alias color: rect_.color property alias border: rect_.border width: sizing height: sizing clip: true Rectangle { id: rect_ width: component.width height: component.height color:

Re: [Interest] [Quick Controls 2] Best way to add binding arrow tip to Popup?

2016-10-06 Thread Jérôme Godbout
More a workaround then a real solution, but could work as long as the triangle is still sharp 90 angle. Item { id: component property real sizing: 10 property alias color: rect_.color property alias border: rect_.border width: sizing height: sizing clip: true Rectangle {