core & ui_qt: improve selection