Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: Function: 'globalPos() const' #6

Open
pramach opened this issue Oct 26, 2021 · 1 comment
Open

DeprecationWarning: Function: 'globalPos() const' #6

pramach opened this issue Oct 26, 2021 · 1 comment

Comments

@pramach
Copy link

pramach commented Oct 26, 2021

On App start I get warning
DeprecationWarning: Function: 'globalPos() const' is marked as deprecated, please check the documentation for more information

Just for info

Python 3.9
PySide 6.2.0

@fjl-gj
Copy link

fjl-gj commented Jan 12, 2022

origin main.py code

def mousePressEvent(self, event):
        # SET DRAG POS WINDOW
        self.dragPos = event.globalPos()

Try adjusting the following main.py code

def mousePressEvent (self, event):
    # SET DRAG POS WINDOW
    # self.dragPos = event.globalPos()
    self.dragPos = event.globalPosition().toPoint()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants