PDA

View Full Version : How to load My own .cur file and set cursor



AKB48
26th March 2012, 14:33
I have a cursor file named mouse.cur in current dir,I don't know how to load it ..
I view the QCursor's constructor, It seems that can't be load from file.

thx for any answer/.

MrShahi
26th March 2012, 15:02
Yes, QCursor load cursor shape from pixmap only , It does not accept .cur file. To load your file you need to create a QPixmap object from that image file and pass it to constructor of QCursor..

tynencecat
13th December 2016, 01:49
Do you resolved this problem?