O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Object picker

Object picker is a component that allows an entity to interact with the mouse pointer. This component does not interact with the previously described input API directly. For example, you don't need to provide a mouse device for it. All you need to do is to attach the ObjectPicker component to an entity that also contains a mesh. The signals from ObjectPicker will notify you about input events related to this entity:

Signal Explanation
clicked(pick) The object was clicked.
pressed(pick) The mouse button was pressed over the object.
released(pick) The mouse button was released after pressed(pick) was triggered.
moved(pick) The mouse pointer was moved.
entered() The mouse pointer entered the object's area.
exited() ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required