Cannot show the "Repeat days' buttons" when I run the "alarms" example on Windows 10
-
wrote 21 days ago last edited by
I'm new to Qt. I'm learning the official document Getting Started Programming with Qt Quick. When I run this example with give codes on my PC. The Main window does not show the "Repeat days" buttons. Please see following pictures. My OS is Windows10, Qt version is 6.9.0, Qt Creator version is 16.0.2. The codes can be found here. Please help me, thank you.
-
wrote 3 days ago last edited by
Anyone? Help?
-
I'm new to Qt. I'm learning the official document Getting Started Programming with Qt Quick. When I run this example with give codes on my PC. The Main window does not show the "Repeat days" buttons. Please see following pictures. My OS is Windows10, Qt version is 6.9.0, Qt Creator version is 16.0.2. The codes can be found here. Please help me, thank you.
@Richard-L Thanks for reporting this. It looks like the example got broken: https://bugreports.qt.io/browse/QTBUG-138105
There are two ways to fix this:
- Revert https://codereview.qt-project.org/c/qt/qtdoc/+/592511, OR
- Download the version of the example from Qt 6.7 or earlier: https://code.qt.io/cgit/qt/qtdoc.git/tree/examples/tutorials/alarms?h=6.7
-
@Richard-L You're welcome.
OK, Qt R&D has fixed the example. You just need to add
required property int index
to TumblerDelegate.qml (see https://codereview.qt-project.org/c/qt/qtdoc/+/657647/2/examples/tutorials/alarms/TumblerDelegate.qml )I strongly recommend going back to the Qt 6.9 version of the example and adding that missing line. The older version does not showcase current best practices.