[Linux] А problem with "date" bar

Image Ici on parle français ou anglais, comme on veut, comme on peut.
Image Here we speak french or english, as we want, as we can.

Moderator: jza

Forum rules
Image Ici on parle français ou anglais, comme on veut, comme on peut, mais on n'oublie jamais que l'on discute entre humains.
Il ne faut surtout pas oublier les mots magiques: bonjour, salut, merci, etc.
Les messages impolis sont rejetés et restent sans réponse.
Il faut souvent être patient, car il y a plein d'autres activités encore plus passionantes dans notre vie.

Image Here we speak french or english, as we want, as we can, but we never forget that we discuss between humans.
Do not forget the magic words: hello, hi, thank you, etc.
Rude messages are rejected and remain unanswered.
It is often necessary to be patient because there are many other activities even more exciting in our life.
Post Reply
Sergey
Posts: 6
Joined: 08 May 2012 10:59

[Linux] А problem with "date" bar

Post by Sergey » 08 Aug 2014 21:58

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.
Attachments
date-bar.jpg
date-bar.jpg (5.44 KiB) Viewed 6731 times
Regards, Sergey.

jza
Site Admin
Posts: 600
Joined: 19 Jan 2009 00:22

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

Post by jza » 16 Aug 2014 14:01

Hello,
I never see this problem on ubuntu or mint.
Sorry, I have no idea.
Perhaps a QT version too old ?
A+
Jacques

Sergey
Posts: 6
Joined: 08 May 2012 10:59

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

Post by Sergey » 18 Aug 2014 08:51

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 ?
Regards, Sergey.

jza
Site Admin
Posts: 600
Joined: 19 Jan 2009 00:22

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

Post by jza » 18 Aug 2014 12:19

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.
A+
Jacques

Sergey
Posts: 6
Joined: 08 May 2012 10:59

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

Post by Sergey » 27 Jan 2015 17:09

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.
Regards, Sergey.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest