Recent

Author Topic: Qt5: File Open/Save dialogs give 100% CPU usage  (Read 2982 times)

Alextp

  • Hero Member
  • *****
  • Posts: 855
    • UVviewsoft
Qt5: File Open/Save dialogs give 100% CPU usage
« on: October 14, 2018, 08:45:06 pm »
This is reported by CudaText user here https://github.com/Alexey-T/CudaText/issues/1635
About Qt5 build.
I cannot test it here, don't want to install Qt5.

Thaddy

  • Hero Member
  • *****
  • Posts: 8688
Re: Qt5: File Open/Save dialogs give 100% CPU usage
« Reply #1 on: October 15, 2018, 04:56:56 am »
I will try and have a look. Qt5 is on my todo list anyway.
Most people that want to use threading should learn to patch their jeans first: use a needle.

zeljko

  • Hero Member
  • *****
  • Posts: 1052
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Qt5: File Open/Save dialogs give 100% CPU usage
« Reply #2 on: October 16, 2018, 08:45:27 pm »
I've just rebuilded lazarus with Qt5 (Fedora 28 64bit) and CPU usage is normal.
Are you using -dQtNativeDialogs ? IMO that's related to gtk theme which is used by Qt5 on gtk based desktops (gnome, metacity etc) and I've spotted higher cpu usage with such theme.
Recent lazarus trunk does not use native Qt5 loop but LCL one, so you can test your app against current trunk eg Lazarus 2.1.0 r59308 FPC 3.0.4 x86_64-linux-qt

Alextp

  • Hero Member
  • *****
  • Posts: 855
    • UVviewsoft
Re: Qt5: File Open/Save dialogs give 100% CPU usage
« Reply #3 on: October 28, 2018, 07:27:35 pm »
I guess user has used some Lazarus release, 1.8 maybe. He did compile.