oject.org<mailto:development@qt-project.org>
Subject: Re: [Development] [Qt Quick] Automatically restoring focus to last
focused item
That's a very universal solution to a specific problem and one that's going to
have all kinds of unintended consequences. Without knowing why foc
tem) {
>
> d->contentItem = new
> QQuickItem(QQuickWindow::contentItem());
>
> + d->contentItem->setFlag(QQuickItem::ItemIsFocusScope);
>
> d->relayout();
>
> }
>
> return d-&
[mailto:andrew.den.ex...@qinetic.com.au]
Sent: Friday, 6 May 2016 1:38 PM
To: Mitch Curtis
Cc: development@qt-project.org
Subject: Re: [Development] [Qt Quick] Automatically restoring focus to last
focused item
That's a very universal solution to a specific problem and one that's going to
have all k
That's a very universal solution to a specific problem and one that's going
to have all kinds of unintended consequences. Without knowing why focus was
taken from an item and given to another and why that other object
relinquished focus it's impossible to know whether focus should be restored
to th
Consider the example below (requires Qt 5.7):
import QtQuick 2.6
import QtQuick.Layouts 1.1
import QtQuick.Window 2.2
import QtQuick.Controls 2.0
ApplicationWindow {
width: 400
height: 200
visible: true
onActiveFocusItemChanged: print("