1

I'm learning Pyside6 and I have following method:

def mousePressEvent(self, event):
    if event.button() == Qt.LeftButton:
        self.offset = event.pos()
    else:
        super().mousePressEvent(event)

When I run my script, I get following warning:

DeprecationWarning: Function: 'pos() const' is marked as deprecated

Which method should I use to replace pos() ?

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Filippo Boido
  • 1,136
  • 7
  • 11

0 Answers0