Creates a class inherited from
QDialogin one of its implementation methods creates aQPushButton * push= new QPushButton(this);buttonQPushButton * push= new QPushButton(this);I want to make it so that it is in the center of the parent widget. By default, the button is created in the upper left corner and has x and y which are zero.
How to make the setGeometry button so that the button is in the center of the parent widget? and then the pens are not set correctly.
