I've found simular issues wit using TextField on android. It's actually worse there, as if you are using a slash screen the usage of TextField causes a flash of black over the UI. It also takes a few seconds longer to start. I think the two could be related. You can try to dynamically create your main UI.
 
However I also think that it could very well be a font discovery/loading issue.
 
The reasons why you don't see it on the  desktop version are:
1. Differnt font loading
2. CPU cores
3. Mhz vs GHz
4. Caching at the FS layer (your dektop will likely keep the fonts cached)
5. Buss speeds. Sure you might be on flash, but the PC bus is orders of magnitudes faster.
 
Sent: Thursday, November 05, 2015 at 2:46 AM
From: "Christian Nielsen" <christian.niel...@ivolve.com>
To: "Gunnar Roth" <gunnar.r...@gmx.de>
Cc: "interest@qt-project.org" <interest@qt-project.org>
Subject: Re: [Interest] Why does a single Text item increase start-up time of QML application by 21 seconds?

I guess you are on to something. But then why does my Qt Widget application start fast enough.

 

Is there a way to make Qt Quick do text like Qt Widgets?

 

 

From: Gunnar Roth [mailto:gunnar.r...@gmx.de]
Sent: Thursday, 5 November 2015 17:15
To: Christian Nielsen
Cc: interest@qt-project.org
Subject: Re: [Interest] Why does a single Text item increase start-up time of QML application by 21 seconds?

 

Nice catch. My wild guess is font initialization.

Regards,

Gunnar Roth

Am 05.11.2015 um 07:52 schrieb Christian Nielsen <christian.niel...@ivolve.com>:

 


I am thinking that the issue is not the loading of the dlls. Because Widget application and Qt Quick Rectangle application loads fast enough.

The issue is not parsing QML. These sample QML files are just a few lines long.

It is not the instantiation of the Text item. Because adding a second Text item is instant.

So what can it be?

 

_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to