View Full Version : System title bar height

16th October 2006, 15: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
setWFlags(Qt::WType_TopLevel | Qt::WStyle_NoBorder | Qt::WStyle_Customize);
setGeometry(0, nTitleBarHeight, 240, 480-nTitleBarHeight); // Screen is 240x480

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