aremar
24th November 2010, 16:39
Hi,
I'm trying make a small paint program in Qt. I have the a problem with making a effect to show when my item is selected. Because I dont want to implement an effect for all of my items (cercle, rectangle ...), also how they must resize...
I decided to inherite QGraphics item for my class MyGraphicsItem. In this class I want to create a member QGraphicsEffect and a one or two methods for that how to show , where to show.... Than i want to inherite MyGraphicsItem and to use it with different shapes. The problem is that I'm not sure what to do with paint and boundingRect in MyGraphicsItem. But I want to use them in the methods.
I'm sorry for my poor english.
P.S. Also open for other solutions.
I'm trying make a small paint program in Qt. I have the a problem with making a effect to show when my item is selected. Because I dont want to implement an effect for all of my items (cercle, rectangle ...), also how they must resize...
I decided to inherite QGraphics item for my class MyGraphicsItem. In this class I want to create a member QGraphicsEffect and a one or two methods for that how to show , where to show.... Than i want to inherite MyGraphicsItem and to use it with different shapes. The problem is that I'm not sure what to do with paint and boundingRect in MyGraphicsItem. But I want to use them in the methods.
I'm sorry for my poor english.
P.S. Also open for other solutions.