I am using pyqt to do this so how can I get the coordinates of a specific button.
For example:
button = self.ui.buttonGroup.button(buttonId)
I want to change this button’s coordinate according to its current coordinate. How can I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
All PyQt Widgets inherit the methods of their base class QWidget. If you check the documentation you will see that there is a great variety of methods and attributes related to the geometry of each widget. Copying from the previous link, these are the following ones:
In order to get a better understanding of what they do check them out interactively. I believe that geometry is the one you need.