pijyoi
pijyoi
I have stripped down your example. The relevant point seems to be that you have chosen a non integer-sized pen width. In addition, your example also chooses to modify the...
>but I don't know what to change there to obtain sane paths when an infinite value is passed there. The comments from https://github.com/pyqtgraph/pyqtgraph/pull/2011#issuecomment-942358983 to https://github.com/pyqtgraph/pyqtgraph/pull/2011#issuecomment-942910785 talk about the undefined /...
It seems that using a `QOpenGLWindow` would restore some of the functionality that no longer works in `QOpenGLWidget`. refer to example in #2659
It seems that if you call `self.makeCurrent()` before calling `self.itemsAt()`, the item picking will work again.
Well, I wouldn't call it a workaround. What this means is that the previous code that didn't call `self.makeCurrent()` was wrong and was not meeting Qt's programming contract. It just...
The relevant documentation documenting the behaviour can be found here: https://doc.qt.io/qt-6/qopenglwidget.html "Once a QOpenGLWidget is added to a widget hierarchy, the contents of the top-level window is flushed via OpenGL-based...
As suggested by https://github.com/pyqtgraph/pyqtgraph/issues/2656#issuecomment-1478626632, Qt's recommendation for this situation is to wrap a `QOpenGLWindow` into a `QWidget` container, so that the OpenGL portion gets its own native window. ```python from...
I do something like the below. The relevant lines are the ones marked with "AAA" and "BBB". ```python import pyqtgraph as pg from pyqtgraph.Qt import QtCore import numpy as np...
```python import pyqtgraph as pg from pyqtgraph.Qt import QtCore, QtGui, QtWidgets app = pg.mkQApp() plt = pg.PlotWidget() plt.show() plt.plot([1, 2, 3], [10, 2, 1]) text = QtWidgets.QGraphicsSimpleTextItem("testing") text.setBrush(QtCore.Qt.GlobalColor.white) y =...
Could you provide a scenario where plotting scaled text would be useful? The following snippet surely isn't one of them. ```python import pyqtgraph as pg from pyqtgraph.Qt import QtCore, QtGui,...