Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Custom Cursor
Forum Updated to NodeBB v4.3 + New Features

Custom Cursor

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    levelxxl
    wrote on last edited by
    #1

    Hi everyone,

    Is there a simple way to change the mouse cursor to a custom shape, within QML?

    I have only found how to set the cursor shape to one of the predefined Qt::CursorShape shapes.

    Thanks

    p3c0P 1 Reply Last reply
    0
    • L levelxxl

      Hi everyone,

      Is there a simple way to change the mouse cursor to a custom shape, within QML?

      I have only found how to set the cursor shape to one of the predefined Qt::CursorShape shapes.

      Thanks

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi @levelxxl,
      AFAIK you will need to change it from C++ side.

      QGuiApplication app(argc, argv);
      app.setOverrideCursor(QCursor(QPixmap("mycursor.png")));
      

      157

      1 Reply Last reply
      1
      • L Offline
        L Offline
        levelxxl
        wrote on last edited by
        #3

        Thanks, I was afraid of that.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved