[Qt-interest] Testing QGraphicsView
Hildebrando Trannin
htrannin at gmail.com
Tue Dec 14 12:10:00 CET 2010
It is not clicking anything.
I just created an empty view and I was trying to use QTestEventList and/or
QApplication::sendEvent to send mouse press events.
How can I set the view to accept this kind of click?
Hildebrando
On Mon, Dec 13, 2010 at 5:48 PM, Brian McKinnon <bpmckinnon.qt at gmail.com>wrote:
> Are actually clicking anything? Or is your view overloaded to always
> accept mouse press events? I believe the default behaviour of the view is
> to reject mouse clicks that don't occur on an item... but I could be wrong.
>
> On Mon, Dec 13, 2010 at 3:25 PM, Hildebrando Trannin <htrannin at gmail.com>wrote:
>
>> Hello,
>>
>> I'd like to test a QGraphicsView object using QTestEventList, but when I
>> simulate a mouse press event I received this warning: "Mouse event
>> "MousePress" not accepted by receiving widget".
>>
>> I tried to directed use sendEvent from QApplication, but it didn't work.
>>
>> How can I test QGraphicsView?
>>
>> Thanks,
>> Hildebrando
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101214/dced5e0b/attachment.html
More information about the Qt-interest-old
mailing list