From d8b668603fc5c917dcd1c2e5fe18f394a71d5e4b Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Fri, 10 Mar 2023 16:32:21 +0100 Subject: [PATCH] workaround added to avoid that the input field is shrinking too much --- examples/gallery/inputs/InputPage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/gallery/inputs/InputPage.cpp b/examples/gallery/inputs/InputPage.cpp index f66dc8c7..eef0e889 100644 --- a/examples/gallery/inputs/InputPage.cpp +++ b/examples/gallery/inputs/InputPage.cpp @@ -55,7 +55,9 @@ namespace auto input = new QskTextInput( "12345", this ); input->setMaxLength( 5 ); input->setEchoMode( QskTextInput::PasswordEchoOnEdit ); - input->setSizePolicy( Qt::Horizontal, QskSizePolicy::Fixed ); +#if 1 + input->setFixedWidth( 80 ); +#endif } {