Skip to content
Discussion options

You must be logged in to vote

@sillyest As far as I understand you are searching for a behaviour similar to a ComboBox. Instead of fiddling with a PopupWindow it may be easier to just use Slint's conditional component creation feature with a Rectangle like so

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

export component Demo2 inherits Rectangle {
    preferred-width: 200px;
    preferred-height: 200px;

    forward-focus: edit;

    focus-scope := FocusScope { }

    VerticalBox {
        alignment: start;
        padding: 50px;

        // Just to have a second focus component
        // slider := Slider { }

        edit := LineEdit {
            // Instead of a PopupWindow you proba…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@sillyest
Comment options

Comment options

You must be logged in to vote
1 reply
@sillyest
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sillyest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
need triaging Issue that the owner of the area still need to triage
3 participants
Converted from issue

This discussion was converted from issue #8766 on June 24, 2025 08:29.