Page 1 of 1

[Linux] А problem with "date" bar

Posted: 08 Aug 2014 21:58
by Sergey
Hello.

I use zyGrib on several computers and I have a problem on some of them: letters merge into a heap (see picture). I installed zyGrib from the package (OS Linux) in all cases, so it assembled equally. I tried to compare sets of fonts and I have not found differences. Any ideas ? I use zyGrib since 5.0.6 and this problem was always. B.t.w., I have not found how to change the font in "date" bar...

Regards, Sergey.

Re: [Linux] А problem with "date" bar

Posted: 16 Aug 2014 14:01
by jza
Hello,
I never see this problem on ubuntu or mint.
Sorry, I have no idea.
Perhaps a QT version too old ?

Re: [Linux] А problem with "date" bar

Posted: 18 Aug 2014 08:51
by Sergey
jza wrote:Perhaps a QT version too old ?
No. All zyGrib versions worked with 4.6.3 (i586). Now I have two almost identical installation of Linux (ALT Linux; branch 6.0; qt 4.8.4). The architecture is different only: i586 and x86_64. The problem exist on i586 only. But it seems to me that the reason should not be in the architecture...

What about font for this bar ? Can I change it ?

Re: [Linux] А problem with "date" bar

Posted: 18 Aug 2014 12:19
by jza
Hi,
I still do not understand.

The bar is painted by the fonction DateChooser::paintEvent in the file DateChooser.cpp, from line 181 to 287

Dafault font : QFont("Liberation Sans", 8, QFont::Bold, true)

Horizontal positions of the objects are computed using these QT functions :
QStyle::sliderPositionFromValue
QFontMetrics::boundingRect
Perhaps you have to investigate that.

Information : zyGrib 6.3.2 was developped with QT 4.8.6 on a Linux Mint OS.
Warning: future versions will use QT5 and probably will not be usable with QT4.

Re: [Linux] А problem with "date" bar

Posted: 27 Jan 2015 17:09
by Sergey
This is a problem with "Plastique" widget of qt4. I use TDE (which uses qt3) and qt4 selects "Plastique" by default. ZyGrib works fine with "Cleanlooks" widget (for example). It can be changed by qtconfig-qt4.