Hello everyone! I'm currently programming a tool to design CD covers. The user can drag all kinds of items onto a QGraphicsScene like images, text, drawings, etc... Images for example are subclassed from QGraphicsPixmapItem, so I can get the most basic functionality very easily. The user can perform very basic operations like moving, resizing and rotating with the items.

So far so good. Now, I'd like the possibility to add items to layouts (horizontal/vertical) similar to the layouts of Qt. I thought I could inherit from QGraphicsLayoutItem and reimplement the important functions. Then I could use the items in a QGraphicsLayout. But I've read all over the net that there are problems with this approach and that it can sometimes crash!

Is this true? If it is, what would be the best way to accomplish this?

Thanks in advance,
Jeroen