how to make the previewed UI the same as the compile one? #4731
Replies: 2 comments
-
It looks like the window is much bigger than the preview. You could force the size by setting The style seems to be different between the images you show. That can change the size of buttons, etc. Another thing that effects sizes is of course the scale-factor. |
Beta Was this translation helpful? Give feedback.
-
This is the difference between the Qt backend and style compared to the winit backend. Qt and winit might compute the scale factor differently. But i'm not sure why this is so different. |
Beta Was this translation helpful? Give feedback.
-
Hi all, I'm learning slint and for some reason the UI that I'm building looks fine in the preview screen, but when running it the dimensions change and seems that the button components are the only ones that keep the correct size.
Does anyone know what could be happening?
Thanks in advance.
This is the repository:
https://github.com/ecruzolivera/vending-machine-collection/tree/main/rs-slint/ui
Beta Was this translation helpful? Give feedback.
All reactions