Comment 0 for bug 1598920

Revision history for this message
Dubstar_04 (dubstar-04) wrote : QML MouseArea CursorShape: not respected

The MouseArea CursorShape doesnt have any effect.

Docs Here: http://doc.qt.io/qt-5/qml-qtquick-mousearea.html

Expected Behavour:
Mouse image shows selected Qt cursor

Experienced Behavour:
The regular arrow is displayed.

Example Code:

import QtQuick 2.4
import Ubuntu.Components 1.3

MainView {
    objectName: "mainView"
    applicationName: "mouseTest"

    width: units.gu(100)
    height: units.gu(75)

    Page {
        header: PageHeader {
            id: pageHeader
            title: i18n.tr("Cursor Test")
        }

        Rectangle{
            anchors.fill: parent
            color: UbuntuColors.coolGrey

            MouseArea{
                anchors.fill: parent
                cursorShape: Qt.CrossCursor
                hoverEnabled: true
                onClicked: console.log("In MouseArea")

            }
        }
    }
}