Totally different look when compiled locally vs. on other computer
-
When compiled locally via Qt Creator, my application looks something like this:
However, when compiled on another computer (GitHub Actions in this case) it looks totally different:
The heights are off, the buttons look different, everything.
What's going on here? How can I fix it?
-
@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. -
@JonB
I tried compiling it on a separate system (laptop) and running it on my desktop, and it looked totally fine.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.
-
@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? -