Black and white cursor on qt5
-
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?
-
Which OS/Platform are you using?
-
@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.
-
I'm having the same issue, also on Arch, Qt 5.4, on GNOME 3. Did you find any way around this...?