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. Totally different look when compiled locally vs. on other computer
Forum Updated to NodeBB v4.3 + New Features

Totally different look when compiled locally vs. on other computer

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 260 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.
  • S Offline
    S Offline
    swurl
    wrote on last edited by
    #1

    When compiled locally via Qt Creator, my application looks something like this:

    5f89b811-8de9-4ac0-a4b3-45e3e166a270-image.png

    However, when compiled on another computer (GitHub Actions in this case) it looks totally different:

    025aa984-30a5-4466-a282-fe109733cb6b-image.png

    The heights are off, the buttons look different, everything.

    What's going on here? How can I fix it?

    JonBJ 1 Reply Last reply
    0
    • S Offline
      S Offline
      swurl
      wrote on last edited by
      #5

      Ah, got it. This is caused by the KDE Breeze style as compared to the Fusion/Windows/etc. style. Fixed it by force-setting the style to Universal.

      1 Reply Last reply
      0
      • S swurl

        When compiled locally via Qt Creator, my application looks something like this:

        5f89b811-8de9-4ac0-a4b3-45e3e166a270-image.png

        However, when compiled on another computer (GitHub Actions in this case) it looks totally different:

        025aa984-30a5-4466-a282-fe109733cb6b-image.png

        The heights are off, the buttons look different, everything.

        What's going on here? How can I fix it?

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #2

        @swurl
        At a guess. You might start by verifying that where it is compiled makes no difference: try the executable generated on one machine running on the other machine. I would expect behaviour to depend on machine where run, not on machine where compiled? (Assuming same OS) are the styles (e.g. Fusion) the same? Because, for example, in the top one the OK/Cancel buttons have icons against them but not in the bottom one. That should indicate either different style or different OS/platform.

        S 2 Replies Last reply
        0
        • JonBJ JonB

          @swurl
          At a guess. You might start by verifying that where it is compiled makes no difference: try the executable generated on one machine running on the other machine. I would expect behaviour to depend on machine where run, not on machine where compiled? (Assuming same OS) are the styles (e.g. Fusion) the same? Because, for example, in the top one the OK/Cancel buttons have icons against them but not in the bottom one. That should indicate either different style or different OS/platform.

          S Offline
          S Offline
          swurl
          wrote on last edited by
          #3

          @JonB
          I tried compiling it on a separate system (laptop) and running it on my desktop, and it looked totally fine.

          f0850e7d-e933-45e1-a39c-767dd4308f4d-image.png

          It ONLY seems to happen when compiled on Ubuntu and run on any of my systems (as an AppImage). Same behavior when run on my laptop. I will test Windows here shortly.

          1 Reply Last reply
          0
          • JonBJ JonB

            @swurl
            At a guess. You might start by verifying that where it is compiled makes no difference: try the executable generated on one machine running on the other machine. I would expect behaviour to depend on machine where run, not on machine where compiled? (Assuming same OS) are the styles (e.g. Fusion) the same? Because, for example, in the top one the OK/Cancel buttons have icons against them but not in the bottom one. That should indicate either different style or different OS/platform.

            S Offline
            S Offline
            swurl
            wrote on last edited by
            #4

            @JonB
            In Windows, regardless of if it's compiled locally or remotely it has that weird look with off heights & different buttons. My main guess is that when compiled locally it's not using any style, but on Windows and Ubuntu it defaults to some kind of style that I'm not seeing? Or I need to force the style that those local machines use? How would I go about the latter?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              swurl
              wrote on last edited by
              #5

              Ah, got it. This is caused by the KDE Breeze style as compared to the Fusion/Windows/etc. style. Fixed it by force-setting the style to Universal.

              1 Reply Last reply
              0
              • S swurl has marked this topic as solved on

              • Login

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