Messed up UI under Ubuntu
-
I even changed the default system locale to Greek (and everything I see is now in Greek), but the app still refuses to display properly at runtime.
This is really baffling, and I don't know how to troubleshoot.
It doesn't look like it's a system issue (as everything else is working correctly - even QtCreator). -
I also test this:
i created a console app that displays a single string.
By default it displays garbage.I added
@
QString c = "UTF-8";
QTextCodec::setCodecForTr(QTextCodec::codecForName(c.toLatin1()));
QTextCodec::setCodecForCStrings(QTextCodec::codecForName(c.toLatin1()));
QTextCodec::setCodecForLocale(QTextCodec::codecForName(c.toLatin1()));
@
and then it works.I am using the same in my GUI app, but the form is still messed up.
Since I'm not really tied to Ubuntu and no-one seems to use it, can someone that is willing to try this on their distribution tell me what distro they have, so I may try with that? thanks.
-
Never mind.... I downloaded Fedora and it works like a charm.
I don't know what on earth is wrong with Ubuntu, and I don't care ( I was doing a test build anyway ).
Strange though - I did the exact same things... -
Nice solution. I have problems with Windows, downloaded Fedora...and "it works like a charm" :)
-
What do you mean?
-
I mean that Fedora makes the problems disappear no matter what was your operating system or the problem you had.
-
yes but I don't understand the reference to Windows...
-
I'm really interested in your answer, since I haven't used linux much recently.
Was your comment ironic or serious? Does Fedora in general generate less grief than other distros for developers?
Because considering how basic (and serious) at the same time my problem with Ubuntu was, and the fact no-one could offer any suggestions, means for me that most likely no developer (that hangs around here) is using Ubuntu.
Thankfully I was only looking to do a test compile of my app, and I can control the environment under my app will be used (which doesn't look like it's going to be Ubuntu), but this case should interest someone I think... -
I was totally serious.
I had some problems with Qt - I "couldn't install the SDK on Windows properly":http://developer.qt.nokia.com/forums/viewthread/5092/ ( if you are interested, see the last but one comment in this thread ) . One of the solutions I've found was to use Fedora instead of Windows. I haven't been using Linux regularly for a long time ... but this experience made me reconsider this. Now I'm migrating towards using Fedora for everyday usage ( and Windows as a virtual machine if needed ).
I don't have enough experience to say that Fedora is better ... but I like it and I hope it won't have any serious problems.
-
I'm starting to appreciate Fedora too.
Everything Qt related seems to work out of the box.
I even managed to build the postgresql driver (64 bit) easily (I had a similar post with my troubles building it under Windows x64).