Does Qt Apps' appearance change between different Platform Plugins?
-
When I run the same Qt app with different
-platform
options (xcb and eglfs), it looks totally different. The xcb version looks much prettier than eglfs one. It looks like eglfs ignores some of the styles and shows a very simplified version of the application. Also, in eglfs, drag operations don't show the pixmap that represent the operation, while xcb do.Is this normal or I'm missing something?
-
@rrd0 said in Does Qt Apps' appearance change between different Platform Plugins?:
Is this normal or I'm missing something?
It's normal.
Here's an obvious example: An traditional app on the
xcb
platform (Linux) is expected to look different from the same app built forwindows
(Windows) platform.The xcb version looks much prettier than eglfs one. It looks like eglfs ignores some of the styles and shows a very simplified version of the application. Also, in eglfs, drag operations don't show the pixmap that represent the operation, while xcb do.
EGL = Embedded-system Graphics Library
Embedded systems typically have less processing power than desktop systems, and they might be expected to last a long time on a single battery charge. So, they tend to use simpler graphics for efficiency.
-
Hi,
Define what you mean by look better. What are you expecting ? What are you getting ?
-
@rrd0 said in Does Qt Apps' appearance change between different Platform Plugins?:
Is there something I can do to make eglfs look better? If not, is there an alternative to eglfs? I need something like eglfs, that doesn't need a window system but run GUI applications.
Try applying the
Fusion
style to your whole application and see if you like that. https://doc.qt.io/qt-5/qapplication.html#setStyleIf not, please describe in more detail what kind of device it is, what constraints you have, how you're creating the GUI (widgets? Qt Quick? OpenGL?), etc.
-
Here are some images of what I'm expecting (what I have on xcb platform) and what I'm getting on eglfs platform.
- You'll see rounded buttons on xcb and square and flatter buttons on eglfs.
- QComboBoxes are raised on xcb and sunken on eglfs.
- The QScrollBars show a white fill on eglfs.
xcb
eglfs
xcb
eglfs
xcb
eglfs
xcb
eglfs
There are lots of other differences, but I hope these pictures are enough to describe my problem.
-
Wooow!!! Applying the
Fusion
style solved almost all of my problems with eglfs. Thank you very much.Now applications have the same style, regardless of the platform they are running on.
The only problem that persists is the invisible pixmap on drag-n-drop operations. Does anybody know how to solve that?
-
@rrd0 said in Does Qt Apps' appearance change between different Platform Plugins?:
Wooow!!! Applying the
Fusion
style solved almost all of my problems with eglfs. Thank you very much.Now applications have the same style, regardless of the platform they are running on.
Great!
The only problem that persists is the invisible pixmap on drag-n-drop operations. Does anybody know how to solve that?
Sorry, I don't know how to change that. You can try to subscribe to the Interest mailing list and ask there -- Qt engineers are active on that mailing list.
@rrd0 said in Does Qt Apps' appearance change between different Platform Plugins?:
Here are some images of what I'm expecting (what I have on xcb platform) and what I'm getting on eglfs platform.
- You'll see rounded buttons on xcb and square and flatter buttons on eglfs.
- QComboBoxes are raised on xcb and sunken on eglfs.
- The QScrollBars show a white fill on eglfs.
...
There are lots of other differences, but I hope these pictures are enough to describe my problem.
The differences that you showed are intended in the platform design.