Re: [Interest] QGraphicsItem and mouse events

2013-11-02 Thread Igor Mironchik
> On Saturday 02 November 2013 23:21:24 Igor Mironchik wrote: >> By default QGraphicsItem must be movable by mouse but he doesn't... > What does the Qt documentation state about the default value for > QGraphicsItem::flags()? Ops, That is what I was looking for... Sorry. -- Best Regards, Igor M

Re: [Interest] QGraphicsItem and mouse events

2013-11-02 Thread Christoph Feck
On Saturday 02 November 2013 23:21:24 Igor Mironchik wrote: > By default QGraphicsItem must be movable by mouse but he doesn't... What does the Qt documentation state about the default value for QGraphicsItem::flags()? -- Christoph Feck http://kdepepo.wordpress.com/ KDE Quality Team ___

Re: [Interest] QGraphicsItem and mouse events

2013-11-02 Thread Igor Mironchik
In the attachement small example that shows the problem. By default QGraphicsItem must be movable by mouse but he doesn't... Hi. I've implemented QGraphicsItem and want to receive mouseReleaseEvent. I've reimplemented mouseReleaseEvent virtual method but he doesn't invoked. Why? I've che

[Interest] QGraphicsItem and mouse events

2013-11-02 Thread Igor Mironchik
Hi. I've implemented QGraphicsItem and want to receive mouseReleaseEvent. I've reimplemented mouseReleaseEvent virtual method but he doesn't invoked. Why? I've checked this method with QGraphicsScene and there he works but not in QGraphicsItem. Why again? -- Best Regards, Igor Mironchik. _

Re: [Interest] Pointers as Q_PPOPERTY

2013-11-02 Thread Sandro Andrade
On Mon, Oct 28, 2013 at 8:13 AM, Stephen Kelly wrote: > On Monday, October 07, 2013 09:55:53 Sandro Andrade wrote: >> On Wed, Oct 2, 2013 at 11:18 AM, Stephen Kelly > wrote: >> > On Wednesday, October 02, 2013 19:02:54 Дмитрий Козлов wrote: >> >> Q_PROPERTY(Hull * hull READ hull) >> >> Q_PROPERTY

Re: [Interest] QGraphicsScene and absolute postion of items

2013-11-02 Thread Igor Mironchik
Hi. > I've found the problem. The problem is that taht coordinate system > started at center of QGraphicsScene. > > Then my question is how to set coordinates system to start at top-left > corner? Well, I've found the solution. It's QGraphicsView::setAlignment( Qt::AlignLeft | Qt::AlignTop ).

Re: [Interest] QGraphicsScene and absolute postion of items

2013-11-02 Thread Igor Mironchik
I've found the problem. The problem is that taht coordinate system started at center of QGraphicsScene. Then my question is how to set coordinates system to start at top-left corner? Thanks. > Hi. > > I'm playing with QGraphicsScene and faced with the problem. > > I've added three items to the

[Interest] QGraphicsScene and absolute postion of items

2013-11-02 Thread Igor Mironchik
Hi. I'm playing with QGraphicsScene and faced with the problem. I've added three items to the scene for the given postions. All is ok. But when I've resized window with view and scene the items have changed their absolute positions and justified with center of scene. Absolute positions have re

Re: [Interest] MouseArea... onClicked working. onPressed or onReleased not

2013-11-02 Thread Guido Seifert
Never mind. I found out. I think it is a bit confusing, that there is a difference in handling overlapping MouseAreas for onClicked, onPressAndHold, onWheel on the one hand and onPressed and onReleased on the other hand. But I am sure, there is a totally sane explanation behind it. :-) Guido O

[Interest] MouseArea... onClicked working. onPressed or onReleased not

2013-11-02 Thread Guido Seifert
Hi, does anyone know a possible reason, why I get in one and the same qml MouseArea onClicked and onWheel signals, but no onPressed or onReleased signals? Guido ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listin

[Interest] QSurfaceFormat and swapInterval

2013-11-02 Thread Peter Koek
QGLFormat exposes a swapInterval property which can be used to enable vertical synchronization (v-sync) to avoid screen tearing.Why does QSurfaceFormat not expose this property? Currently, there is no direct way to enable v-sync with QWindow, while QGLWidget did not have this problem.What is the