Results 1 to 3 of 3

Thread: How to load My own .cur file and set cursor

  1. #1
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Smile How to load My own .cur file and set cursor

    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/.

  2. #2
    Join Date
    Jan 2008
    Posts
    72
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: How to load My own .cur file and set cursor

    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..

  3. #3
    Join Date
    Nov 2016
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to load My own .cur file and set cursor

    Do you resolved this problem?

Similar Threads

  1. Can Qwebview load xml/xsl file?
    By richardander in forum Qt Programming
    Replies: 3
    Last Post: 26th August 2015, 22:36
  2. Replies: 15
    Last Post: 15th March 2011, 15:34
  3. Cannot load user32.dll from extern C file
    By been_1990 in forum Qt Programming
    Replies: 20
    Last Post: 22nd October 2010, 21:06
  4. How to load a .h or .cpp file in designer?
    By srohit24 in forum Qt Programming
    Replies: 2
    Last Post: 18th February 2009, 13:33
  5. Load ActiveX from file
    By Passer_dj in forum Qt Programming
    Replies: 1
    Last Post: 13th August 2007, 23:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.