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. Table header font shape is different between Windows OS and Raspberry Pi
Forum Updated to NodeBB v4.3 + New Features

Table header font shape is different between Windows OS and Raspberry Pi

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 4 Posters 684 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    You should add:

    • Qt version
    • Linux distributions
    • Desktop environment

    Both on your desktop and RPi.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    I 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi,

      You should add:

      • Qt version
      • Linux distributions
      • Desktop environment

      Both on your desktop and RPi.

      I Offline
      I Offline
      IknowQT
      wrote on last edited by
      #3

      @SGaist

      Qt version: 5.15.2
      Linux distributions: Ubuntu 20.04.3 LTS
      Desktop environment: window10

      1 Reply Last reply
      0
      • Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #4

        I doubt there is the same data - in one screenshot you've 'WaveLength', in the other 'WaveLength5' - maybe there are linebreaks too. Make sure that you work on the same data when comparing screenshots.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        I 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          I doubt there is the same data - in one screenshot you've 'WaveLength', in the other 'WaveLength5' - maybe there are linebreaks too. Make sure that you work on the same data when comparing screenshots.

          I Offline
          I Offline
          IknowQT
          wrote on last edited by
          #5

          @Christian-Ehrlicher

          I have already confirmed that I have the same data.
          Putting 5 on it was just to make sure the text changes.

          1 Reply Last reply
          0
          • Christian EhrlicherC Online
            Christian EhrlicherC Online
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #6

            Use a simple model (or QTableWidget) without your test application to see if it's really a program on the Qt side (which I doubt).
            Also try to start with a different style (e.g. windows) on your raspberry.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            I 1 Reply Last reply
            0
            • Christian EhrlicherC Christian Ehrlicher

              Use a simple model (or QTableWidget) without your test application to see if it's really a program on the Qt side (which I doubt).
              Also try to start with a different style (e.g. windows) on your raspberry.

              I Offline
              I Offline
              IknowQT
              wrote on last edited by
              #7

              @Christian-Ehrlicher

              I also did several tests. I tested it after running it on Ubuntu OS, but I think it is a problem on the qt side
              Because when I ran the same in Ubuntu environment, the result was the same with Raspberry. And there are several people who are raising this issue.

              1 Reply Last reply
              0
              • Christian EhrlicherC Online
                Christian EhrlicherC Online
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #8

                So did you actually run it on the raspberry pi with the windows style?

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                I 1 Reply Last reply
                0
                • Christian EhrlicherC Christian Ehrlicher

                  So did you actually run it on the raspberry pi with the windows style?

                  I Offline
                  I Offline
                  IknowQT
                  wrote on last edited by
                  #9

                  @Christian-Ehrlicher

                  Are you referring to the desktop version of the Windows-style Raspberry Pi?
                  I'm developing in a raspberry environment on the desktop version.

                  J.HilkJ 1 Reply Last reply
                  0
                  • Christian EhrlicherC Online
                    Christian EhrlicherC Online
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    I don't understand your question.
                    You posted a screenshot with a wrong height. Start this application with the windows style and see if it's still an issue.

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    1 Reply Last reply
                    0
                    • I IknowQT

                      @Christian-Ehrlicher

                      Are you referring to the desktop version of the Windows-style Raspberry Pi?
                      I'm developing in a raspberry environment on the desktop version.

                      J.HilkJ Offline
                      J.HilkJ Offline
                      J.Hilk
                      Moderators
                      wrote on last edited by
                      #11

                      @IknowQT first check what styles are available on your target OS

                      qDebug() << QStyleFactory::keys();
                      

                      than set it to "Windows" if available

                      QApplication app(argc, argv);
                      qDebug() << QStyleFactory::keys();
                      app.setStyle(QStyleFactory::create("Windows"));
                      

                      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                      Q: What's that?
                      A: It's blue light.
                      Q: What does it do?
                      A: It turns blue.

                      1 Reply Last reply
                      1

                      • Login

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