You are not logged in.

#1 2015-09-09 07:52:15

qlb1234
Member
Registered: 2015-09-09
Posts: 5

[SOLVED]Significantly larger font size in Qt5 programs.

Hi. Newbie here.

Today I tried to re-compile my Qt program which was build under Ubuntu a few months ago. So I

    sudo pacman -S qt5

and install all packages.

Then I realized the font size of the QLabel, QMenu etc., is huge.

If I just run my former built with official Qt 5.4.2 dynamic libraries, then all is well.

I thought it was something wrong with my code, then I run both Qt Designers of Qt4 and Qt5 (both from Arch official repo, of course), it is not. Please allow me to show you this screenshot.

http://imgur.com/HgpeQXe

Qt4 is good. But Qt5's not.

Is it only me or some of you also encountered this issue? Is something wrong with my machine?

Thank you.

Last edited by qlb1234 (2015-09-11 08:53:10)

Offline

#2 2015-09-11 09:01:39

qlb1234
Member
Registered: 2015-09-09
Posts: 5

Re: [SOLVED]Significantly larger font size in Qt5 programs.

I solved it myself but I'm really sorry that I can provide no useful information so far.
Here's what I did to accidentally solve this problem.

Downgrade Qt to 5.4 --> Didn't work.
Try run programs under Cinnamon (currently under Xfce) --> Problem gone.
Try a fresh install in Virtualbox with Xfce and Qt 5.5.0 --> Nothing's wrong.
Try login as root to Xfce --> Everything's OK.

Seems like some settings of mine about Xfce is wrong.

Go to /home/username/.config and rename the folder xfce4 to something else. Launch Qt Assistant again. --> Problem solved!
Rename that folder back to "xfce4", then try again. --> It still works.

Turns out this phenomenon was lost in tinkering. Sorry.
FYI.

Offline

Board footer

Powered by FluxBB