[Interest] Drawing dashed line with QSGSimpleMaterialShader

2016-06-04 Thread Artem Fedoskin
As I understand there is no way to draw dashed line in Qt Quick Scene Graph so I decided to create shader material to do this. I'm trying to apply this approach http://korkd.com/2012/02/15/dashed-lines/ to this example http://doc.qt.io/qt-5/qtquick-scenegraph-simplematerial-example.html. 1.

Re: [Interest] Drawing dashed line with QSGSimpleMaterialShader

2016-06-06 Thread Artem Fedoskin
MT+02:00 Gunnar Sletta <gun...@sletta.org>: > > > On 05 Jun 2016, at 00:50, Artem Fedoskin <afedosk...@gmail.com> wrote: > > > > As I understand there is no way to draw dashed line in Qt Quick Scene > Graph so I decided to create shader material to do this. >

Re: [Interest] Drawing dashed line with QSGSimpleMaterialShader

2016-06-14 Thread Artem Fedoskin
inates rather than logical ones. > > cheers, > Gunnar > > > On 13 Jun 2016, at 22:37, Artem Fedoskin <afedosk...@gmail.com> wrote: > > > > Thank you guys for all your advices. > > > > I implemented the thing I need by drawing textures with QPainter b

Re: [Interest] Drawing dashed line with QSGSimpleMaterialShader

2016-06-13 Thread Artem Fedoskin
Shawn Rutledge <shawn.rutle...@qt.io>: > > > On 6 Jun 2016, at 12:29, Gunnar Sletta <gun...@sletta.org> wrote: > > > >> On 06 Jun 2016, at 09:27, Artem Fedoskin <afedosk...@gmail.com> wrote: > >> Another question - is there any way to draw tex

[Interest] Few questions regarding Qt Quick Scene Graph

2016-04-24 Thread Artem Fedoskin
Hello everybody. I have a project where a lot of objects are painted on the screen whenever the user interacts with the app (pan, zoom, move) I would be really grateful to you if you could answer a few questions regarding the internals of Qt Quick Scene Graph: 1. Imagine that I add 1000 nodes

Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-24 Thread Artem Fedoskin
st I was thinking about deriving classes like Triangle from QQuickItem and then reparenting them to the View but the direct creation of QSGGeometryNodes seems to me to be less memory requiring approach. Regards, Artem Fedoskin 2016-04-24 16:41 GMT+02:00 Artem Fedoskin <afedosk...@gmail.com>: >

Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-25 Thread Artem Fedoskin
? Is allocating 1000 QSGNodes in View significantly faster than creating 1000 QQuickItems with the same painting logic and then setting its visual parent to View? Thank you Regards, Artem 2016-04-25 9:06 GMT+02:00 Gunnar Sletta <gun...@sletta.org>: > > > On 24 Apr 2016, at 16:49,

Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-29 Thread Artem Fedoskin
understand the internals of Scene Graph a little better. Regards, Artem 2016-04-28 11:27 GMT+02:00 Gunnar Sletta <gun...@sletta.org>: > > > On 27 Apr 2016, at 22:47, Artem Fedoskin <afedosk...@gmail.com> wrote: > > > > 1. I have experimented a little with the Scene

Re: [Interest] Few questions regarding Qt Quick Scene Graph

2016-04-27 Thread Artem Fedoskin
() and constantly call update()? Sorry for so much questions, but my project has to display and process a lot of items on the screen and it has to work good on mobile platforms. Thank you very much for all your advices and suggestions. Regards, Artem Fedoskin 2016-04-26 9:19 GMT+02:00 Gunnar Sletta <

Re: [Interest] Questions regarding Scene Graph (QSGClipNode, QSGTexture, QSGOpacityNode)

2016-05-17 Thread Artem Fedoskin
ke a node out of the scene graph (by receiving > non-null and returning null in updatePaintNode, for instance), you are > yourself responsible for deleting that node as it will no longer be managed > by its parent. > > cheers, > Gunnar > > > > On 09 May 2016, at 22:54, Artem Fed

Re: [Interest] Questions regarding Scene Graph (QSGClipNode, QSGTexture, QSGOpacityNode)

2016-05-09 Thread Artem Fedoskin
ur help. You keep my project going :) Regards, Artem 2016-05-09 11:31 GMT+02:00 Gunnar Sletta <gun...@sletta.org>: > > > On 08 May 2016, at 01:22, Artem Fedoskin <afedosk...@gmail.com> wrote: > > > > 1. Could you tell me please how one can set custom geometry for &

[Interest] Questions regarding Scene Graph (QSGClipNode, QSGTexture, QSGOpacityNode)

2016-05-07 Thread Artem Fedoskin
is not rendered? How is it different from just taking a node out of a node tree? Regards, Artem Fedoskin ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] QtSensors Double Tap on Androdi

2016-07-26 Thread Artem Fedoskin
Hi, I'm trying to use Qt Sensors but it doesn't work on my Nexus 7 (2nd gen). First I used QTapSensor from C++ but QTapSensor::reading() returns null and QTapSensor::connectToBackend() returns false, although I call setReturnDoubleTapEvents(true) and start() before using sensor. Second I used

[Interest] High-DPI scaling of QQuickItem-derived class

2016-08-08 Thread Artem Fedoskin
Hello, I use QtQuickControls 2 together with QQuickItem-derived class in my app. After I set AA_EnableHighDpiScaling attribute and all QQuickControls 2 components look correctly on my smartphone but object of my custom class is scaled incorrectly. Here is the app without HighDpi scaling with