PDA

View Full Version : System title bar height



andynugent
16th October 2006, 16:57
I'm writing an app using Qtopia 2.1.0

I wish the app to run fullscreen except for the system title bar (showing battery / signal strength, etc). That is, I don't want any system soft keys to be displayed.

I can achieve this with the following code:



int nTitleBarHeight = 26; // TODO : Get this dynamically
clearWFlags(Qt::WStyle_Mask);
setWFlags(Qt::WType_TopLevel | Qt::WStyle_NoBorder | Qt::WStyle_Customize);
showFullScreen();
setGeometry(0, nTitleBarHeight, 240, 480-nTitleBarHeight); // Screen is 240x480


But how do I find the height of the system title bar dynamically?