PySide6, Python 3.9, TypeError when creating GraphicsObject's

272 views
Skip to first unread message

David Forsyth

unread,
Dec 17, 2021, 1:55:39 PM12/17/21
to pyqtgraph
Whenever I'm creating any child class of pyqtgraph's GraphicsObject, I get:
TypeError: native Qt signal is not callable
at line 24 in GraphicsObject.py. I can put that in a try,except block and pass the error and things seem to work:

def itemChange(self, change, value):
    ret = super().itemChange(change, value)
    if change in [self.GraphicsItemChange.ItemParentHasChanged,           
        self.GraphicsItemChange.ItemSceneHasChanged]:
        # DSF changes I added the Try-Except block
        try:
            self.parentChanged()
        except TypeError:
            print("error in pyqtgraph.GraphicsObject.py in DSF added try except block")
        pass

Any thoughts on what I am doing wrong?

Thanks, Dave.

Patrick

unread,
Dec 19, 2021, 3:28:05 AM12/19/21
to pyqtgraph
Hi,

Are you using PySide6, specifically PySide6.2.2 with the stable pip installed version of pyqtgraph? There's something funny going on with the new version of PySide6. Try either using the git version of pyqtgraph, or pip install pyside6==6.2.1  and see how you go.

Patrick

David Forsyth

unread,
Dec 29, 2021, 8:16:11 AM12/29/21
to pyqtgraph
I was on PySide6.2.2.1, going back to 6.2.1 solved this.

Dave.

David Forsyth

unread,
Dec 29, 2021, 10:36:28 AM12/29/21
to pyqtgraph
There were also scaling issues with the plotting of ROI handles (they got HUGE). Resolved by going back to pyside6.2.1

Ognyan Moore

unread,
Dec 29, 2021, 10:55:30 AM12/29/21
to pyqt...@googlegroups.com
This is the first time I'm hearing of this issue.  If you have the time, could you try to replicate this with pyqtgraph installed from the master branch (and pyside6 6.2.2).

--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/279ec257-eba5-4d22-bf04-c458be684ef5n%40googlegroups.com.

David Forsyth

unread,
Dec 29, 2021, 11:13:51 AM12/29/21
to pyqtgraph
Took me a while to figure out the massive trapezoids were the handles! No code change, only pyside6.2.1 to pyside6.2.2.1

Dave.

roi_handles_6_2_1.pngroi_handles_6_2_2_1.png

Ognyan Moore

unread,
Dec 29, 2021, 11:33:11 AM12/29/21
to pyqt...@googlegroups.com
Hi Dave,

Can you install pyqtgraph from the current master branch and see if the issue is persistent?

pip install git+https://github.com/pyqtgraph/pyqtgraph.git@master

 

David Forsyth

unread,
Dec 29, 2021, 11:37:51 AM12/29/21
to pyqtgraph
Good news, installing from current master resolved both the issue of the graphicsObject and the ROI handle plotting.

Thanks, Dave.

Ognyan Moore

unread,
Dec 29, 2021, 11:44:41 AM12/29/21
to pyqt...@googlegroups.com
Thanks so much for testing! I would have done a release earlier but the holidays have a tendency to get in the way of this sort of thing.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages