Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Black and white cursor on qt5
Qt 6.11 is out! See what's new in the release blog

Black and white cursor on qt5

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.6k Views 2 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.
  • R Offline
    R Offline
    RazZziel
    wrote on last edited by
    #1

    I'm using this code to replace the cursor on my Qt application:

    QApplication a;
    a.setOverrideCursor(QCursor(QPixmap(":/pixmaps/circle.png")));
    

    On Qt 4.8.6, the cursor looks perfectly fine, preserving all the colors (original circle.png: http://i.imgur.com/HHzJJJA.png)
    On Qt 5.4.0 though, the cursor looks black and white (screenshot: http://i.imgur.com/cAf24Zv.png?1)

    Is this a bug in Qt5? Is there any way to workaround it?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      Which OS/Platform are you using?

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      R 1 Reply Last reply
      0
      • M mcosta

        Which OS/Platform are you using?

        R Offline
        R Offline
        RazZziel
        wrote on last edited by
        #3

        @mcosta Woops, forgot that bit

        I'm reproducing the problem in Archlinux/X11/KDE.

        I just checked on Ubuntu/X11/Gnome3, Ubuntu/X11/XFCE and Windows 7, and it works correctly there, so the problem must be specific to my setup.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jdtournier
          wrote on last edited by
          #4

          I'm having the same issue, also on Arch, Qt 5.4, on GNOME 3. Did you find any way around this...?

          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