[PySide] Workaround for BadCursor errors?

2016-12-04 Thread Kevin Cole
Hi, I'm on Ubuntu Linux Yakkety (16.10), PySide 1.2.2. I'm trying to set the cursor shape and then restore it to its default at a later time. Initially, I tried self.setCursor(Qt.BlankCursor) and self.setCursor(Qt.ArrowCursor) on the QGraphicsSvgItem. When that failed I went to:

Re: [PySide] I don't understand why I'm getting QPainter::begin: Widget painting can only begin as a result of a paintEvent - Stack Overflow

2016-12-01 Thread Kevin Cole
Thanks to ekhumoro (http://stackoverflow.com/users/984421/ekhumoro) for a solution to my recent dilemma. ___ PySide mailing list PySide@qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside

[PySide] I don't understand why I'm getting QPainter::begin: Widget painting can only begin as a result of a paintEvent - Stack Overflow

2016-12-01 Thread Kevin Cole
I'm stuck. I don't ever explicitly call paintEvent. I create a QPainter() instance inside of a paintEvent method and I get that error. Reduced code example at: http://stackoverflow.com/questions/40872318/i-dont-understand-why-im-getting-qpainterbegin-widget-painting-can-only-beg (I'm not really

[PySide] How do I hide a QGraphicsItem's "focus outline"?

2016-08-10 Thread Kevin Cole
When my QGraphicsItem receives a mousePressEvent, it draws a dotted-line rectangle around the item. Is there a way to suppress that? (I want the item selected / focused, but I don't want to see the dotted line. I'm actually working with a QGraphicSvgItem, but I don't think that will make a

Re: [PySide] SVG image follow mouse w/o drag and drop?

2016-08-09 Thread Kevin Cole
On Fri, Aug 5, 2016 at 11:13 AM, Purma Jukka wrote: > Hi, > > You don’t have to do anything in QGraphicsView, you can have mousePressEvent > in Image to toggle floating on and off. These events get QGraphicsMouseEvents > as parameters and these have the information you

[PySide] SVG image follow mouse w/o drag and drop?

2016-08-05 Thread Kevin Cole
Hi, I'm trying to understand graphics items, scenes, views, widgets, and not doing so well. I posted a question over on Stack Overflow, but probably should have tried here first. The question, copied below, is from