Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Image difference between QT and raspberry touch screen

Image difference between QT and raspberry touch screen

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 2 Posters 2.5k 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.
  • R Offline
    R Offline
    rapid84
    wrote on last edited by rapid84
    #1

    Hi,
    There are differences between the qt images (fonts, shapes...) on ubuntu and raspberry pi touch screen. What is the reason of this and what can we do for solving this problem?

    On raspberry screen : http://imageshack.com/a/img633/6198/qt3U5N.png
    On ubuntu qt creator : http://imageshack.com/a/img908/2184/eWgoKd.png

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      The look is often set by the platform you are running on.

      you can try to set
      http://doc.qt.io/qt-5/qapplication.html#setStyle

      and see if that makes it look differently.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rapid84
        wrote on last edited by
        #3

        @mrjj

        I have used this :

        QFont newFont("Courier", 12, QFont::Bold, true);
        QApplication::setFont(newFont);
        

        the size of font can be changed but the family can not be changed. it shows still the fonts as "Times", not "Courier".

        mrjjM 1 Reply Last reply
        0
        • R rapid84

          @mrjj

          I have used this :

          QFont newFont("Courier", 12, QFont::Bold, true);
          QApplication::setFont(newFont);
          

          the size of font can be changed but the family can not be changed. it shows still the fonts as "Times", not "Courier".

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @rapid84
          Hi what OS is it ?
          It might not have that font installed.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rapid84
            wrote on last edited by
            #5

            @mrjj
            OS is raspbian.

            mrjjM 1 Reply Last reply
            0
            • R rapid84

              @mrjj
              OS is raspbian.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @rapid84
              ok a debian
              you should be able to check which font you have with
              fc-list

              1 Reply Last reply
              0
              • R Offline
                R Offline
                rapid84
                wrote on last edited by
                #7

                @mrjj
                I have checked with fc-list. and i have tried with my any installed font but the result didn't change. I still can not change the font type.

                mrjjM 1 Reply Last reply
                0
                • R rapid84

                  @mrjj
                  I have checked with fc-list. and i have tried with my any installed font but the result didn't change. I still can not change the font type.

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @rapid84
                  Ok. that is odd.
                  Have you tested with other program that support fonts.
                  editor or something like that.

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    rapid84
                    wrote on last edited by
                    #9

                    @mrjj
                    Yes i have tested, it works in text editor, i can change the font type in the text editor.

                    mrjjM 1 Reply Last reply
                    0
                    • R rapid84

                      @mrjj
                      Yes i have tested, it works in text editor, i can change the font type in the text editor.

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @rapid84
                      Ok. odd.
                      Maybe see if Qt think the same as fc-list
                      using some from
                      http://doc.qt.io/qt-5.5/qfontdatabase.html#details
                      Do yo use stylesheet or anything that might overrule?

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        rapid84
                        wrote on last edited by
                        #11

                        @mrjj
                        No i don't use any stylesheet. I am new on qt creator and i don't know how to use qfontdatabase. I will try to use.

                        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