![]() Moves the cursor (hot spot) of the primary screen to the global screen position ( x, y). See also setPos(), QWidget::mapFromGlobal(), and QWidget::mapToGlobal(). Returns the position of the cursor (hot spot) of the screen in global screen coordinates. QPoint QCursor:: pos(const QScreen * screen) See also setPos(), QWidget::mapFromGlobal(), QWidget::mapToGlobal(), and QGuiApplication::primaryScreen(). Note: On platforms where there is no windowing system or cursors are not available, the returned position is based on the mouse move events generated via QWindowSystemInterface. If mouse events are generated via other means (e.g., via QWindowSystemInterface in a unit test), those fake mouse moves will not be reflected in the returned value. Note: The position is queried from the windowing system. You can call QWidget::mapFromGlobal() to translate it to widget coordinates. Returns the position of the cursor (hot spot) of the primary screen in global screen coordinates. This is only valid if the cursor is a pixmap cursor. To maintain compatibility with old code, you can explicitly differentiate between the by-pointer function and the by-value function: Previously, Qt provided a version of bitmap() which returned the bitmap by-pointer. Returns the cursor bitmap, or a null bitmap if it is one of the standard cursors. QBitmap QCursor:: bitmap( Qt::ReturnByValueConstant) const QCursor &QCursor:: operator=(const QCursor & c)Īssigns c to this cursor and returns a reference to this cursor. Move-assigns other to this QCursor instance. QCursor &QCursor:: operator=( QCursor & other) See Qt::CursorShape for a list of shapes.Ĭonstructs a cursor with the default arrow shape. QCursor:: QCursor( Qt::CursorShape shape)Ĭonstructs a cursor with the specified shape. See also QBitmap::QBitmap() and QBitmap::setMask(). Use the global Qt color Qt::color0 to draw 0-pixels and Qt::color1 to draw 1-pixels in the bitmaps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |