QRect QScreenCursor:: boundingRect() const Member Function Documentation QScreenCursor:: QScreenCursor()Ĭonstructs a screen cursor QScreenCursor:: ~QScreenCursor()ĭestroys the screen cursor. The cursor's appearance can be controlled using the isVisible(), hide() and show() functions alternatively the QWSServer class provides some means of controlling the cursor's appearance using the QWSServer::isCursorVisible() and QWSServer::setCursorVisible() functions. In addition, you can find out whether the cursor is accelerated or not, using the isAccelerated() function, and the boundingRect() function returns the cursor's bounding rectangle.
Use the move() function to change the position of the cursor, and the set() function to alter its image or its hot spot. Typically, the cursor is constructed by the QScreen class or one of its descendants when it is initializing the device the QScreenCursor class should never be instantiated explicitly. Use the static instance() function to retrieve a pointer to the current screen cursor. Note that there may only be one screen cursor at a time. When deriving from the QScreenCursor class it is important to maintain the cursor's image, position, hot spot (the point within the cursor's image that will be the position of the associated mouse events) and visibility as well as informing whether it is hardware accelerated or not.
#CURSOR IMG SOFTWARE#
QScreenCursor implements a software cursor, but can be subclassed to support hardware cursors as well. Note that this class is non-portable, and that it is only available in Qt for Embedded Linux. The QScreenCursor class is a base class for screen cursors in Qt for Embedded Linux.