Em Sexta-feira 20 Novembro 2009, às 20:12:19, ext Leo Spalteholz escreveu: > On , Michael Sué <[email protected]> wrote: > > Hi, > > when I move a graphics item (rectangle polygon or ellipse) in my > > application > > > > by dragging it with the mouse the virtual function "QVariant > > > > itemChange(GraphicsItemChange change, const QVariant &value)" is no > > longer > > > > called with the parameters ItemPositionChange and ItemPositionHasChanged. > > These notifications are no longer delivered by default. > You need to enable the flag QGraphicsItem::ItemSendsGeometryChanges > and you will get the old behaviour back. > I reported the bug here http://bugreports.qt.nokia.com/browse/QTBUG-5497 > > I think Qt needs to highlight these changes in the release notes. > Something like "Important behaviour changes in Qt that will break your > applications in subtle ways, so check it out". Not exactly fun to > think that defaults in behaviour like this can change between minor > releases.
You mean like the "Important Behaviour Changes" section of the changelog,
which has:
d) QGraphicsItem no longer calls itemChange() for position and
transformation changes. If you want to receive notifications for changes
to the item's position and transformation, you can set the flag
QGraphicsItem::ItemSendsGeometryChanges (which is enabled by default by
QGraphicsWidget and QGraphicsProxyWidget).
http://qt.gitorious.org/qt/qt/blobs/4.6/dist/changes-4.6.0
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Product Manager - Nokia, Qt Development Frameworks
Sandakerveien 116, NO-0402 Oslo, Norway
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
