I'm using setStyleSheet in my PySide2 application. If I add a QwtPlot I get the following exception:
Traceback (most recent call last):
File "C:\Users\user\project\venv\lib\site-packages\qwt\null_paintdevice.py", line 54, in drawRects
device.drawRects(rects, rectCount)
File "C:\Users\user\project\venv\lib\site-packages\qwt\plot_canvas.py", line 75, in drawRects
self.border.rectList += [rects[i]]
TypeError: 'PySide2.QtCore.QRect' object is not subscriptable
Traceback (most recent call last):
File "C:\Users\user\project\venv\lib\site-packages\qwt\null_paintdevice.py", line 54, in drawRects
device.drawRects(rects, rectCount)
File "C:\Users\user\project\venv\lib\site-packages\qwt\plot_canvas.py", line 75, in drawRects
self.border.rectList += [rects[i]]
TypeError: 'PySide2.QtCore.QRect' object is not subscriptable
Traceback (most recent call last):
File "C:\Users\user\project\venv\lib\site-packages\qwt\null_paintdevice.py", line 54, in drawRects
device.drawRects(rects, rectCount)
File "C:\Users\user\project\venv\lib\site-packages\qwt\plot_canvas.py", line 75, in drawRects
self.border.rectList += [rects[i]]
TypeError: 'PySide2.QtCore.QRect' object is not subscriptable
Traceback (most recent call last):
File "C:\Users\user\project\venv\lib\site-packages\qwt\null_paintdevice.py", line 54, in drawRects
device.drawRects(rects, rectCount)
File "C:\Users\user\project\venv\lib\site-packages\qwt\plot_canvas.py", line 75, in drawRects
self.border.rectList += [rects[i]]
TypeError: 'PySide2.QtCore.QRect' object is not subscriptable
Traceback (most recent call last):
File "C:\Users\user\project\venv\lib\site-packages\qwt\scale_widget.py", line 406, in paintEvent
painter.setClipRegion(event.region())
AttributeError: 'PySide2.QtCore.QRect' object has no attribute 'region'
Traceback (most recent call last):
File "C:\Users\user\project\venv\lib\site-packages\qwt\null_paintdevice.py", line 54, in drawRects
device.drawRects(rects, rectCount)
File "C:\Users\user\project\venv\lib\site-packages\qwt\plot_canvas.py", line 75, in drawRects
self.border.rectList += [rects[i]]
TypeError: 'PySide2.QtCore.QRect' object is not subscriptable
Hi,
I'm using
setStyleSheet
in my PySide2 application. If I add aQwtPlot
I get the following exception:Example code to reproduce the exception