[Qt-interest] QGraphicsScene :: mouseMove events are not received unless a text item is added to Scene

AK qtbond007 at gmail.com
Thu Jul 14 08:09:47 CEST 2011


Qt 4.7.1 requires QGraphicsView::setMouseTracking(true) to receive the
mouseEvents. In 4.5.3 QGraphicsView::setInteractive(true) was enough.

On Wed, Jul 13, 2011 at 6:30 PM, AK <qtbond007 at gmail.com> wrote:

> Hello,
>
> This is kind of weird bug I have seen in Qt 4.7.1 , VS2005, Windows 7.
> This can be reproduced in diagramscene example.
> ($(QTDIR)\examples\graphicsview\diagramscene). Put a qDebug() message in
> DiagramScene::mouseMoveEvent.
> Unless a text is added one doesnt receive the spontaneous mouseMoveEvent.
>
> AKS
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110714/032301e5/attachment-0001.html 


More information about the Qt-interest-old mailing list