import QtQuick 2.0 TextEdit { wrapMode: Text.Wrap readOnly: true selectByMouse: true // Workaround for https://bugreports.qt.io/browse/QTBUG-50587 onFocusChanged: { if(focus === false) deselect() } }