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. Qt UI Different on different versions of linux
Forum Updated to NodeBB v4.3 + New Features

Qt UI Different on different versions of linux

Scheduled Pinned Locked Moved Unsolved General and Desktop
qapplicationstylinglinuxformatting
12 Posts 2 Posters 4.1k 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 and welcome to devnet,

    What distributions are causing this ?

    Can you maybe share a picture to show what is happening ?

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

    HunterMetcalfeH 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi and welcome to devnet,

      What distributions are causing this ?

      Can you maybe share a picture to show what is happening ?

      HunterMetcalfeH Offline
      HunterMetcalfeH Offline
      HunterMetcalfe
      wrote on last edited by
      #3

      @SGaist Thanks for getting back to me! The new versions of Linux we are using is 6.7 and the older version was 6.2. Unfortunately, I cannot post any pictures of the software ;), but I can describe in detail the changes. For example in one QLabel, it was able to support 4 lines of text. However, the QLabel now cuts off a few words at the end. Furthermore, it looks as if the text throughout the entire project has changed. It looks crisper if that makes any sense. Button sizes have shifted - they've become wider and the spacing margins have changed all over. QMenu text originally fit, but now the words are cut off at the bottom. I apologize that I can't post any pictures, and I'm doing my best to recall the exact situation. Some coloration is also different. Could it perhaps be some of the CSS that used to change the QLabels. We utilize the setProperty() function when changed the attributes of labels, buttons, menus, etc. However, I just assumed that at the end of the day CSS colors are generally the same. I've never really posted on forums for support; however, this is a serious issue. I know there is a situation where you can do QApplication::setStyle(); however, I'm not sure that would solve the problem. I've seen where some people have tried setting the style to ("fusion"), but that never really worked. Any ideas would be much appreciated! Thanks again!

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #4

        Do you mean Red Hat 6.7 ?

        You can always show a dummy application before and after to show the differences.

        So If I understand correctly you are using Qt's Style Sheet to customize your application ?

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

        HunterMetcalfeH 3 Replies Last reply
        0
        • SGaistS SGaist

          Do you mean Red Hat 6.7 ?

          You can always show a dummy application before and after to show the differences.

          So If I understand correctly you are using Qt's Style Sheet to customize your application ?

          HunterMetcalfeH Offline
          HunterMetcalfeH Offline
          HunterMetcalfe
          wrote on last edited by
          #5

          @SGaist sorry, yes Red Hat 6.7. Yes we are using QT Style Sheet to customize the application.

          1 Reply Last reply
          0
          • SGaistS SGaist

            Do you mean Red Hat 6.7 ?

            You can always show a dummy application before and after to show the differences.

            So If I understand correctly you are using Qt's Style Sheet to customize your application ?

            HunterMetcalfeH Offline
            HunterMetcalfeH Offline
            HunterMetcalfe
            wrote on last edited by
            #6

            @SGaist I'm sorry I mis-replied to your message. We use our own CSS styling in the project, which is read in and applied to our different UI components.

            1 Reply Last reply
            0
            • SGaistS SGaist

              Do you mean Red Hat 6.7 ?

              You can always show a dummy application before and after to show the differences.

              So If I understand correctly you are using Qt's Style Sheet to customize your application ?

              HunterMetcalfeH Offline
              HunterMetcalfeH Offline
              HunterMetcalfe
              wrote on last edited by
              #7

              @SGaist out of curiosity does my CSS file need to have the .QSS extension? Would that make any difference?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                No it doesn't however that makes it clear that your style sheet is for Qt. Qt doesn't cover all CSS features.

                Can you make a small sample application that shows the cutoff problem of QMenu ?

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

                HunterMetcalfeH 1 Reply Last reply
                0
                • SGaistS SGaist

                  No it doesn't however that makes it clear that your style sheet is for Qt. Qt doesn't cover all CSS features.

                  Can you make a small sample application that shows the cutoff problem of QMenu ?

                  HunterMetcalfeH Offline
                  HunterMetcalfeH Offline
                  HunterMetcalfe
                  wrote on last edited by
                  #9

                  @SGaist Thanks for the input! We have uncovered that it is an openGL issue.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    Glad you found out !

                    Can you give more details ?

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

                    HunterMetcalfeH 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Glad you found out !

                      Can you give more details ?

                      HunterMetcalfeH Offline
                      HunterMetcalfeH Offline
                      HunterMetcalfe
                      wrote on last edited by
                      #11

                      @SGaist We recently updated to a newer version of RedHat. The resulting update caused some graphics driver errors. These errors are in the process of being resolved.

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        Thanks for sharing !

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

                        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