Recent

Author Topic: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset  (Read 14184 times)

dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #75 on: September 19, 2023, 02:29:44 pm »
OK, I have tried really hard to break it and failed !  Works perfectly. Tried an old Fedora 35 with Mate, the Fedora 38 with gnome. Debian bookworm with Mate and Gnome. I run my test app and it looked so good, I built my own app in Qt6 and it rocks !

 zeljko and irfanbagus - your help and persistence here in the face of really hard bug has been fantastic !

I could push out a Qt6 version of my app right now, show that to the the nay sayers who scoff at FPC/Lazarus for being stuck with old gtk2 !

There has been a lot of talk recently on the Debian Pascal-Dev list to move all the old gtk2 apps to qt5, they are desperate to leave gtk2 behind. And, now, it makes sense.

Davo

Just a mention, I am sure its nothing to do with this issue but on Gnome, sometimes, after you close a dialog, it triggers a notification "Form1 is ready". And we still see a lot of wayland related noise on the console, Qt is still uncomfortable with Wayland. Easy answer is of course, to replace Gnome with almost any other DE and wow, doesn't your computer run faster !
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

zeljko

  • Hero Member
  • *****
  • Posts: 1670
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #76 on: September 19, 2023, 03:15:18 pm »
I've merged it to fixes_3_0 also. Thanks for testing.

AlexTP

  • Hero Member
  • *****
  • Posts: 2488
    • UVviewsoft
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #77 on: September 19, 2023, 04:40:39 pm »
With Lazarus trunk, I got new error:
Quote
Warning: linker: /usr/bin/ld: /home/user/fpcupdeluxe/fpcupdeluxe32/lazarus/lcl/units/x86_64-linux/qt5/qtobjects.o: in function `ENDX11SELECTIONLOCK':
qtobjects.pas(3873,0) Error: linker: undefined reference to `QTimer_singleShot3'

How to fix it? My lib version:

Quote
user@PC:~$ apt list libqt5pas*
Listing... Done
libqt5pas-dev/focal,now 2.6~beta-6build1 amd64 [installed]
libqt5pas1/focal,now 2.6~beta-6build1 amd64 [installed,automatic]

zeljko

  • Hero Member
  • *****
  • Posts: 1670
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #78 on: September 19, 2023, 04:48:35 pm »
You must rebuild your own libqt5pas, distros will do that for you when lazarus 3.0 is released. Or download it from dbannon's page

AlexTP

  • Hero Member
  • *****
  • Posts: 2488
    • UVviewsoft
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #79 on: September 19, 2023, 04:52:09 pm »
Thanks, fixed it by reinstalling
libqt5pas1_2.15-1_amd64.deb
from GitHub.

AlexTP

  • Hero Member
  • *****
  • Posts: 2488
    • UVviewsoft
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #80 on: September 19, 2023, 05:13:48 pm »
Minor question. While DavidBannon's Github page shows version '1.2.15', I get in terminal
Quote
user@PC:~$ apt list libqt5pas*
Listing... Done
libqt5pas-dev/now 2.15 amd64 [installed,local]
libqt5pas1/now 2.15 amd64 [installed,local]

So can we unify version to 2.15 or 1.2.15 ?

rca

  • Jr. Member
  • **
  • Posts: 88
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #81 on: September 19, 2023, 08:13:23 pm »
I have tried with fixes_3_0, both in Qt5 and Qt6 and everything is OK.

Many thanks to:
@zeljko
@irfanbagus
@dbannon
@AlexTP

I think the title should be changed to "SOLVED"

dbannon

  • Hero Member
  • *****
  • Posts: 3156
    • tomboy-ng, a rewrite of the classic Tomboy
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #82 on: September 20, 2023, 02:14:19 am »
Yep, I took great pleasure in marking the Qt6 one solved !  Alex ?

I think that the work, time and effort that zeljko puts into this project is astounding !

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018