All,
I think PyQt had a .Centre() method that would center a window, but I can't find its counterpart in C++. Anyone?
David.
All,
I think PyQt had a .Centre() method that would center a window, but I can't find its counterpart in C++. Anyone?
David.
You have to calculate by your own:Qt Code:
widget->move(rect.center() - widget->rect().center());To copy to clipboard, switch view to plain text mode
Bookmarks