Re: [Interest] porting to Qt 5.4 - MOC very slow on Windows

2015-01-15 Thread Hamish Moffatt
On 15/01/15 19:23, Koehne Kai wrote: > >> -Original Message- >> From: interest-bounces+kai.koehne=theqtcompany@qt-project.org >> [mailto:interest-bounces+kai.koehne=theqtcompany@qt-project.org] >> On Behalf Of Hamish Moffatt >> Sent: Thursday, January 15, 2015 7:34 AM >> To: interes

Re: [Interest] porting to Qt 5.4 - MOC very slow on Windows

2015-01-15 Thread Hamish Moffatt
On 16/01/15 09:35, Henry Skoglund wrote: > > I'm trying to port our app from Qt 4.8 to 5.4. > > Currently working in MSVC 2013, > > and using the pre-built Qt binaries for that environment. > > > > We have about 440 files being MOCed during build. On 5.4, each file > > is taking 2-3 sec

Re: [Interest] porting to Qt 5.4 - MOC very slow on Windows

2015-01-15 Thread Bob Hood
On 1/15/2015 3:35 PM, Henry Skoglund wrote: > > I'm trying to port our app from Qt 4.8 to 5.4. > > Currently working in MSVC 2013, > > and using the pre-built Qt binaries for that environment. > > > > We have about 440 files being MOCed during build. On 5.4, each file > > is taking 2-3 second

Re: [Interest] porting to Qt 5.4 - MOC very slow on Windows

2015-01-15 Thread Hamish Moffatt
On 15/01/15 23:44, Sze Howe Koh wrote: > On 15 January 2015 at 14:33, Hamish Moffatt wrote: >> I'm trying to port our app from Qt 4.8 to 5.4. Currently working in MSVC >> 2013, and using the pre-built Qt binaries for that environment. >> >> We have about 440 files being MOCed during build. On 5.4,

Re: [Interest] porting to Qt 5.4 - MOC very slow on Windows

2015-01-15 Thread Henry Skoglund
> I'm trying to port our app from Qt 4.8 to 5.4. > Currently working in MSVC 2013, > and using the pre-built Qt binaries for that environment. > > We have about 440 files being MOCed during build. On 5.4, each file > is taking 2-3 seconds meaning the overall build is significantly > longer t

Re: [Interest] porting to Qt 5.4 - MOC very slow on Windows

2015-01-15 Thread Thiago Macieira
On Thursday 15 January 2015 14:16:37 Keith Gardner wrote: > Do you have the /MP flag set for your project? Even though MOC takes > longer, this will at least allow you to run one instance of MOC for every > core on your system in addition to reducing build times in general. The /MP flag is a comp

Re: [Interest] porting to Qt 5.4 - MOC very slow on Windows

2015-01-15 Thread Keith Gardner
On Thu Jan 15 2015 at 12:33:59 AM Hamish Moffatt wrote: > I'm trying to port our app from Qt 4.8 to 5.4. Currently working in MSVC > 2013, and using the pre-built Qt binaries for that environment. > > We have about 440 files being MOCed during build. On 5.4, each file is > taking 2-3 seconds mean

Re: [Interest] XYZ is instantiated recursively

2015-01-15 Thread Dmitry Volosnykh
Nuno, sorry, but it is hard to follow your last code snippet since it is overloaded with "noise" lines. Anyway, did you try to achieve your goal using Item's children property? This is how Rectangles and other items get nested. PS. Am I right that you're trying to implement a tree structure? If s

Re: [Interest] XYZ is instantiated recursively

2015-01-15 Thread Dmitry Volosnykh
Following your first snippet, I think that it is in general impossible to refer component inside its definition since QML engine will not know what it looks like at the moment. On Thu, Jan 15, 2015 at 1:06 PM, Nuno Santos wrote: > Dimitry, > > You are right. Let’s start by the model. > > My mode

Re: [Interest] porting to Qt 5.4 - MOC very slow on Windows

2015-01-15 Thread Sze Howe Koh
On 15 January 2015 at 14:33, Hamish Moffatt wrote: > > I'm trying to port our app from Qt 4.8 to 5.4. Currently working in MSVC > 2013, and using the pre-built Qt binaries for that environment. > > We have about 440 files being MOCed during build. On 5.4, each file is > taking 2-3 seconds meaning

Re: [Interest] XYZ is instantiated recursively

2015-01-15 Thread Nuno Santos
Dmitry, I was able to do recursive instantiation using the following technic (actual code). However, i’m having problems when the model is updated. With a single level everything is ok. If there is recursion, when the model is deleted, it crashes. Don’t know why. Flow { id: flow ancho

Re: [Interest] XYZ is instantiated recursively

2015-01-15 Thread Nuno Santos
Dimitry, You are right. Let’s start by the model. My model is made of devices which can have list of devices (recursive model). I want to list A’s so I do something like: ListView { model: model.devices delegate: Device { parameters: modelData.parameters

Re: [Interest] XYZ is instantiated recursively

2015-01-15 Thread Dmitry Volosnykh
Nuno, it is sometimes hard to get an idea of what exactly you are trying to do without any minimal sample code provided. On Thu, Jan 15, 2015 at 12:57 PM, Nuno Santos wrote: > Hi, > > I’m building a QML UI interface for a model that can have a recursive > behaviour > > I’m trying to instantiate

[Interest] XYZ is instantiated recursively

2015-01-15 Thread Nuno Santos
Hi, I’m building a QML UI interface for a model that can have a recursive behaviour I’m trying to instantiate a custom module inside a custom module and it is saying XYZ is instantiated recursively. Why does this error doesn’t occur when you instantiate a Rectangle inside a Rectangle? Isn’t th

Re: [Interest] porting to Qt 5.4 - MOC very slow on Windows

2015-01-15 Thread Koehne Kai
> -Original Message- > From: interest-bounces+kai.koehne=theqtcompany@qt-project.org > [mailto:interest-bounces+kai.koehne=theqtcompany@qt-project.org] > On Behalf Of Hamish Moffatt > Sent: Thursday, January 15, 2015 7:34 AM > To: interest@qt-project.org > Subject: [Interest] port