Remove comment about QImage data references

Comment was out of date and no longer relevant, removing at @pijyoi's
suggestion.
This commit is contained in:
Ogi Moore 2021-06-01 22:50:02 -07:00
parent 9426ef0391
commit 45cf6fa232
1 changed files with 0 additions and 4 deletions

View File

@ -1423,10 +1423,6 @@ def ndarray_to_qimage(arr, fmt):
h, w = arr.shape[:2]
bytesPerLine = arr.strides[0]
qimg = QtGui.QImage(img_ptr, w, h, bytesPerLine, fmt)
# Note that the bindings that support ndarray directly already hold a reference
# to it. The manual reference below is only needed for those bindings that take
# in a raw pointer.
qimg.data = arr
return qimg