showMaximized doesnt show the canvas
Hi...
I have created a MainWindow and on that i have created a canvas and canvasitems..
Now in my main class before setupUi(form) i call the function form->showMaximized().
This solves my purpose of maximizing the screen but then the canvas is not shown.. when i remove the function, the canvas is seen..
why is it so happening.. like i am not able to open the mainwindow in either full screen or maximized format.. Can u plz help in this..
Thanking you,
with regards,
Kapil
Re: showMaximized doesnt show the canvas
Try first do setupUI :rolleyes:
Re: showMaximized doesnt show the canvas
its all the same result.. :) i have tried the entire set od permutations and combinations..:D
Re: showMaximized doesnt show the canvas
Re: showMaximized doesnt show the canvas
You are probably initialising the canvas view after calling showMaximized(). If so, you have to explicitely call show() on the canvas view or move its initialisation before the showMaximized() call.
Re: showMaximized doesnt show the canvas
Quote:
Originally Posted by wysota
You are probably initialising the canvas view after calling showMaximized(). If so, you have to explicitely call show() on the canvas view or move its initialisation before the showMaximized() call.
yaa this was what was happening.. now its maximized with the canvas... but why is it so that it comes on the windows bar at the bottom and when i click on it, it gets maximized.. why doesnt it pop-up and comes on top of all the windows that are open....
i just haev included this line before show() and after intializinf the canvas form->showMaximized()
Thanking you,
Kapil