Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Adding "checkable " in Qt QMenu / QAction using C++ partially fails

Adding "checkable " in Qt QMenu / QAction using C++ partially fails

Scheduled Pinned Locked Moved C / C++ / MFC
c++
5 Posts 3 Posters 27 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    SOLVED EDIT voluntarily removed irrelevant code.

    L D J 3 Replies Last reply
    0
    • L Lost User

      SOLVED EDIT voluntarily removed irrelevant code.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Sorry, but this has nothing to do with C++. Whether you like it or not this is a Qt issue, and the Qt forums are the best place for the question.

      1 Reply Last reply
      0
      • L Lost User

        SOLVED EDIT voluntarily removed irrelevant code.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Quote:

        I am using QtCreator and if you are NOT familiar with Qt - please do not tell me to post it in Qt forum. I have DONE that a getting nowhere fast... I am getting the usual "you do not know what you are doing" or RTFM.

        The problem with your statement is that you are assuming everyone who uses C++ is also using Qt, which is simply not the case. By not using the Qt forums, you are severely restricting the number of Qt users who can see your question, and you're waiting on the fewer people with Qt experience around here to stumble on your question. Not everyone here visits the site every single day.

        Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak

        1 Reply Last reply
        0
        • L Lost User

          SOLVED EDIT voluntarily removed irrelevant code.

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          Googling with the following gives results that look like they have examples of menu creation.

          "QAction" example sub menu

          Other than that given multiple questions that you have about it. You might consider the following 1. Use something else 2. The source code is available. So you can dive into that to find solutions to your problems. I will note that I do in fact use 2 quite often. Both for Java VM (and libraries) and C# Microsoft libraries. So it is not a flippant answer. Documentation is almost never sufficient for all cases. Looking at the source code provides solutions. (Or at least in a couple of cases proved that my current solution would not work.)

          L 1 Reply Last reply
          0
          • J jschell

            Googling with the following gives results that look like they have examples of menu creation.

            "QAction" example sub menu

            Other than that given multiple questions that you have about it. You might consider the following 1. Use something else 2. The source code is available. So you can dive into that to find solutions to your problems. I will note that I do in fact use 2 quite often. Both for Java VM (and libraries) and C# Microsoft libraries. So it is not a flippant answer. Documentation is almost never sufficient for all cases. Looking at the source code provides solutions. (Or at least in a couple of cases proved that my current solution would not work.)

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            The issue was /is the relations between QMenu and QAction...I did solved this by looking at many similar examples. But as told many times - posting it here was my mistake, lesson learn. Thanks.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups