[maemo-developers] [maemo-developers] Launching Qt application in FullScreen mode

From: Benno Senoner gnsbenno at lineakom.com
Date: Mon Feb 27 12:21:30 EET 2006
Hi all,
I got Qt working on the Nokia 770 (ran the examples/widgets  example),
but I would like to start the application in fullscreen mode, without 
the top and lateral desktop toolbars.

How do gtk based apps achieve this ?

this seems what the VNC client for maemo does:
-----------
static void callback_fullscreen(GtkBin *action, gpointer data)
{
  MainView *mainview = (MainView *) data;
  mainview->fullscreen = !mainview->fullscreen;
  gboolean bShowToolbar = TRUE;
  hildon_appview_set_fullscreen(mainview->data->main_view, 
mainview->fullscreen);
  // handle toolbar
  if ((mainview->fullscreen) && (!mainview->bShowFullscreenToolbar))
    bShowToolbar = FALSE;
  else if ((!mainview->fullscreen) && (!mainview->bShowNormalToolbar))
    bShowToolbar = FALSE;

  if (bShowToolbar)
    gtk_widget_show_all(mainview->toolbar);
  else
    gtk_widget_hide_all(mainview->toolbar);
}
---------

Do you think there is a way for the Qt app to call

hildon_appview_set_fullscreen()

or is this a gtk specific thing ?
any ideas ?

I guess that opening a Qt top level windows without decoration is not 
enough to go fullscreen.

thanks in advance for your hints,

cheers,
Benno


More information about the maemo-developers mailing list