Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. progress
    Log in to post

    • SOLVED Rounded button with progress background fill
      QML and Qt Quick • qml button clipping progress mask • • markugra  

      3
      0
      Votes
      3
      Posts
      1560
      Views

      Thanks, I tried the OpacityMask again as you suggested and it works now. It took me a bit to get it right, because i) I had a warning about the recursive property in ShaderEffectSource needing to be set to "true" and ii) the mask size needs to be the same as the source size for it to work properly. After a while I noticed that i) originated from some code in the contentItem of the button using the ColorOverlay (in fact it was the same problem there i.e. I tried to apply it to the parent). To fix ii) I used a transparent frame so that the code now looks something like: background: Item{ width: control.width height: control.height Rectangle{ id: progressFrame anchors.fill: parent color: "transparent" visible: false Rectangle{ id: progressRect width: 0.7*parent.width height: parent.height anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left color: "green" } } Rectangle { id: backgroundRect anchors.fill: parent radius: height / 2 color: "red" visible: true } OpacityMask{ anchors.fill: progressFrame source: progressFrame maskSource: backgroundRect } } Resulting in: Thanks again!
    • UNSOLVED Upload file with progress
      General and Desktop • upload progress • • AliReza Beytari  

      18
      0
      Votes
      18
      Posts
      7268
      Views

      "QWebElement parse" cannot return any element!!
    • Calculate progress percentage of a process (which calls ffmpeg) (without progressbar)
      General and Desktop • encoding process ffmpeg progress percentage • • Opa114  

      4
      0
      Votes
      4
      Posts
      5093
      Views

      @Chris-Kawa thanks for the hint. Works now :)