Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-4968

Calling QApplication::setNavigationMode(Qt::NavigationModeCursorAuto) removes the softkey options menu (Was: QCursor and softkey API...)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P1: Critical P1: Critical
    • 4.6.0
    • 4.6.0
    • None
    • None

      Report is copied from from: http://discussion.forum.nokia.com/forum/showpost.php?p=661761&postcount=17

      Problem is that when using virtual cursor in non-touchscreen phone the CBA is not drawn (even if menu is implemented) until screensaver is activated and dismissed. Application is started with showMaximized()

      --snip--
      I tried the demo and make my application work by adding only one syntax:

      Code:

      QApplication::setNavigationMode(Qt::NavigationModeCursorAuto)

      The good news is that the cursor is activated and it works.

      But it will make the option menu invisible. By removing that syntax, the option menu is back again.

      Here is the code I create option menu for the QMainWindow project.

      Code:

      QList<QAction *> webActions;

      menu_main = new QAction(tr("Main"), this);
      menu_back = new QAction(tr("Back"), this);

      //connect action to function
      ...
      webActions.append(menu_main);
      webActions.append(menu_back);

      menuBar()->addAction(webActions);
      menuBar()->setVisible(true);

      I will get the option menu back when the device goes to sleep and activate again. Any idea of how to solve this problem??

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            shkearns Shane Kearns
            e0150566 Janne Roine
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes