import QtQuick 2.12 import QtQuick.Controls 2.4 TextField { selectByMouse: true }