[Interest] ApplicationWindow is not an Item?

Sze Howe Koh szehowe.koh at gmail.com
Fri Jun 17 02:39:59 CEST 2016


On 16 June 2016 at 23:41, 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?

That's a design concept I wondered about too, but I think I've found
the answer: Because...

* An Item is something that can be painted and displayed inside a
window/viewport.
* An Item is a painting, but a Window is not; rather, it is a frame in
which paintings are inserted.
* Qt draws Items itself, while it relies on the operating system to
draw Windows.


Regards,
Sze-Howe



More information about the Interest mailing list