[Qt-creator] QtCreator 4.6 - constant, high CPU usage

2018-04-13 Thread Jakub Narolewski
Thank you for the link to the Jira task, Alessandro.

I now believe I can reproduce this 100% of the time.
I have added a comment in the Jira.


From: Alessandro Portale
Sent: 13 April 2018 16:15
To: Jakub Narolewski; qt-creator@qt-project.org
Subject: AW: QtCreator 4.6 - constant, high CPU usage

Hi Jakub,

there were reports about Qt Creator occupying one CPU core for no obvious 
reason.

Here is the Jira task:
https://bugreports.qt.io/browse/QTCREATORBUG-19458
It would be great to gather more information about it.

Thank You,
Alessandro

Von: Qt-creator  im 
Auftrag von Jakub Narolewski 
Gesendet: Freitag, 13. April 2018 15:37:26
An: qt-creator@qt-project.org
Betreff: [Qt-creator] QtCreator 4.6 - constant, high CPU usage 
 

Hello :]

I'm having a weird problem with newest Creator update.
QtC seems to spin some heavy-duty thread on one of CPU cores on all my machines.
On my six cored AMD CPU I see it taking 16% of total processing power [as 
reported by Windows' Task Manager].
I notice it every time due to my not-so-quiet fans :P

This starts at seemingly random times; sometimes during cpp/QML code editing, 
sometimes when QtC is minimized.
When it starts there is 50/50 chance it won't stop on its own and only closing 
the application helps.

I remember seeing something very similar in versions 4.5.x when I had clang 
refactoring plugin enabled in Plugins menu.
In version 4.6 I can't seem to find this plugin in the list.

This happens in QtCreator installed with MaintenanceTool.
It reports itself as:

Based on Qt 5.10.1 (MSVC 2015, 32 bit)
Built on Mar 27 2018 15:05:08
>From revision 3ac2aa7bb5

I have this problem on up-to-date versions of Windows 7 x64 and Windows 10 x64 
on two different workstations.
Have someone seen something like this lately? Maybe it has an already opened 
issue?

Jakub Narolewski 


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] Lightbulb everywhere

2018-04-13 Thread Jason H
I'm trying out the new clazy and fixit support in 4.6.

I have a few observations, I'm hoping people can suggest how to fix them. (No 
pun intended).
Most of these are not QtCreator's fault, but some are. The question for those 
are how does QtC help manage them?

1. Header guards are not detected, and when I fit-insert them, they hardcode 
the FULL path.
2. I have lightbulbs everywhere that don't do anything when I click on them. 
(see attached, 2 pics)
3. move semantics vs const ref. If I apply the fix-it to use copy/std::move, 
the then immediately get another one to apply const-ref. Which one is right?
4. Move constructor definition to .h (for constructors) is this "a thing"?
5. Not sure what it takes, but a fixit for "warning: {class} has virtual 
functions but non-virtual destructor" should have minimally a fix as 
"~{class}() override = default;"
6. I find it confusing to have the triangle warning: off to the right but the 
lightbulb at the the end of the text. (Also attached) It would be cool if the 
lightbulb could be the triangle (or vise-versa) and clicking on it would fix it.
7. Double-clicking on fix gets me every time. I click, wait, oh, double-click.
8. "error: static_cast from {derivedclass*} to {baseclass*}, which are not 
related by inheritance..." and variations of the above... It seems that 
whatever is claiming this is flat out wrong because deriveddclass is actually 
derived from baseclass. 
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] QtCreator 4.6 - constant, high CPU usage

2018-04-13 Thread Alessandro Portale
Hi Jakub,


there were reports about Qt Creator occupying one CPU core for no obvious 
reason.


Here is the Jira task:

https://bugreports.qt.io/browse/QTCREATORBUG-19458

It would be great to gather more information about it.


Thank You,

Alessandro


Von: Qt-creator  im 
Auftrag von Jakub Narolewski 
Gesendet: Freitag, 13. April 2018 15:37:26
An: qt-creator@qt-project.org
Betreff: [Qt-creator] QtCreator 4.6 - constant, high CPU usage


Hello :]

I'm having a weird problem with newest Creator update.
QtC seems to spin some heavy-duty thread on one of CPU cores on all my machines.
On my six cored AMD CPU I see it taking 16% of total processing power [as 
reported by Windows' Task Manager].
I notice it every time due to my not-so-quiet fans :P

This starts at seemingly random times; sometimes during cpp/QML code editing, 
sometimes when QtC is minimized.
When it starts there is 50/50 chance it won't stop on its own and only closing 
the application helps.

I remember seeing something very similar in versions 4.5.x when I had clang 
refactoring plugin enabled in Plugins menu.
In version 4.6 I can't seem to find this plugin in the list.

This happens in QtCreator installed with MaintenanceTool.
It reports itself as:

Based on Qt 5.10.1 (MSVC 2015, 32 bit)
Built on Mar 27 2018 15:05:08
>From revision 3ac2aa7bb5

I have this problem on up-to-date versions of Windows 7 x64 and Windows 10 x64 
on two different workstations.
Have someone seen something like this lately? Maybe it has an already opened 
issue?

Jakub Narolewski
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] QtCreator 4.6 - constant, high CPU usage

2018-04-13 Thread Jakub Narolewski

Hello :]

I'm having a weird problem with newest Creator update.
QtC seems to spin some heavy-duty thread on one of CPU cores on all my machines.
On my six cored AMD CPU I see it taking 16% of total processing power [as 
reported by Windows' Task Manager].
I notice it every time due to my not-so-quiet fans :P

This starts at seemingly random times; sometimes during cpp/QML code editing, 
sometimes when QtC is minimized.
When it starts there is 50/50 chance it won't stop on its own and only closing 
the application helps.

I remember seeing something very similar in versions 4.5.x when I had clang 
refactoring plugin enabled in Plugins menu.
In version 4.6 I can't seem to find this plugin in the list.

This happens in QtCreator installed with MaintenanceTool.
It reports itself as:

Based on Qt 5.10.1 (MSVC 2015, 32 bit)
Built on Mar 27 2018 15:05:08
>From revision 3ac2aa7bb5

I have this problem on up-to-date versions of Windows 7 x64 and Windows 10 x64 
on two different workstations.
Have someone seen something like this lately? Maybe it has an already opened 
issue?

Jakub Narolewski
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Multiple Android APK support?

2018-04-13 Thread Nikos Chantziaras
When uploading the x86 build, the site replaces the previous build 
unless you select "Retain" for it. Once you do that, it does seem to 
work and both APKs seem to be active. You get a warning though about 
"Differentiating APK details", but it's not a hard-error.


But it seems the site considers the highest version number as the "real" 
version. Pre-launch data for example isn't available for the ARM build, 
unless you reverse the version numbers, in which case you get data for 
the ARM build, but not the x86 one.


So it seems to work, but seems to be kinda glitchy. I assume the 
"correct" way would be to add architecture information to the manifest 
and gradle files, but Creator doesn't seem to offer a way to generate these.



On 13/04/18 08:52, Bogdan Vatra wrote:

It's quite straight forward:
  - install Qt for Android for arm & x86
  - add Android arm & x86 kits to your project
  - select arm kit and build first apk for arm
  - bump version (yes, this step is a must !)
  - select x86 kit and build the second apk for x86
  - upload the apk to Google Play.

În ziua de vineri, 13 aprilie 2018, la 00:24:28 EEST, Nikos Chantziaras a
scris:

I want to upload two APKs to the Google Play Store. One for ARM, one for
x86. Google's instructions:

https://developer.android.com/studio/build/configure-apk-splits.html

are for Android Studio. Are there instructions for Qt Creator? Has
anyone done this yet?


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Memory usage of Qt Creator

2018-04-13 Thread Carel Combrink
Hi,

I work on a quite large application and my clangbackend crashes often due
to running out of memory.
I am using Qt Creator 4.6.0 [Qt 5.10.1 (MSVC 2015, 32 bit)]
Thus if the clangbackend reaches about 1.4GB of RAM it crashes, then starts
growing again, rinse and repeat... Switching to 64 but will not solve the
issue, since I only have about 2 GB RAM free, thus crashing the
clangbackend is better compared to crashing everything. (Sometimes the
compiler crash due to running out of memory).

My current numbers as I am typing this:
Image Name | Memory (Private Working Set )
-|--
clangbackend.exe *32 | 751 976K
qtcreator *32 | 592 004K

Regards,
Carel

On Fri, Apr 13, 2018 at 12:38 PM, Aleksey Kontsevich  wrote:

> Clean QtC 4.5.2 takes 60 MB for me.
>
> --
> Best regards,
> Aleksey
> *Linked in * https://www.linkedin.com/in/alekseykontsevich
>
>
>
> 13.04.2018, 13:32, "timur.kris...@gmail.com" :
>
> Hi,
>
> Just noticed that with the latest version of Qt Creator the memory
> usage numbers went up.
>
> Currently I get ~400MiB for qtcreator and ~450MiB for clangbackend.
> This seems to slowly go down after I close some source files, though it
> takes time (guess it keeps them in cache for a while).
>
> Are these figures normal / expected?
>
> Best regards,
> Timur
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Memory usage of Qt Creator

2018-04-13 Thread Aleksey Kontsevich
Clean QtC 4.5.2 takes 60 MB for me. -- Best regards,AlekseyLinked in  https://www.linkedin.com/in/alekseykontsevich   13.04.2018, 13:32, "timur.kris...@gmail.com" :Hi,Just noticed that with the latest version of Qt Creator the memoryusage numbers went up.Currently I get ~400MiB for qtcreator and ~450MiB for clangbackend.This seems to slowly go down after I close some source files, though ittakes time (guess it keeps them in cache for a while).Are these figures normal / expected?Best regards,Timur___Qt-creator mailing listQt-creator@qt-project.orghttp://lists.qt-project.org/mailman/listinfo/qt-creator___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] Memory usage of Qt Creator

2018-04-13 Thread timur . kristof
Hi,

Just noticed that with the latest version of Qt Creator the memory
usage numbers went up.

Currently I get ~400MiB for qtcreator and ~450MiB for clangbackend.
This seems to slowly go down after I close some source files, though it
takes time (guess it keeps them in cache for a while).

Are these figures normal / expected?

Best regards,
Timur
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] clang-format config for Qt coding style

2018-04-13 Thread Eike Ziller


> On 13. Apr 2018, at 11:11, Kari Oikarinen  wrote:
> 
> 
> 
> On 13.04.2018 11:59, timur.kris...@gmail.com wrote:
>> Hi,
>> I'm working on a project which uses the Qt coding style.
>> Does you guys have a .clang-format config file for this style which I
>> can use with Qt Creator's Beautify plugin?
> 
> There is one at 
> http://code.qt.io/cgit/qt/qtrepotools.git/tree/config/_clang-format
> 
> I don't know how complete it is.

Another one that some people use for Qt Creator code is here: 
http://code.qt.io/cgit/qt-creator/qt-creator.git/tree/dist/clangformat/.clang-format

(no idea where they differ)

Br, Eike

-- 
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
eike.zil...@qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 
144331 B

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] clang-format config for Qt coding style

2018-04-13 Thread Kari Oikarinen



On 13.04.2018 11:59, timur.kris...@gmail.com wrote:

Hi,

I'm working on a project which uses the Qt coding style.
Does you guys have a .clang-format config file for this style which I
can use with Qt Creator's Beautify plugin?


There is one at 
http://code.qt.io/cgit/qt/qtrepotools.git/tree/config/_clang-format


I don't know how complete it is.

--
Kari
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] clang-format config for Qt coding style

2018-04-13 Thread timur . kristof
Hi,

I'm working on a project which uses the Qt coding style.
Does you guys have a .clang-format config file for this style which I
can use with Qt Creator's Beautify plugin?

Thanks,
Timur

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Multiple Android APK support?

2018-04-13 Thread Ivan Donchevskii
As far as I know store expects both in the same apk.
So as I understand you suggest having two different versions in store for 
different platforms?
That may work. Thanks for one more workaround :)

Regards,
Ivan

From: Qt-creator  on 
behalf of Bogdan Vatra 
Sent: Friday, April 13, 2018 7:52:49 AM
To: qt-creator@qt-project.org
Cc: Nikos Chantziaras
Subject: Re: [Qt-creator] Multiple Android APK support?

Hi,

It's quite straight forward:
 - install Qt for Android for arm & x86
 - add Android arm & x86 kits to your project
 - select arm kit and build first apk for arm
 - bump version (yes, this step is a must !)
 - select x86 kit and build the second apk for x86
 - upload the apk to Google Play.

Cheers,
BogDan.

În ziua de vineri, 13 aprilie 2018, la 00:24:28 EEST, Nikos Chantziaras a
scris:
> I want to upload two APKs to the Google Play Store. One for ARM, one for
> x86. Google's instructions:
>
>https://developer.android.com/studio/build/configure-apk-splits.html
>
> are for Android Studio. Are there instructions for Qt Creator? Has
> anyone done this yet?
>
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator



___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator