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:

Qt Code:
  1. int nTitleBarHeight = 26; // TODO : Get this dynamically
  2. clearWFlags(Qt::WStyle_Mask);
  3. setWFlags(Qt::WType_TopLevel | Qt::WStyle_NoBorder | Qt::WStyle_Customize);
  4. showFullScreen();
  5. setGeometry(0, nTitleBarHeight, 240, 480-nTitleBarHeight); // Screen is 240x480
To copy to clipboard, switch view to plain text mode 

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