Re: [Development] [Qt Quick] Automatically restoring focus to last focused item

2016-05-10 Thread Mitch Curtis
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

Re: [Development] [Qt Quick] Automatically restoring focus to last focused item

2016-05-09 Thread Andrew den Exter
tem) { > > d->contentItem = new > QQuickItem(QQuickWindow::contentItem()); > > + d->contentItem->setFlag(QQuickItem::ItemIsFocusScope); > > d->relayout(); > > } > > return d-&

Re: [Development] [Qt Quick] Automatically restoring focus to last focused item

2016-05-09 Thread Mitch Curtis
[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

Re: [Development] [Qt Quick] Automatically restoring focus to last focused item

2016-05-06 Thread Andrew den Exter
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

[Development] [Qt Quick] Automatically restoring focus to last focused item

2016-05-05 Thread Mitch Curtis
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("