On 03-06-2019 03:17, Alex X wrote:
int x, y,w, h; win.getPosition(x,y); auto pw = win.getAllocatedWidth(); auto ph = win.getAllocatedHeight(); win.getSize(w,h); win.setDefaultSize(400,400); win.setSizeRequest(300,300); win.resize(200,200); win.move(30,30);
None of this code seems to do anything anywhere I place it. (addOnShow, addOnHide, addOnRealize,
For me it seems to be working when i put move
and setDefaultSize
in
the constructor for the window. Only move doesn't the the window
decorations in to account when positioning the window.