In agreement with E-Berry, using Qt 6.8 on Ubuntu 22.04, clicking on the + sign resulted in "import QtQuick.Controls 2.15" getting added (automatically) to the top of my main.qml, which seems to be equivalent to the manual editing mentioned in the original post.