Recent

Author Topic: QT5 ide tooltips  (Read 1686 times)

ginoo

  • Jr. Member
  • **
  • Posts: 84
QT5 ide tooltips
« on: December 05, 2023, 07:33:42 am »
Good morning,
I recompiled lazarus 2.2.6 with qt5 in Linux Mint, however the text in tooltips is not showing (see attached image). What should I do?

« Last Edit: December 05, 2023, 07:39:06 am by ginoo »

cdbc

  • Hero Member
  • *****
  • Posts: 1655
    • http://www.cdbc.dk
Re: QT5 ide tooltips
« Reply #1 on: December 05, 2023, 07:44:12 am »
Hi
Your Qt5Pas library + importunit are probably too old...
You can:
1) Compile your own new library & importunit, it's described in the source tree,
   under .../lazarus/lcl/interfaces/qt5/ + cbindings
2) or Have a look at @dbannon's github, he's got a fairly fresh build of the
   qt-stuff in there...
HTH
Regards Benny
« Last Edit: December 05, 2023, 07:47:17 am by cdbc »
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

zeljko

  • Hero Member
  • *****
  • Posts: 1668
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: QT5 ide tooltips
« Reply #2 on: December 05, 2023, 08:49:25 am »
Good morning,
I recompiled lazarus 2.2.6 with qt5 in Linux Mint, however the text in tooltips is not showing (see attached image). What should I do?
Probably qt theme problem, I guess it's gtk theme. Try to start ide with -style windows parameter, and then look at tooltip window ...

ginoo

  • Jr. Member
  • **
  • Posts: 84
Re: QT5 ide tooltips
« Reply #3 on: December 05, 2023, 09:11:22 am »
Good morning,
I recompiled lazarus 2.2.6 with qt5 in Linux Mint, however the text in tooltips is not showing (see attached image). What should I do?
Probably qt theme problem, I guess it's gtk theme. Try to start ide with -style windows parameter, and then look at tooltip window ...
 
It works. Where can I find more styles available for lazarus?

For @cdbc
I have already recompiled .../lazarus/lcl/interfaces/qt5/ + cbindings

Thank you for responding.


zeljko

  • Hero Member
  • *****
  • Posts: 1668
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: QT5 ide tooltips
« Reply #4 on: December 05, 2023, 09:35:42 am »
Good morning,
I recompiled lazarus 2.2.6 with qt5 in Linux Mint, however the text in tooltips is not showing (see attached image). What should I do?
Probably qt theme problem, I guess it's gtk theme. Try to start ide with -style windows parameter, and then look at tooltip window ...
 
It works. Where can I find more styles available for lazarus?

For @cdbc
I have already recompiled .../lazarus/lcl/interfaces/qt5/ + cbindings

Thank you for responding.
Try to start app with non existent theme eg -style none and you'll see all supported themes on your distro in terminal. You can use fusion which is standard theme for qt5/qt6. Themes like gtk2,gtk3,breeze depends on your distro and desktop environment.

zeljko

  • Hero Member
  • *****
  • Posts: 1668
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: QT5 ide tooltips
« Reply #5 on: December 05, 2023, 09:38:58 am »
Forgot to write: QStyleFactory::keys() is used to get all available style names programatically, but I'm not sure if we have that function in our c bindings (not near computer atm to check it).
EDIT: Just checked, there's QStyleFactory_keys(AList: QStringListH) in all bindings (qt4, qt5 and qt6), so you can use it to extract available style names.
« Last Edit: December 05, 2023, 02:11:15 pm by zeljko »

ginoo

  • Jr. Member
  • **
  • Posts: 84
Re: QT5 ide tooltips
« Reply #6 on: December 05, 2023, 04:06:56 pm »
Forgot to write: QStyleFactory::keys() is used to get all available style names programatically, but I'm not sure if we have that function in our c bindings (not near computer atm to check it).
EDIT: Just checked, there's QStyleFactory_keys(AList: QStringListH) in all bindings (qt4, qt5 and qt6), so you can use it to extract available style names.

I tried to take a look at the binding, but so far I am unable to ....

Is it by any chance possible to access the animation object of qt?

zeljko

  • Hero Member
  • *****
  • Posts: 1668
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: QT5 ide tooltips
« Reply #7 on: December 05, 2023, 06:03:23 pm »
What animation object ? If you mean QAbstractAnimation and friends then answer is no, they're not in bindings.

ginoo

  • Jr. Member
  • **
  • Posts: 84
Re: QT5 ide tooltips
« Reply #8 on: December 05, 2023, 06:58:19 pm »
Thank you for your response.
Later on I would like to try to extend qt bindings. But maybe it will remain a dream. I point out that I have just started using it, I am a novice.

zeljko

  • Hero Member
  • *****
  • Posts: 1668
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: QT5 ide tooltips
« Reply #9 on: December 05, 2023, 07:01:18 pm »
Patches are welcome at any time :)

 

TinyPortal © 2005-2018