Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Messed up UI under Ubuntu
Forum Updated to NodeBB v4.3 + New Features

Messed up UI under Ubuntu

Scheduled Pinned Locked Moved Qt Creator and other tools
24 Posts 4 Posters 10.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hsfougaris
    wrote on last edited by
    #1

    When running my application under Ubuntu, the UI gets messed up.
    This is a simple form with some labels on it in English and Greek.
    Inside creator, everything appears ok, when I change the fonts and when I preview the form in various styles.

    To start with, it is not using the fonts that I select in the designer (I tried at first with the default Ubuntu font, which has support for Greek).

    More alarmingly though, the Greek is displayed garbled, and you cannot enter any greek text in the line edits.

    I tried setting the locale on the form, but that didn't help.
    What could I be doing wrong?

    thanks.

    If you can't say what you mean, you'll never be able to mean what you say.

    1 Reply Last reply
    0
    • frankcyblogic.deF Offline
      frankcyblogic.deF Offline
      frankcyblogic.de
      wrote on last edited by
      #2

      Try to create a small test program, so others can reproduce it.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hsfougaris
        wrote on last edited by
        #3

        I don't understand what you want me to put in this program.
        If you create a default application and add any label, button or menu with Greek in it (try the word "Ελληνικά") it doesn't display properly at runtime.
        I wish I could post some images here, because it would be much easier to see what I'm talking about (although it can be reproduced in a few seconds).

        If there is anything specific this test program should have, please let me know.

        If you can't say what you mean, you'll never be able to mean what you say.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          What you can do for posting images, is put them in the public folder of your dropbox, and use the link as the image source (button between the numbered list and the link in the editor area). That's how I put up images on this page.

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hsfougaris
            wrote on last edited by
            #5

            which dropbox? is there one associated with my account here? (because I can't find it)

            If you can't say what you mean, you'll never be able to mean what you say.

            1 Reply Last reply
            0
            • frankcyblogic.deF Offline
              frankcyblogic.deF Offline
              frankcyblogic.de
              wrote on last edited by
              #6

              I think Andre means: your favourite upload method. For instance I'm using github and I can link any file on my git folders there directly from this forum.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                secretNinja
                wrote on last edited by
                #7

                "Use this website ":http://imageshack.us/

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andre
                  wrote on last edited by
                  #8

                  [quote author="harry" date="1302854069"]which dropbox? is there one associated with my account here? (because I can't find it)[/quote]

                  I was talking about this "dropbox":http://www.dropbox.com (but if you don't mind, please use this "referal link":http://db.tt/6e0tCnJ instead to create an account if you want one), but any of the other external sites that allow you to host images work (just) as well.

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hsfougaris
                    wrote on last edited by
                    #9

                    Well I put the in my mobileme public folder if someone would like to look at them
                    https://public.me.com/hsfougaris

                    If you can't say what you mean, you'll never be able to mean what you say.

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andre
                      wrote on last edited by
                      #10

                      Does the font you use in that dialog even have the Greek characterset?

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        hsfougaris
                        wrote on last edited by
                        #11

                        Well if you look at the screenshots, you can see that it does.
                        Even if I select a different one, that again has Greek, the result at runtime is different.

                        And of course in other apps (evolution for example which uses the same font) all is good.

                        If you can't say what you mean, you'll never be able to mean what you say.

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          andre
                          wrote on last edited by
                          #12

                          I did look at the screenshots, and noticed that the font at runtime is different from the font at design time. That's why I asked.

                          1 Reply Last reply
                          0
                          • H Offline
                            H Offline
                            hsfougaris
                            wrote on last edited by
                            #13

                            So what could I be doing wrong here?
                            I'm selecting a font with the designer, and I can see the change applied there.
                            I save/clean/rebuild my project, but I get something different.
                            Does it have to do with styles? I tried setting styles (with qApp->setStyle(....) like cleanlooks), but they don't seem to affect the fonts.

                            If you can't say what you mean, you'll never be able to mean what you say.

                            1 Reply Last reply
                            0
                            • H Offline
                              H Offline
                              hsfougaris
                              wrote on last edited by
                              #14

                              Another thing is that these exact steps, work fine under Mac and Windows.
                              I'm not setting up any font in particular on my form so under Linux it uses the font 'Ubuntu', under Mac 'Lucida Grand' and under windows 'Segoe'.

                              If you can't say what you mean, you'll never be able to mean what you say.

                              1 Reply Last reply
                              0
                              • H Offline
                                H Offline
                                hsfougaris
                                wrote on last edited by
                                #15

                                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).

                                If you can't say what you mean, you'll never be able to mean what you say.

                                1 Reply Last reply
                                0
                                • H Offline
                                  H Offline
                                  hsfougaris
                                  wrote on last edited by
                                  #16

                                  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.

                                  If you can't say what you mean, you'll never be able to mean what you say.

                                  1 Reply Last reply
                                  0
                                  • H Offline
                                    H Offline
                                    hsfougaris
                                    wrote on last edited by
                                    #17

                                    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...

                                    If you can't say what you mean, you'll never be able to mean what you say.

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      secretNinja
                                      wrote on last edited by
                                      #18

                                      Nice solution. I have problems with Windows, downloaded Fedora...and "it works like a charm" :)

                                      1 Reply Last reply
                                      0
                                      • H Offline
                                        H Offline
                                        hsfougaris
                                        wrote on last edited by
                                        #19

                                        What do you mean?

                                        If you can't say what you mean, you'll never be able to mean what you say.

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          secretNinja
                                          wrote on last edited by
                                          #20

                                          I mean that Fedora makes the problems disappear no matter what was your operating system or the problem you had.

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved