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.
  • 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
                    • H Offline
                      H Offline
                      hsfougaris
                      wrote on last edited by
                      #21

                      yes but I don't understand the reference to Windows...

                      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
                        #22

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

                        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
                          #23

                          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.

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

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

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

                            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