my qt application is shifted upwards
Hello to all,
I designed a Qt application that uses tabs .The application is shifted upwards on the mobile so the tabs do not appear.There is plenty of free space at the buttom.If the application is positioned evenly the tabs will easily appear.
could someone please tell me how to correct that.
Re: my qt application is shifted upwards
Is your platform Symbian?
Re: my qt application is shifted upwards
Re: my qt application is shifted upwards
Are you using QWidget::showMaximized() to show your main widget?
Re: my qt application is shifted upwards
[QUOTE=kzomran;787575]Yes it is symbian[/QUOTE]
I guess it might be the problem of size of your widget. Checkout your mobile screen resolution and then try changing hight and width of your widget
[IMG]http://www.freeimagehosting.net/uploads/e4504dbcc6.png[/IMG]
Re: my qt application is shifted upwards
[QUOTE=rahul.kulshreshtha;787578]I guess it might be the problem of size of your widget. Checkout your mobile screen resolution and then try changing hight and width of your widget[/QUOTE]
You should avoid using exact size with your widgets. Phones have different screen sizes and so your approach will obviously fail.
Re: my qt application is shifted upwards
[QUOTE=divanov;787580]You should avoid using exact size with your widgets. Phones have different screen sizes and so your approach will obviously fail.[/QUOTE]
But when we add any widget then it automatically takes a default size 240, 320 or 320, 240 or 480, 640 or 640,480 etc. There is also option "Default Size" so if we choose any other size instead of "default size" then will it become fixed size? If we have already choosen some fixed size then is there any way to set it on variable size or "default size"
Re: my qt application is shifted upwards
[QUOTE=rahul.kulshreshtha;787583]But when we add any widget then it automatically takes a default size 240, 320 or 320, 240 or 480, 640 or 640,480 etc. There is also option "Default Size" so if we choose any other size instead of "default size" then will it become fixed size? If we have already choosen some fixed size then is there any way to set it on variable size or "default size"[/QUOTE]
This is bad design of Qt Creator. However, if you use QWidget::showMaximize(), gemetry property is overriden at runtime.
Re: my qt application is shifted upwards
Thank you to you all it was indeed a problem with changing form size but the catch here is that i have to change showMaximized to show like you said.