Re: [Interest] QAbstractItemModel::layoutAboutToBeChanged

2016-03-23 Thread Dmitry Volosnykh
Bill, for example, you may have sorted rows. In this case all items are still up to date, but they are rearranged visually. So, the view may do some optimisations upon rendering this case, since the only thing it needs is to reposition old items without the need to re-read theirs data. On Thu,

Re: [Interest] Very large QRC file

2016-03-23 Thread Thiago Macieira
On quarta-feira, 23 de março de 2016 21:49:41 PDT Scott Aron Bloom wrote: > What does this flag do? Is there an equivalent flag for CMake??? It makes rcc operate in a two-pass mode. Without it, resource compilation is: $$QMAKE_RCC $$QMAKE_RESOURCE_FLAGS ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT}

Re: [Interest] Ensuring that a queued invocation occurs after deferred deletion

2016-03-23 Thread Nye
Hello, > At one stage I thought about having a C++ object that could be created in QML and would somehow keep count of references to the game object. For example, each Loader whose source component has access to the game object would somehow register itself with the object, and the game wouldn’t

[Interest] Two item models.

2016-03-23 Thread william.croc...@analog.com
Hello: If I have a single data structure being presented to the world by two, separate item models and I want to "insert a row". I assume I would: 1 - call beginInsertRows on both models, 2 - insert the row in my single data structure 3 - call endInsertRows on both models. I am pretty sure I

Re: [Interest] Very large QRC file

2016-03-23 Thread Hamish Moffatt
On 24/03/16 07:23, Thiago Macieira wrote: On quarta-feira, 23 de março de 2016 16:39:02 EDT Jason H wrote: I have a qrc devoted to media: audio and video. It's only about 100 megs total of both (2 videos and several languages for each). It results in about a 500MB cpp file. It takes 8 gigs to

[Interest] QAbstractItemModel::layoutAboutToBeChanged

2016-03-23 Thread Bill Crocker
Gang: The doc for QAbstractItemModel::layoutAboutToBeChanged() says... This signal is emitted just before the layout of a model is changed. Components connected to this signal use it to adapt to changes in the model's layout. What is the "layout of a model" and how does that differ

Re: [Interest] Very large QRC file

2016-03-23 Thread Scott Aron Bloom
-Original Message- From: Interest [mailto:interest-bounces+scott=towel42@qt-project.org] On Behalf Of Jason H Sent: Wednesday, March 23, 2016 2:41 PM To: Thiago Macieira Cc: interest@qt-project.org Subject: Re: [Interest] Very large QRC file > Sent: Wednesday, March 23, 2016 at

Re: [Interest] Very large QRC file

2016-03-23 Thread Jason H
> Sent: Wednesday, March 23, 2016 at 4:23 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] Very large QRC file > > On quarta-feira, 23 de março de 2016 16:39:02 EDT Jason H wrote: > > I have a qrc devoted to media: audio and video.

Re: [Interest] Canvas keeping artifacts

2016-03-23 Thread Jason H
Thanks for the tip, but a few things: 1. I don't think clearRect uses fillStyle 2. I don't think clearRect needs a fill, as "clear" implies both color and fill op. http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_canvas_clearrect     I had played with that, including your code, no

Re: [Interest] Setting currentIndex in Qt Quick ComboBox does not work

2016-03-23 Thread Fabian Sturm
Hi Jerome! Thanks a lot for your help and I already read the article and tried for another several hours. Unfortunately I still can only get one half working. Here is the new code for the event propagation: ComboBox { id: combo width: parent.width model: mymodel.items // order is

Re: [Interest] Canvas keeping artifacts

2016-03-23 Thread Jérôme Godbout
You may want to clear fill with blank transparency: ctx.fillStyle = 'rgba(0,0,0,0)'; ctx.clearRect(0,0,width,height); ctx.fill(); for me it did the trick. On Wed, Mar 23, 2016 at 4:54 PM, Jason H wrote: > I have a very simple pause button: > Canvas { >

[Interest] Canvas keeping artifacts

2016-03-23 Thread Jason H
I have a very simple pause button: Canvas { id: pauseCanvas anchors.fill: parent onWidthChanged: requestPaint() onHeightChanged: requestPaint() onPaint: { var ctx = getContext('2d');

Re: [Interest] Very large QRC file

2016-03-23 Thread Thiago Macieira
On quarta-feira, 23 de março de 2016 16:39:02 EDT Jason H wrote: > I have a qrc devoted to media: audio and video. It's only about 100 megs > total of both (2 videos and several languages for each). It results in > about a 500MB cpp file. It takes 8 gigs to compile, which is what my > hardware ram

Re: [Interest] Very large QRC file

2016-03-23 Thread André Pönitz
On Wed, Mar 23, 2016 at 04:39:02PM +0100, Jason H wrote: > I have a qrc devoted to media: audio and video. It's only about 100 > megs total of both (2 videos and several languages for each). It > results in about a 500MB cpp file. It takes 8 gigs to compile, which > is what my hardware ram is, so

Re: [Interest] Very large QRC file

2016-03-23 Thread Konstantin Tokarev
23.03.2016, 19:11, "André Somers" : > Op 23/03/2016 om 17:04 schreef Konstantin Tokarev: >>  23.03.2016, 19:03, "Sean Harmer" : >>>  On Wednesday 23 March 2016 16:57:04 Jason H wrote: >>>  Notice the -no-compress option too this can save runtime CPu

Re: [Interest] Structuring of QML app as set of interlinked screens for maximum code reuse

2016-03-23 Thread Elvis Stansvik
2016-03-23 17:40 GMT+01:00 Elvis Stansvik : > Hi Martin, > > (and sorry in advance for the line breaks in the inline quotations of > your mail below, seems GMail mis-parsed something). > > 2016-03-22 22:38 GMT+01:00 Martin Leutelt : >> Von: Elvis

Re: [Interest] Structuring of QML app as set of interlinked screens for maximum code reuse

2016-03-23 Thread Elvis Stansvik
Hi Martin, (and sorry in advance for the line breaks in the inline quotations of your mail below, seems GMail mis-parsed something). 2016-03-22 22:38 GMT+01:00 Martin Leutelt : > Von: Elvis Stansvik > An: "interest@qt-project.org Interest"

Re: [Interest] Very large QRC file

2016-03-23 Thread Jason H
> > mac { > asset_builder.output = > $$OUT_PWD/VideoPlayerHIV.app/Contents/MacOs/${QMAKE_FILE_IN_BASE}.qrb > } else { > asset_builder.output = $$OUT_PWD/${QMAKE_FILE_IN_BASE}.qrb > } > > Or similar. Most excellent. Thank you. ___ Interest

Re: [Interest] Very large QRC file

2016-03-23 Thread Sean Harmer
On Wednesday 23 March 2016 17:28:21 Jason H wrote: > > Notice the -no-compress option too this can save runtime CPu costs > > involved > > with decompressing the data especially for already compressed formats such > > as most video codecs. > > > > Then in your c++ source add: > > > >

Re: [Interest] Very large QRC file

2016-03-23 Thread Jason H
> Op 23/03/2016 om 16:57 schreef Jason H: > > Not sure. This is an app for a tablet, I've always packaged assets in qrc, > > because it "just worked". I could try DISTFILES, but I'm unsure how that > > work on mobile platforms. > Please don't. Don't fill your users' devices with assets they are

Re: [Interest] Very large QRC file

2016-03-23 Thread Jason H
> Notice the -no-compress option too this can save runtime CPu costs involved > with decompressing the data especially for already compressed formats such as > most video codecs. > > Then in your c++ source add: > > QResource::registerResource("mybigmedia.qrb"); > > and use it just like any

Re: [Interest] Very large QRC file

2016-03-23 Thread André Somers
Op 23/03/2016 om 16:57 schreef Jason H: Not sure. This is an app for a tablet, I've always packaged assets in qrc, because it "just worked". I could try DISTFILES, but I'm unsure how that work on mobile platforms. Please don't. Don't fill your users' devices with assets they are not going

Re: [Interest] Very large QRC file

2016-03-23 Thread Sean Harmer
On Wednesday 23 March 2016 17:10:35 André Somers wrote: > Op 23/03/2016 om 17:04 schreef Konstantin Tokarev: > > 23.03.2016, 19:03, "Sean Harmer" : > >> On Wednesday 23 March 2016 16:57:04 Jason H wrote: > >> Notice the -no-compress option too this can save runtime CPu costs

Re: [Interest] Very large QRC file

2016-03-23 Thread André Somers
Op 23/03/2016 om 17:04 schreef Konstantin Tokarev: 23.03.2016, 19:03, "Sean Harmer" : On Wednesday 23 March 2016 16:57:04 Jason H wrote: Notice the -no-compress option too this can save runtime CPu costs involved with decompressing the data especially for already

Re: [Interest] Very large QRC file

2016-03-23 Thread Konstantin Tokarev
23.03.2016, 19:03, "Sean Harmer" : > On Wednesday 23 March 2016 16:57:04 Jason H wrote: >>  Not sure. This is an app for a tablet, I've always packaged assets in qrc, >>  because it "just worked". I could try DISTFILES, but I'm unsure how that >>  work on mobile platforms.

Re: [Interest] Very large QRC file

2016-03-23 Thread Sean Harmer
On Wednesday 23 March 2016 16:57:04 Jason H wrote: > Not sure. This is an app for a tablet, I've always packaged assets in qrc, > because it "just worked". I could try DISTFILES, but I'm unsure how that > work on mobile platforms. > > Sent: Wednesday, March 23, 2016 at 11:41 AM > > From: "Gian

Re: [Interest] Very large QRC file

2016-03-23 Thread Gian Maxera
I done various app for Android and iOS … never used QRC. On Android use “assets” and on iOS use Bundle data. > On 23 Mar 2016, at 15:57, Jason H wrote: > > Not sure. This is an app for a tablet, I've always packaged assets in qrc, > because it "just worked". I could try

Re: [Interest] Very large QRC file

2016-03-23 Thread Jason H
Not sure. This is an app for a tablet, I've always packaged assets in qrc, because it "just worked". I could try DISTFILES, but I'm unsure how that work on mobile platforms. > Sent: Wednesday, March 23, 2016 at 11:41 AM > From: "Gian Maxera" > To: "Jason H"

Re: [Interest] Very large QRC file

2016-03-23 Thread Konstantin Tokarev
23.03.2016, 18:39, "Jason H" : > I have a qrc devoted to media: audio and video. It's only about 100 megs > total of both (2 videos and several languages for each). It results in about > a 500MB cpp file. It takes 8 gigs to compile, which is what my hardware ram > is, so I

Re: [Interest] Very large QRC file

2016-03-23 Thread Gian Maxera
My absolute rule is Never Never put big files into qrc file. Can you avoid it too ? > On 23 Mar 2016, at 15:39, Jason H wrote: > > I have a qrc devoted to media: audio and video. It's only about 100 megs > total of both (2 videos and several languages for each). It results in

[Interest] Very large QRC file

2016-03-23 Thread Jason H
I have a qrc devoted to media: audio and video. It's only about 100 megs total of both (2 videos and several languages for each). It results in about a 500MB cpp file. It takes 8 gigs to compile, which is what my hardware ram is, so I spend a lot of time swapping. Everytime I compile it takes

Re: [Interest] Can't login to bugreports.qt.io / OpenGL bug

2016-03-23 Thread Yves Bailly
> > And just in case, here's the bug: > > - Download and install Qt 5.6.0 for Windows, 64bits, Visual 2013 > > - Open \5.6\Src\qtbase\examples\opengl\qopenglwidget\ > > qopenglwidget.pro example in QtCreator > - Build, run: fine. > > - Set the screen colors to 65536 (16bits), from > >

Re: [Interest] Ensuring that a queued invocation occurs after deferred deletion

2016-03-23 Thread Curtis Mitch
Hi. That does help, thanks. It means that I’d really need to use an arbitrarily long timer, or find the “proper” solution. At one stage I thought about having a C++ object that could be created in QML and would somehow keep count of references to the game object. For example, each Loader

[Interest] Can't login to bugreports.qt.io / OpenGL bug

2016-03-23 Thread Yves Bailly
Hello all, Not sure where to ask, so I post here I'm trying to report a bug, but I can't login to bugreports.qt.io nor login.qt.io. I gave a mail address, a password, but then I'm stuck at the page " This will be your username at blabla": when I click "Set username", it ends with a

Re: [Interest] Ensuring that a queued invocation occurs after deferred deletion

2016-03-23 Thread Curtis Mitch
From: Sina Dogru [mailto:sinado...@gmail.com] Sent: Tuesday, 22 March 2016 10:09 PM To: Curtis Mitch Cc: interest@qt-project.org Subject: Re: [Interest] Ensuring that a queued invocation occurs after deferred deletion Hi, I saw your bug report. I encountered the

Re: [Interest] Using Normal QPainter for Qt3D

2016-03-23 Thread Sean Harmer
Hi, On Wednesday 23 March 2016 06:48:08 Mohd Z|eeshan Farooque wrote: > Hi, > Req: Print out of 3D structure through QPainter with in QRect. How cam I use > normal QPainter for Qt3D rendering because I want to take print (or render > somewhere else like on any widget, window,etc) of current

[Interest] Using Normal QPainter for Qt3D

2016-03-23 Thread Mohd Z|eeshan Farooque
Hi, Req: Print out of 3D structure through QPainter with in QRect. How cam I use normal QPainter for Qt3D rendering because I want to take print (or render somewhere else like on any widget, window,etc) of current static 3d Structure on  root entity. Or is there any other better way to do this.

[Interest] Setting currentIndex in Qt Quick ComboBox does not work

2016-03-23 Thread Fabian Sturm
Hello list, I hope this is the right forum to write, even though my sample code is in Python but I think the problem lies deeper in the event propagation or similar. What I want to do looks simple at first. I want to show a ComboBox with a list of items in it and one of them is selected. On a