Re: [Interest] Building Qt 5.15 on Ubuntu 20.04

2020-05-27 Thread Tomas Konir
Hi,

Just install package python-is-python2 or python-is-python3.

Regards,

Tom

čt 28. 5. 2020 v 6:43 odesílatel Nicholas Yue 
napsal:

> Hi,
>
>   Is there a way to specify a different python for the build of Qt 5.15?
>
>   On Ubuntu 20.04, there is either python2 or python3 but during the build
> of QML, the build script is looking for python
>
>   For now I am creating a symlink but was wondering if there is a better
> way.
>
> Cheers
> --
> Nicholas Yue
> Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
> Custom Dev - C++ porting, OSX, Linux, Windows
> http://au.linkedin.com/in/nicholasyue
> https://vimeo.com/channels/naiadtools
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>


-- 
Tomas Konir
Czech Republic
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt Creator licensing for companies with Qt Commercial developers

2020-03-27 Thread Tomas Konir
; Software" and the open-source versions provided by The Qt Company
> in the
> > > same project."
> > >
> > > seems to mean, which is why I'm wondering.
> >
> > the problem is, as already stated, that some did not answer your
> question properly.
> > i understood your question. and as i said, your mixing up things. as
> we say: you mix apples and pears.
> >
> > you're talking about using an executable X, based on open source
> software.
> > you're talking about using an library Y, for which you have a
> license, based on open source software, too.
> > you're talking about using exec X to use Y somehow.
> > you're talking about using exec X with other libraries.
> >
> > now what has tool X todo with library Y? nothing.
> > well, it happen to be that tool X is written using library Y, but
> thats of no concern here.
> >
> > the licese for Y only clearifies how you may use/include the library
> Y into your projects,
> > and not how to use tool X to build apps using library Y.
> >
> >
> >
> > other words:
> > would you ask if you have to use the commercial vs license because
> you bought a qt license?
> >
> >     --
> > /*
> >  *printk(KERN_DEBUG "%s: Done reprogramming Xilinx, %d bits, good
> luck!\n",...);
> >  *linux-2.6.6/drivers/net/wan/lmc/lmc_main.c
> >  */
> > ___
> > Interest mailing list
> > Interest@qt-project.org
> > https://lists.qt-project.org/listinfo/interest
> >
> >
> >
> > ___
> > Interest mailing list
> > Interest@qt-project.org
> > https://lists.qt-project.org/listinfo/interest
>
> --
> http://www.classintouch.de - Tablet-Software für Lehrer
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>


-- 
Tomas Konir
Czech Republic
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt Creator licensing for companies with Qt Commercial developers

2020-03-27 Thread Tomas Konir
ler.
>
>
>
> But is it really so?
>
>
>
> Regards,
>
> Vyacheslav
>
> ___
>
> Interest mailing list
>
> Interest@qt-project.org
>
> https://lists.qt-project.org/listinfo/interest
>
>
>
>
>
> ___
>
> Interest mailing list
>
> Interest@qt-project.org
>
> https://lists.qt-project.org/listinfo/interest
>
> ___
>
> Interest mailing list
>
> Interest@qt-project.org
>
> https://lists.qt-project.org/listinfo/interest
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>


-- 
Tomas Konir
Czech Republic
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Is it safe to call qRegisterMetaType() before main()?

2019-07-29 Thread Tomas Konir
po 29. 7. 2019 v 21:00 odesílatel Nikos Chantziaras 
napsal:

> The linker might remove it from the executable when linking statically,
> because 'registerHelper' is not referenced anywhere.
>
>
> On 29/07/2019 19:25, Tomasz Olszak wrote:
> > What's is the cons of putting something like that in anonymous namespace
> > instead of constructor?
> >
> > namespace {
> > struct RegisterHelper
> > {
> >  RegisterHelper()
> >  {
> >  qRegisterMetaType();
> >  qRegisterMetaType();
> >  qRegisterMetaTypeStreamOperators();
> >  }
> > };
> > static RegisterHelper registerHelper;
> > }
>

Hi,

I'm using C constructor attribute with no problems.
Code like below at each class cpp file.

static void constructor() __attribute__((constructor));




static void constructor(){




   qmlRegisterType("ClassName", 1, 0, "ClassName");




}

Maybe it helps.

Tom

-- 
Tomas Konir
Czech Republic
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt 5.8 performance regression in android application

2017-05-11 Thread Tomas Konir
2017-05-11 12:27 GMT+02:00 Лагнер, Сергей <develo...@lagner.ru>:

> Hi, Tomas.
>
> Your notice is very valuable. Indeed, we have significant amount of http
> requests and
> we start them right after page has been created. Therefore if it costs
> much, transition
> animation can freeze.
> One thing I can not understand. I thought Qt makes almost all network
> calculations in a
> background thread. Is it not true?
>

Network calculations are processing on background thread, but i expect,
that you are creating QNetworkRequest in main thread.
DH calculations are in QNetworkRequest constructor.
You can simple measure how long takes new QNetworkRequest() on 5.6 and 5.8
(android is best testing platform for this due to lack of CPU power)


>
> Do you know the fix is going to be backported to 5.8? Or can I work around
> it?
> As I see 5.9 is not ready yet.
>

Current 5.8 is unfixed. Maybe 5.8.1 if it will exists.
5.9 is close to beta and should be ready in two or three weeks (i hope
because i have similar problem)

Tom


>
> One more thing, I can't find jira ticket about this regression. Can you
> share it?
>
> 2017-05-11 14:59 GMT+07:00 Tomas Konir <tomas.ko...@gmail.com>:
>
>> Hi
>>
>> You wrote, that you have app which uses internet.
>> If you are using many http requests, you may be affected with regression
>> in network access manager, which computes DH keys for each http request
>> (even though you are doing only plain http).
>> DH computation is very CPU intensive and for me causes massive slowdown
>> on android and noticeably slowdown on PC (http intesive application).
>> This is fixed in upcoming 5.9.
>>
>> Tom
>>
>>
>> 2017-05-11 9:45 GMT+02:00 Лагнер, Сергей <develo...@lagner.ru>:
>>
>>> Hello all.
>>>
>>> We are going to upgrade Qt from 5.6 to 5.8 for our android application.
>>> I've got the build with Qt 5.8 and it much slower.
>>>
>>> First of all I mean animations.
>>> We use Qml StackView and we animate transitions between pages.
>>> With 5.6 this animations are smooth, but with 5.8 they are laggy.
>>> It freezes 3 or 4 times each transition.
>>>
>>> One more example, we have a photo gallery page. All photos come from the
>>> internet.
>>> Once transition to the page is done, Qt 5.6 already has a number of
>>> photos to show.
>>> 5.8 only shows first picture after a while.
>>>
>>> I know that my problem is not concrete enough, but maybe you know smth
>>> that
>>> was changed between 5.6 and 5.8 that is very important to check or
>>> modify
>>> to get better performance.
>>>
>>> We use QtQuickCompiler if it's matter.
>>>
>>>
>>> ___
>>> Interest mailing list
>>> Interest@qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/interest
>>>
>>>
>>
>>
>> --
>> Tomas Konir
>> Czech Republic
>>
>>
>


-- 
Tomas Konir
Czech Republic
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.8 performance regression in android application

2017-05-11 Thread Tomas Konir
Hi

You wrote, that you have app which uses internet.
If you are using many http requests, you may be affected with regression in
network access manager, which computes DH keys for each http request (even
though you are doing only plain http).
DH computation is very CPU intensive and for me causes massive slowdown on
android and noticeably slowdown on PC (http intesive application).
This is fixed in upcoming 5.9.

Tom


2017-05-11 9:45 GMT+02:00 Лагнер, Сергей <develo...@lagner.ru>:

> Hello all.
>
> We are going to upgrade Qt from 5.6 to 5.8 for our android application.
> I've got the build with Qt 5.8 and it much slower.
>
> First of all I mean animations.
> We use Qml StackView and we animate transitions between pages.
> With 5.6 this animations are smooth, but with 5.8 they are laggy.
> It freezes 3 or 4 times each transition.
>
> One more example, we have a photo gallery page. All photos come from the
> internet.
> Once transition to the page is done, Qt 5.6 already has a number of photos
> to show.
> 5.8 only shows first picture after a while.
>
> I know that my problem is not concrete enough, but maybe you know smth
> that
> was changed between 5.6 and 5.8 that is very important to check or modify
> to get better performance.
>
> We use QtQuickCompiler if it's matter.
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>


-- 
Tomas Konir
Czech Republic
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest