View Single Post
Old 01-01-2022, 09:42 PM   #24
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by jackie_w View Post
Code:
        QTableWidgetItem.__init__(self, text, QTableWidgetItem.UserType)
        self.setFlags(Qt.ItemIsSelectable|Qt.ItemIsEnabled)
Not tested, but a suggestion based on the problems I found porting my plugins... maybe you should use:
Code:
QTableWidgetItem.ItemType.UserType
https://doc.qt.io/qt-6/qtablewidgeti...#ItemType-enum

I noticed this change on setting flags, maybe this is the same case.
For example, on Qt 5, you could use this:
Code:
QApplication.processEvents(QtCore.QEventLoop.ExcludeUserInputEvents)
On Qt 6, you need to be more explicit:
Code:
QApplication.processEvents(QtCore.QEventLoop.ProcessEventsFlag.ExcludeUserInputEvents)
thiago.eec is offline   Reply With Quote