Different result when I try to make a QML example
-
Hi,
To practice QML, I wanted to put this video from 2016 into practice: https://www.youtube.com/watch?v=hJKVb7WpQ_c
Link to the github repository that contains my implementation of this video (I've noticed that github can return a 404 page, try again to access the page later if this happens) : https://github.com/embeddedmz/qmlExample
I've noticed several problems :
- The progress bar never updates: either in the designer (which is buggier than ever compared to the one in the video) or by manipulating the dialer. it always remains 100% full : can anyone explain why the progress bar doesn't work?
- Material.theme doesn't seem to be applied in my case: the user controls don't look like the one in the video. The text should automatically be white, but in my case it's black.
- When I drag and drop a slider in the designer, it has zero height
- Dialer is not rendered correctly in run time : I can only see the handle, the outer circle is not visible :
-
I cannot directly answer your 4 points, but it occurs to me that an example from 2016 is not going to work correctly in 2024, as QML has undergone many changes to bring us to Qt6 and above, but you have not mentioned which version of QtCreator you are using, perhaps 5.15?
I also am using QtCreator but for SailfishOS, this means, due to licensing, that modules like Dial are not available to me and also Designer is not a part of QtCreator for SailfishOS.
If you haven't already looked, check out the modules you are using for Qt6 and above. An example could be https://doc.qt.io/qt-6/qml-qtquick-controls-dial.html
I am unable to access your Github at any time, perhaps there is a problem with your account in this regard.
-
I cannot directly answer your 4 points, but it occurs to me that an example from 2016 is not going to work correctly in 2024, as QML has undergone many changes to bring us to Qt6 and above, but you have not mentioned which version of QtCreator you are using, perhaps 5.15?
I also am using QtCreator but for SailfishOS, this means, due to licensing, that modules like Dial are not available to me and also Designer is not a part of QtCreator for SailfishOS.
If you haven't already looked, check out the modules you are using for Qt6 and above. An example could be https://doc.qt.io/qt-6/qml-qtquick-controls-dial.html
I am unable to access your Github at any time, perhaps there is a problem with your account in this regard.
@Markkyboy My QtCreator version is 10.0.1 based on Qt 6.4.3 (Windows)
Designer is not a part of QtCreator
I enabled QtQuick plugin
I am unable to access your Github at any time,
Try again, there's an issue with github.
At least I want to understand why the progress bar doesn't work, it's crazy !