Re: [Interest] Qt containers deprecated with 5.0?

2016-11-28 Thread Burak Arslan
On 11/28/16 12:54, André Somers wrote: > there is nothing wrong with using std containers in a Qt application, Aren't qt-branded containers emit-friendly? AFAIK the meaty bits are refcounted which makes it a non-issue to pass them around from signals to slots (even across thread boundaries). How

Re: [Interest] Qt containers deprecated with 5.0?

2016-11-28 Thread Thiago Macieira
On segunda-feira, 28 de novembro de 2016 22:55:00 PST Jason H wrote: > Not quite the same: http://doc.qt.io/qt-5/qstringlist.html > filter(), join(), replaceIn(), etc. It wouldn't be too difficult to make QListSpecialMethods also work for QVector, with an extra template parameter. Exercise left

Re: [Interest] Qt containers deprecated with 5.0?

2016-11-28 Thread Jason H
Not quite the same: http://doc.qt.io/qt-5/qstringlist.html filter(), join(), replaceIn(), etc.   I kinda wonder if Qt needs to implement filterable, joinable, etc interfaces.   Sent: Monday, November 28, 2016 at 1:18 PM From: "Philip Schuchardt" To: "Jason H" , "André Somers" Cc: interest@q

Re: [Interest] Qt containers deprecated with 5.0?

2016-11-28 Thread Alejandro Exojo
On Monday 28 November 2016 11:40:03 André Somers wrote: > Anyway: see the blog or one of the recorded talks from Qt conferences on > this topic. You will want to get into the habbit of raising a red flag > whenever you do a code review and find a QList, and start typing QVector > instead of QLis

Re: [Interest] Qt containers deprecated with 5.0?

2016-11-28 Thread André Pönitz
On Mon, Nov 28, 2016 at 10:54:54AM +0100, André Somers wrote: > There is nothing wrong with using Qt containers either (with the exception > of QList (Irrational hatred [TM]) Andre' ___ Interest mailing list Interest@qt-project.org http://lists.qt-proje

Re: [Interest] Qt containers deprecated with 5.0?

2016-11-28 Thread Philip Schuchardt
After reading some articles some types like QString are marked as movable and are efficiently stored in QList. They'll use about the same amount of memory as a QVector so it seems unlikely for QStringList to switch to QStringVector. Plus you can add QVector yourself with a typedef. :D On Mon, Nov

Re: [Interest] Qt containers deprecated with 5.0?

2016-11-28 Thread Jason H
> > Op 28/11/2016 om 11:27 schreef Michael Sué: > > Hi André, > > > >> There is nothing wrong with using Qt containers either (with the exception > >> of QList, which you will want to stear clear of as much as you can), as as > >> noted, you can (and should) use the std algorithms on them just f

Re: [Interest] Qt3D - Render to QImage

2016-11-28 Thread Philip Schuchardt
Cool! I didn't see RenderCapture class in 5.7. I glad it was added in 5.8. I'll try to prototype something with custom framegraph in 5.8. Phi|ip On Mon, Nov 28, 2016 at 6:48 AM Juan Jose Casafranca wrote: > I will have a better look to how the aspect translates the framegraph node > to opengl c

Re: [Interest] SCXML Statemachine donedata event

2016-11-28 Thread Ulf Hermann
Connections|{| ||target|: stateMachine| |onEventOccurred: {| |console.|log|(event.name)| |}| |}| From QML you should use the EventConnection QML type. About like this: EventConnection { stateMachine: stateMachine events: ["done.state.*"] // or ["done.state.somespecificst

[Interest] SCXML Statemachine donedata event

2016-11-28 Thread Bublitz, Wolf
Hallo, I am experimenting with the new QScxmlStateMachine. Currently I am running a state machine with JavaScript data model and I am wondering how to catch the donedata event. For example my statemachine defines the following final state: According to the SCXML spe

Re: [Interest] Qt3D - Render to QImage

2016-11-28 Thread Juan Jose Casafranca
I will have a better look to how the aspect translates the framegraph node to opengl commands. Thanks! 2016-11-28 12:42 GMT+01:00 Sean Harmer : > On Monday 28 November 2016 12:34:01 Juan Jose Casafranca wrote: > > How does QRenderCapture works? When a capture is requested it sets a > flags > > a

Re: [Interest] Qt3D - Render to QImage

2016-11-28 Thread Sean Harmer
On Monday 28 November 2016 12:34:01 Juan Jose Casafranca wrote: > How does QRenderCapture works? When a capture is requested it sets a flags > and when generating the view, it creates a job that will render the image? > I imagine the QRenderCapture in the framegraph is important. If you put it > ri

Re: [Interest] Qt3D - Render to QImage

2016-11-28 Thread Juan Jose Casafranca
How does QRenderCapture works? When a capture is requested it sets a flags and when generating the view, it creates a job that will render the image? I imagine the QRenderCapture in the framegraph is important. If you put it right after the ClearBuffers, it will render an empty image, wont it? 201

Re: [Interest] Qt3D - Render to QImage

2016-11-28 Thread Sean Harmer
On Monday 28 November 2016 11:48:14 Harald Vistnes wrote: > Hi, > > yes, this would be a most welcome feature. > > Concerning Jira, it has already been requested multiple times > https://bugreports.qt.io/browse/QTBUG-52074 > https://bugreports.qt.io/browse/QTBUG-52136 I meant for reading back fr

Re: [Interest] Qt3D - Render to QImage

2016-11-28 Thread Harald Vistnes
Hi, yes, this would be a most welcome feature. Concerning Jira, it has already been requested multiple times https://bugreports.qt.io/browse/QTBUG-52074 https://bugreports.qt.io/browse/QTBUG-52136 I tried to render into a FBO and read back the results, but had some problems. I attached some test

Re: [Interest] Qt containers deprecated with 5.0?

2016-11-28 Thread André Somers
Op 28/11/2016 om 11:27 schreef Michael Sué: Hi André, There is nothing wrong with using Qt containers either (with the exception of QList, which you will want to stear clear of as much as you can), as as noted, you can (and should) use the std algorithms on them just fine. What's wrong with

Re: [Interest] Qt3D - Render to QImage

2016-11-28 Thread Sean Harmer
On Monday 28 November 2016 11:40:10 Juan Jose Casafranca wrote: > Oh thanks! > > Yes, in fact my first thought was to use it for a compute shader. It would > make Qt3D a great tool not only for rendering but also for GPGPU. > I will try to have a look on it during the Christmas vacations :-) Awes

Re: [Interest] Qt3D - Render to QImage

2016-11-28 Thread Juan Jose Casafranca
Oh thanks! Yes, in fact my first thought was to use it for a compute shader. It would make Qt3D a great tool not only for rendering but also for GPGPU. I will try to have a look on it during the Christmas vacations :-) 2016-11-28 11:31 GMT+01:00 Sean Harmer : > Hi, > > On Monday 28 November 2016

Re: [Interest] Qt3D - Render to QImage

2016-11-28 Thread Sean Harmer
Hi, On Monday 28 November 2016 11:22:30 Juan Jose Casafranca wrote: > Hi Sean, > > is there any example on how to do that? I tried to use a QRenderCapture but > I failed two weeks ago. http://code.qt.io/cgit/qt/qt3d.git/tree/tests/manual/rendercapture-qml http://code.qt.io/cgit/qt/qt3d.git/tree/

Re: [Interest] Qt containers deprecated with 5.0?

2016-11-28 Thread Konstantin Tokarev
28.11.2016, 13:27, "Michael Sué" : > Hi André, > >>  There is nothing wrong with using Qt containers either (with the exception >> of QList, which you will want to stear clear of as much as you can), as as >>  noted, you can (and should) use the std algorithms on them just fine. > > What's wrong

Re: [Interest] Qt containers deprecated with 5.0?

2016-11-28 Thread Michael Sué
Hi André, > There is nothing wrong with using Qt containers either (with the exception of > QList, which you will want to stear clear of as much as you can), as as > noted, you can (and should) use the std algorithms on them just fine. What's wrong with QList (as compared to other implementatio

Re: [Interest] Qt3D - Render to QImage

2016-11-28 Thread Juan Jose Casafranca
Hi Sean, is there any example on how to do that? I tried to use a QRenderCapture but I failed two weeks ago. Is there any way to access the buffers content data using a similar approach to the QRenderCapture method? For example, in an animation system, use a graphics pipeline to compute the defor

Re: [Interest] Qt3D - Render to QImage

2016-11-28 Thread Sean Harmer
On Monday 28 November 2016 02:23:59 Philip Schuchardt wrote: > I'm trying to port my OpenGL code (https://github.com/Cavewhere/cavewhere/) > to use Qt3D. I think Qt3D will allow me to quickly improve and modify my > rendering pipeline. The one requirement I need is to be able to render to a > QImag

Re: [Interest] Qt containers deprecated with 5.0?

2016-11-28 Thread André Somers
Hi, Op 27/11/2016 om 18:32 schreef Bob Hood: This is probably common knowledge, but I came across the following paragraph sited in a stackoverflow answer[1] from a page regarding Qt algorithms[2]: "Historically, Qt used to provide functions which were direct equivalents of many STL algorith