Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problem on Shown a masked Qml Object on Huawei device

Problem on Shown a masked Qml Object on Huawei device

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 853 Views 2 Watching
  • 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.
  • mahadinM Offline
    mahadinM Offline
    mahadin
    wrote on last edited by
    #1

    Hi .
    I have a picture that masked by circle (made bye Rectangle ).
    Its work correctly on most devices but not work correctly on a Huawei device .
    where is the problem
    please help me .
    tanks !
    alt text

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should show the code you use for that as well as provide the version of Android you use on your device.

      On a side note, I don't know whether the people on your picture are fake data or not but if they are not, you are providing their phone number to anybody reading this topic.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • mahadinM Offline
        mahadinM Offline
        mahadin
        wrote on last edited by
        #3

        the persons and their number are fake.
        my android version is 4.4
        it's my code:

        Rectangle {
        id: mycanvas
        width: height
        height: parent.height0.9
        radius: height
        clip: true
        x:parent.width
        .030
        y:(parent.height-height )*0.5

            Image {
                visible: false
                id: picture
                height: parent.height
                width: height
                z:-2
        
                Rectangle{
                    //halat difualt
                    z:-1
                    color: "#dbd8d8"
                    anchors.fill: parent
                    Text {
                        text: "o"
                        font.family: icons.name
                        anchors.horizontalCenter: parent.horizontalCenter
                        anchors.verticalCenter: parent.verticalCenter
                        font.pixelSize: ratio*17
                        color: "white"
                    }
                }
            }
        
            OpacityMask{
                anchors.fill: picture
                 source: picture
                 maskSource: mycanvas
        
            }
        

        }

        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