Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Different result when I try to make a QML example
Forum Updated to NodeBB v4.3 + New Features

Different result when I try to make a QML example

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 274 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    embeddedmz_2
    wrote on last edited by embeddedmz_2
    #1

    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 :
      9298b2e8-a615-4929-b50d-10c9e79dfa88-image.png
    1 Reply Last reply
    0
    • MarkkyboyM Offline
      MarkkyboyM Offline
      Markkyboy
      wrote on last edited by
      #2

      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.

      Don't just sit there standing around, pick up a shovel and sweep up!

      I live by the sea, not in it.

      E 1 Reply Last reply
      0
      • MarkkyboyM Markkyboy

        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.

        E Offline
        E Offline
        embeddedmz_2
        wrote on last edited by
        #3

        @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 !

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved