Re: [Interest] Stack view and lazy loading of big Qml files

2015-01-09 Thread VStevenP
If you implement app pages in a ListView like I suggested, you really can't disable the animations between pages, and the regular swipe transition is all that is available.  Yes, this is limiting. You don't need to disable interaction with the List itself.  If each delegate instance is an app pa

Re: [Interest] Run Qt Widget program with minimal Xorg installation on Linux

2015-01-09 Thread ruslan
Finally I've solved the problem. Some packages of the list below were missed: apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm1 libxcb-icccm1-dev libxcb-sync0 libxcb-sync0-dev

[Interest] [Qt5.3+] font issue and questions on OS X

2015-01-09 Thread René J . V . Bertin
Hi, Each time I start a Qt 5.3.2 or 5.4.0 application on OS X 10.9, I'm greeted with a list of failures on the terminal or in system.log: QCoreTextFontDatabase: Failed to resolve family name for PostScript name "BanglaSangamMN" QCoreTextFontDatabase: Failed to resolve family name for PostScrip

[Interest] #include fails to compile for VS2012 with target XP

2015-01-09 Thread Steve Schilz
I have compiled Qt 5.4 from source for VS2012 with -platform win32-msvc2012 -target xp I have a dependency on , and compilation fails due to a missing FORMATETC struct. If I #include before QtWinExtras everything succeeds. Steve Schilz Software Engineer PASCO scientific 10101 Foothills Blv

Re: [Interest] QList operator[]

2015-01-09 Thread Brad Pepers
Ah I see...  So it's the const-ness of the object itself and not the reference that is controlling which operator[] gets used.  That makes sense to me now. I'm still not sure what is happening with all that memory though.  I'm asking for a reference so I don't expect that I own what is returned

Re: [Interest] QList operator[]

2015-01-09 Thread Keith Gardner
> > QList can return a const & with the [] operator [1]. The documantation > even says it's the same as .at(). > > [1] http://doc.qt.io/qt-5/qlist.html#operator-5b-5d-2 > > That is true if the QList is const when calling the function. If it is not, the other operator [1] documentation describes th

Re: [Interest] QList operator[]

2015-01-09 Thread Mark Gaiser
On Fri, Jan 9, 2015 at 7:07 PM, Thiago Macieira wrote: > On Friday 09 January 2015 17:42:02 Brad Pepers wrote: > > So it seems like even though I'm getting a const reference using > operator > > [] on the QList, it's actually making a deep copy of the data as if I was > > using the non-const ver

Re: [Interest] QList operator[]

2015-01-09 Thread André Pönitz
On Fri, Jan 09, 2015 at 05:42:02PM +, Brad Pepers wrote: > I added a couple lines of code to an app and suddenly it started chewing > through memory at an unbelievable rate.  I watched it get up to 12 GB at > which point it hit my virtual memory limit in Windows and Windows > promptly blue-scre

Re: [Interest] QList operator[]

2015-01-09 Thread Thiago Macieira
On Friday 09 January 2015 17:42:02 Brad Pepers wrote: > So it seems like even though I'm getting a const reference using operator > [] on the QList, it's actually making a deep copy of the data as if I was > using the non-const version. "I'm getting a const reference using operator[]" is the wron

Re: [Interest] QList operator[]

2015-01-09 Thread Igor Grivko
Hi Brad, I think you hit the deep copy of the list. When you use list[i] the list itself is copied. To fix this problem in your current code, I think, you should use list.at(i) instead. Best regards, Igor Grivko On Fri, Jan 9, 2015 at 9:42 PM, Brad Pepers wrote: > I added a couple lines of co

[Interest] QList operator[]

2015-01-09 Thread Brad Pepers
I added a couple lines of code to an app and suddenly it started chewing through memory at an unbelievable rate.  I watched it get up to 12 GB at which point it hit my virtual memory limit in Windows and Windows promptly blue-screened and died (thank-you Microsoft!).  The changes I made are the

Re: [Interest] Run Qt Widget program with minimal Xorg installation on Linux

2015-01-09 Thread ruslan
Ok, it should be clearer if I'll describe the program purpose. It will be server witch receives QML code, convert a visual result to image with QQuickWindow::grabWindow() and return it to caller. Some kind of remote execution. So all I need is VDS witch have ability to execute Qt program (not cons

Re: [Interest] Run Qt Widget program with minimal Xorg installation on Linux

2015-01-09 Thread René J . V . Bertin
On Friday January 09 2015 22:12:22 ruslan wrote: > In my case I installed VNC server just for control purposes. In > standalone mode the Qt program should work on remote server without VNC, > just with Xorg server. > > I have same OS (Debian 7) om my works machine with same Xorg server and > same

Re: [Interest] Run Qt Widget program with minimal Xorg installation on Linux

2015-01-09 Thread ruslan
In my case I installed VNC server just for control purposes. In standalone mode the Qt program should work on remote server without VNC, just with Xorg server. I have same OS (Debian 7) om my works machine with same Xorg server and same Qt version. And there everything works well of course. So I c

[Interest] How to discover the cause of such crashes?

2015-01-09 Thread Nuno Santos
Hi, Since the beginning of my quest with QML I have been faced with some crashes that I don’t know how to find the cause, such as this. What is the tactic to inspect and discover the cause of such crashes? I would definitely love to hear the opinion of more experienced QML users. Thanks, Rega