Qt.py icon indicating copy to clipboard operation
Qt.py copied to clipboard

missing: PySide2.QtWidgets.QHeaderView.setSectionsClickable

Open frueter opened this issue 6 years ago • 3 comments

Hi guys,

looks like this method which exists in PySide2 but not PySide is not handled in Qt.py at the moment: PySide2.QtWidgets.QHeaderView.setSectionsClickable(clickable)

frueter avatar Jun 17 '18 03:06 frueter

How would you like this member handled? Qt.py could either hide it from PySide2/PyQt5, or reimplement it for PySide/PyQt4.

mottosso avatar Jun 18 '18 05:06 mottosso

I believe that just in general, QHeaderView got changed in such a way that some of the methods got renamed into including the "Section" or "Sections" word, for example:

# Qt4
PyQt4.QHeaderView.setResizeMode
PySide.QtGui.QHeaderView.setClickable
PySide.QtGui.QHeaderView.setMovable

# Qt5
PyQt5.QtWidgets.QHeaderView.setSectionResizeMode
PySide2.QtWidgets.QHeaderView.setSectionsClickable
PySide2.QtWidgets.QHeaderView.setSectionsMovable

http://doc.qt.io/archives/qt-4.8/qheaderview.html http://doc.qt.io/qt-5/qheaderview.html

fredrikaverpil avatar Jun 18 '18 07:06 fredrikaverpil

Oh, I see, I will check that in my code, thanks!

On 18/06/18 7:18 PM, Fredrik Averpil wrote:

I believe that just in general, QHeaderView got changed in such a way that many of the methods got renamed into including the "sections" word, for example:

|# Qt4 PyQt4.QHeaderView.setResizeMode PySide.QtGui.QHeaderView.setClickable # Qt5 PyQt4.QtWidgets.QHeaderView.setSectionResizeMode PySide2.QtWidgets.QHeaderView.setSectionResizeMode |

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mottosso/Qt.py/issues/292#issuecomment-397963117, or mute the thread https://github.com/notifications/unsubscribe-auth/ABpUK6LLexN_9kP4PFEniHXYcHHH_6XTks5t91RDgaJpZM4Uqsej.

frueter avatar Jun 18 '18 07:06 frueter