From 964395085f2a6491ede1385d1a013303ce9c38fe Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Tue, 9 May 2023 15:14:36 +0200 Subject: [PATCH] gallery: Make sure a radio button is selected --- examples/gallery/button/ButtonPage.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/gallery/button/ButtonPage.cpp b/examples/gallery/button/ButtonPage.cpp index 45ff8bb0..047802af 100644 --- a/examples/gallery/button/ButtonPage.cpp +++ b/examples/gallery/button/ButtonPage.cpp @@ -168,6 +168,7 @@ namespace : ButtonBox( Qt::Horizontal, parent ) { auto radioBox1 = new QskRadioBox( { "One", "Two", "Three" }, this ); + radioBox1->setSelectedIndex( 0 ); radioBox1->setSizePolicy( Qt::Horizontal, QskSizePolicy::Fixed ); auto radioBox2 = new QskRadioBox( { "One", "Two", "Three" }, this );