[Development] Qt dev does not compile with GCC 5.1

2015-04-28 Thread Guido Seifert
Hi, little head start for you guys :-) Today I compiled a fresh GCC 5.1.0. Then I tried to compile a very fresh Qt (today's dev branch) with it. This is the result: In file included from gen/blink/bindings/core/v8/V8GeneratedCoreBindings01.cpp:34:0: gen/blink/bindings/core/v8/V8NodeFilter.cpp: I

Re: [Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Alberto Mardegan
Hi Massimo, On 04/28/2015 07:46 AM, Massimo Callegari wrote: > I just wanted to share my specific(?) case so if someone stumbles on it, they > can find the solution out of the box :) I also stumbled on this problem once. Luckily, the documentation is quite clear on this -- the problem is that i

Re: [Development] Changes to continuous integration in qtdeclarative/dev

2015-04-28 Thread Simon Hausmann
On Thursday 19. March 2015 13.16.43 Frederik Gladhorn wrote: > Hi all, > > I'd like to give everyone a heads up (of hopefully good news). We plan to > switch over the dev branch of qtdeclarative to a new continuous integration > system in the beginning of next week. We currently aim for Monday if

Re: [Development] Modifying and accessing environment variables in Qt

2015-04-28 Thread Matthew Woehlke
On 2015-04-28 04:52, Simon Hausmann wrote: > [getenv/setenv not thread safe] > > There are various options about what we can do with different degrees of > "perfection", > but ultimately it's all going to require a compromise. The option that we are > favoring > at the moment is two-fold: > > 1

Re: [Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Massimo Callegari
Hi Bo, well, I guess it all depends on what kind of application you're writing. I just wanted to share my specific(?) case so if someone stumbles on it, they can find the solution out of the box :) Mine is probably a poor experience with the QML world, where C++ still gives me that safety to sl

Re: [Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Bo Thorsen
On 04/28/2015 12:08 PM, Massimo Callegari wrote: > Hi everyone, > > I want to share my experience with the garbage collection of registered > classes through qmlRegisterType. > > I got crazy to understand why my application was randomly crashing and I hope > this will help others in the future. >

Re: [Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Massimo Callegari
Hello Gianluca, interesting point indeed. However double constructors seems like a workaround to me for the chicken and the egg problem :) Then, obviously, if it works it works. No question about that ! :) Massimo - Messaggio originale - Da: Gianluca A: Massimo Callegari Cc: "deve

Re: [Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Gianluca
Hello Massimo, I got crazy last year for the same reason … and one developer drive me in the right direction and solved the problem in a slightly different way of you. In my code, sometimes the object is created from QML side … and sometimes is created from C++. In these situations, the ideal be

[Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Massimo Callegari
Hi everyone, I want to share my experience with the garbage collection of registered classes through qmlRegisterType. I got crazy to understand why my application was randomly crashing and I hope this will help others in the future. Basically if you want to expose a C++ class in the QML world,

[Development] Modifying and accessing environment variables in Qt

2015-04-28 Thread Simon Hausmann
Hi, Have you ever seen crashes in the CI system that ended up in getenv? For example in http://testresults.qt.io/ci/QtBase_5.4.2_Integration/build_00020/linux-g++_no-widgets_Ubuntu_12.04_x64/log.txt.gz There are many more of these kinds of crashes throughout our tests and whenever it h