Move() public method

public Move ( int x, int y ) : void
x int
y int
return void
Beispiel #1
0
 public static void CenterWidgetOnScreen(QWidget widget)
 {
     QRect rect = QApplication.Desktop().AvailableGeometry(widget);
     widget.Move((rect.Width() / 2) - (widget.Rect.Width() / 2), (rect.Height() / 2) - (widget.Rect.Height() / 2));
 }