slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.94k stars 568 forks source link

The edited callback of LineEdit doesn't work in Slint 1.3.1 #4027

Closed Horbin-Magician closed 9 months ago

Horbin-Magician commented 9 months ago

Using: WIn11, Rust, Slint 1.3.1

Simple demo:

import { VerticalBox, LineEdit } from "std-widgets.slint";

export component AppWindow inherits Window {
    VerticalBox {
        LineEdit {
            edited(str) => {
                debug("input edited: ", str);
            }
        }
    }
}

There is no output when I input anything. But in version 1.3.0 everything is fine.

Horbin-Magician commented 9 months ago

PS: As the version was updated, almost all the features of my program were broken one by one. Maybe I'm a BUG black hole. :(

hunger commented 9 months ago

I am sorry to hear that and sorry for the pain our update cost you. We do hope to improve things with every release and try to test thoroughly to avoid exactly the experience you just had.

What hit you hardest? Any idea what we could do to improve?

Horbin-Magician commented 9 months ago

I'm just making a simple complaint. I genuinely enjoy using Slint and deeply appreciate your team. Each update to Slint has pleasantly surprised me, and I hope that you'll maintain this momentum until Slint reaches its full potential.

Personally, I find these two aspects very unfavorable: 1) It appears that the Slint experience on Linux and embedded systems is prioritized over its performance on Windows, resulting in a relatively poor experience on the latter (e.g., https://github.com/slint-ui/slint/issues/3303). 2) Many of the issues I encountered (e.g., https://github.com/slint-ui/slint/issues/3911 and https://github.com/slint-ui/slint/discussions/3961) were attributable to the upstream libraries (e.g., winit), leaving me feeling powerless.

These issues may require some time to resolve. In the meantime, I think I should learn more and try to solve some problems by myself.

ogoffart commented 9 months ago

Thanks a lot for your feedback. And thanks for reporting this issue. We'll have it fixed as soon as possible. Hopefully we'll do better next release.

And you're right that our experience on the desktop platform is not as good as we'd like. Good support for desktop is a very big undertaking, and we're struggling to do it properly with our limited resources. But I think it will take time but we'll hopefully get there eventually.