[Interest] ApplicationWindow is not an Item?

J-P Nurmi jpnurmi at qt.io
Thu Jun 16 18:08:04 CEST 2016


>> On 16 Jun 2016, at 17:42, Jason H <jhihn at gmx.com> wrote:
>> 
>> I tried using Keys on an application window. I got an error that it is not an item. While it's trivial to throw an item in, why isn't it an Item?
> 
> Because QML Window is not an Item. I'd like the Keys attached property work regardless, though. It should just forward it to the content item of the window. This has been discussed several times, but I don't remember why it wasn't done yet.

A good point in the comments of https://bugreports.qt.io/browse/QTBUG-28957 that you're probably better off with the Shortcut QML type.

--
J-P Nurmi


More information about the Interest mailing list