Recent

Author Topic: [SOLVED] Label texts missing in qt5  (Read 4909 times)

Adrie

  • New member
  • *
  • Posts: 9
[SOLVED] Label texts missing in qt5
« on: January 18, 2016, 02:35:21 pm »
I am using Lazarus 1.4.4 and KDE 5.4.2. My application worked OK in KDE 4.X, but when I open and/or build and/or use it, all the texts in labels are missing.

Also, Lazarus 1.4.4 will not build using qt as widget set. After building Lazarus is still using gtk. I guess the problems are related. How can I solve these problems?
« Last Edit: January 19, 2016, 01:13:25 pm by Adrie »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4650
  • I like bugs.
Re: Label texts missing in qt5
« Reply #1 on: January 18, 2016, 03:43:39 pm »
Also, Lazarus 1.4.4 will not build using qt as widget set. After building Lazarus is still using gtk. I guess the problems are related. How can I solve these problems?

Lazarus needs QT 4 libs. Your KDE 5 system may not have them.
You should look at the linker output when you build Lazarus. Very likely it threw an error about missing QT lib and did not generate an executable.
I don't know about the Label issue. Label Captions work also in GTK2.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

zamtmn

  • Hero Member
  • *****
  • Posts: 675
Re: Label texts missing in qt5
« Reply #2 on: January 18, 2016, 03:44:47 pm »

Adrie

  • New member
  • *
  • Posts: 9
Re: Label texts missing in qt5
« Reply #3 on: January 18, 2016, 03:49:03 pm »
Thanks, zamtmn. I'll just have to change theme.

@JuhaManninen. libqt4pas5 is installed and also libqt4-deb.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4650
  • I like bugs.
Re: Label texts missing in qt5
« Reply #4 on: January 18, 2016, 04:26:39 pm »
@JuhaManninen. libqt4pas5 is installed and also libqt4-deb.

What does linker say when you build Lazarus?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Adrie

  • New member
  • *
  • Posts: 9
Re: Label texts missing in qt5
« Reply #5 on: January 19, 2016, 09:08:12 am »
Nothing special. It just builds Lazarus in GTK without error messages.

Ah. I have found something. When I choose "Build Lazarus with profile: Normal IDE" it works, but when I choose Optimized IDE Lazarus is built in GTK, even if I have choosen qt.

Adrie

  • New member
  • *
  • Posts: 9
Re: Label texts missing in qt5
« Reply #6 on: January 19, 2016, 01:12:23 pm »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4650
  • I like bugs.
Re: Label texts missing in qt5
« Reply #7 on: January 19, 2016, 01:50:13 pm »
Ah. I have found something. When I choose "Build Lazarus with profile: Normal IDE" it works, but when I choose Optimized IDE Lazarus is built in GTK, even if I have choosen qt.

Apparently you did not choose QT for the Optimized IDE then.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Adrie

  • New member
  • *
  • Posts: 9
Re: Label texts missing in qt5
« Reply #8 on: January 19, 2016, 02:45:56 pm »
Ah. I have found something. When I choose "Build Lazarus with profile: Normal IDE" it works, but when I choose Optimized IDE Lazarus is built in GTK, even if I have choosen qt.

Apparently you did not choose QT for the Optimized IDE then.

Yes, I did.

 

TinyPortal © 2005-2018