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. Block dots in image buttons
QtWS25 Last Chance

Block dots in image buttons

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qt embeddedqmlqt4.8.7pngrendering
1 Posts 1 Posters 313 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.
  • T Offline
    T Offline
    Thejas
    wrote on last edited by
    #1

    I am running a Qt application in IMX6 board.
    These are my platform details

    Qt version = QtEmbedded 4.8
    Application type = qml
    Device = IMX6
    I have a lot of buttons in my GUI, all are PNG files. The problem is some dark dots/lines are coming top of the icon.

    But the same icons are working fine in qt-x11.
    here is the side by side comparison
    qte-vs-x11.jpg

    20210720_175543-COLLAGE_2.jpg

    Qt-embedded - Lines in Image buttons
    Qt-x11 - images and clean.

    Here is the code snippet of the Close button

        ButtonImgItem
        {
            id                    : closeID
            objectName            : "CloseID"
            btnWidth              : Math.floor(Const.TYPEC_BUTTON_WIDTH   * Const.X_DPI)
            btnHeight             : Math.floor(Const.TYPEC_BUTTON_HEIGHT  * Const.Y_DPI)
            imagePath             : "../images/e_x_zone2b.png"
            btnTye                : ApplicationData.BUTTON_TYPE_C
            buttonState           : ApplicationData.BUTTON_STATE_NORMAL
            isCaligned            : true
            anchors.left          : parent.left
            anchors.leftMargin    : Const.HELP_SELECTGRID_LEFT_MARIGIN * Const.X_DPI
            anchors.bottom        : parent.bottom
            anchors.bottomMargin  : Const.HELP_SELECTGRID_BOTTOM_MARIGIN * Const.Y_DPI
    
            onSignalBtnClicked:
            {
                zone3itemID.enabled = false
                parent.enabled = false
            }
    
            onSignalSelectedState:
            {
                zone3itemID.enabled = true
                amIVisibile     = false
                parent.enabled  = true
                setBtnborderColor(Const.NORMAL_MODE_COLOR)
                state           = 'Normal'
                buttonState     = ApplicationData.BUTTON_STATE_NORMAL
                appDataController.saveVolume(parseInt(appDataController.getCurrentVolume())
                                                     , speakerCal
                                                     , 0
                                                     , appDataController.getCtrlSpeakerState())
                stopAudio()
                signalDismiss();
            }
    
        }
    

    any idea why this is happening?

    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