Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] What is causing the "Action" menu entry under Symbian?

[Solved] What is causing the "Action" menu entry under Symbian?

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 4 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harbaum
    wrote on last edited by
    #1

    Hi,

    my application just failed the OVI QA because it has a function less "Action" entry in its menu. The problem: I am not placing it there and no other platform shows it.

    Also even some of the qt demo applications have this function-less entry. E.g. the openstreetmap demo from qt mobility has this entry and it also does nothing in this.

    Some parts of my own application seem to automatically use this. E.g. a window containing a web view has a "select all" entry there which somehow happens implicit.

    How do i avoid having this "Action" menu entry created? And why does this happen at all (and thus causing my app to fail the QA).

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      Add this line to ctor of your MainWindow when you don't need this item (or remove centralWidget() if you use QWidget or QDialog):
      @
      centralWidget()->setContextMenuPolicy(Qt::NoContextMenu);
      @

      1 Reply Last reply
      0
      • H Offline
        H Offline
        harbaum
        wrote on last edited by
        #3

        [quote author="Denis Kormalev" date="1310996452"]
        @
        centralWidget()->setContextMenuPolicy(Qt::NoContextMenu);
        @[/quote]

        Works like a charm, thanks. Yet another #ifdef Q_OS_SYMBIAN in my application ...

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          You are welcome. Don't forget to mark thread as [solved].

          1 Reply Last reply
          0
          • H Offline
            H Offline
            harbaum
            wrote on last edited by
            #5

            I actually found several solutions in the net for this. But they all suggest to set Qt::NoContextMenu on all widgets the application owns and not just the centralWidget. Your solution is much nicer!

            P.S.: How do i mark a thread as solved? Just set the Tag?

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lgeyer
              wrote on last edited by
              #6

              Just edit your first post and prepend the title with [Solved]. This is currently no built-in way to mark threads as solved.

              1 Reply Last reply
              0
              • EddyE Offline
                EddyE Offline
                Eddy
                wrote on last edited by
                #7

                Please change your title also by adding [solved] in front of it.

                In the near future we will have better ways to mark a topic as solved.

                Qt Certified Specialist
                www.edalsolutions.be

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved