mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 07:37:24 +00:00
![]() After creating the winit window we end up issuing a request_redraw() on the window adapter after setting the component. This is before show(). With regular windowing systems the redraw event will be delivered when the window is actually shown, but winit delivers it right away. In our draw() implementation we don't do anything before show() is called, as the size won't be correct. Therefore content is never rendered. To work around this behavior, we can use the redraw_requested state and draw right away in show() on wasm. |
||
---|---|---|
.. | ||
qt | ||
selector | ||
testing | ||
winit |