import QtQuick 2.9 import QtQuick.Controls 2.2 TextField { selectByMouse: true }