2
Qt5.7この例では「ポインタ」カーソルを示していますが、Qt5.8では「ibeam」カーソルが表示されています。Qt5.8 QML読み取り専用のControls2.TextAreaにibeamカーソルがあるのはなぜですか?
import QtQuick 2.7
import QtQuick.Controls 2
ApplicationWindow
{
width: 1024
height: 800
visible: true
Flickable
{
anchors.fill: parent
flickableDirection: Flickable.VerticalFlick
TextArea.flickable: TextArea
{
font.pixelSize: 25
text: "hello world"
readOnly: true
}
}
}
は、これがそうならば、どのように私は、読み取り専用のTextAreaのポインタカーソルを表示することができ、意図的な変更ですか?
ありがとうございました。
更新#1:ダミーMouseArea
を追加
はそれを修正するために表示されます。どうやらこれが修正されましたバグだった、ミッチとJpnurmiのコメントに続いて
Flickable
{
anchors.fill: parent
flickableDirection: Flickable.VerticalFlick
TextArea.flickable: TextArea
{
font.pixelSize: 25
text: "hello world"
readOnly: true
MouseArea
{
anchors.fill: parent
enabled: false
}
}
}
は修正が容易であるべき監督のような音です。 bugreports.qt.ioで報告してください。 – jpnurmi
@jpnurmiありがとうございます。私は回避策を見つけましたが、なぜ動作するのか分かりません。とにかく... –
おそらく 'MouseArea'のデフォルトの' cursorShape'は 'Qt.ArrowCursor'です:http://doc.qt.io/qt-5/qml-qtquick-mousearea.html#cursorShape-prop。ところで、あなたはあなたの質問に答えてそれを受け入れて、それが解決されたことを知ることができますか? :) – Mitch