Results 1 to 3 of 3

Thread: How do I add a + next to Qt::ArrowCursor

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default How do I add a + next to Qt::ArrowCursor

    I've been adding a few features that I need to QGraphicsView among others sketchup like selection that includes the ctrl/shift for selection modification. The selection part wasn't that hard, and I think I got it working without sacrificing that much.

    Anyway, I cant figure out how to add that plus, minus or plus&minus without disturbing the current cursor image. Changing to my crappy ArrowCursor bitmap/pixmap with the extra images will probably look different that the default ArrowCursor, and I want to avoid that.

    What I would like is a pixmap() function in QCursor that can grab the pixmap/bitmap from. The QCursor has such functions, but I'm guessing that these are mere getters from the constructor arguments.

    Currently, the best idea that I can come up with is that I make my cursor radically different from the main ArrowCursor and keep it overridden within my view. Looking closely at the sketchup-video they have a black cursor in the viewport but a white in the menu..

    Any ideas?

    I've been using the latest version(Qt 4.5) with QtCreator on windows xp if that matters
    Last edited by sirGustav; 1st April 2009 at 22:45.

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
  •  
Qt is a trademark of The Qt Company.