PDA

View Full Version : Cursor for paint program



arjunasd
24th July 2007, 18:34
Hi all

I am designing a paint program in Qt4. I am using the QGraphics Framework. I have a list of buttons with custom shapes. I want to click on the button and then when I move to the screen, I would like to have a mouse pointer attached to that particualr custom shape. So, I can have a feel of where I am placing the shape on the screen.

So, the mouse pointer will have a shape attached to it. Any help pointing towards how to do it in Qt4 would be great.

Thanks
Arjun

marcel
24th July 2007, 19:02
Create your own predefined set of cursor and set them as needed.

Or, if you have the possibility to generate the cursor dynamically, depending on the shape you drag, even better.


Regards