Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. QMenu - submenu arrow removal
Forum Updated to NodeBB v4.3 + New Features

QMenu - submenu arrow removal

Scheduled Pinned Locked Moved Solved C++ Gurus
6 Posts 2 Posters 818 Views 2 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by Anonymous_Banned275
    #1

    The attached "'work in progress" creates / adds a new menu to existing one and adds submenu arrow.

    Then it adds the subsubmenu and also adds arrow.

    How can I delete the subsubmenu arrow?
    There is no additional " subsubsub menu"..

        for (int index = 0; index < list.size(); ++index)
        {
    #ifdef DEBUG_MDI
            text = Q_FUNC_INFO;
            text += "  @ line  ";
            text += QString::number(__LINE__);
            text += "  TASK   run for loop !!!!!!!!!!!!!!!";
            //text += QString::number(index);
            qDebug() << text;
    #endif
            tempmenu = new QMenu();
            tempmenu->setTitle(list[index] + " #" + QString::number(index));
            subMenu[index]  = m_ui->menuWindow_cpntrol;
            subAction[index] = subMenu[index]->addMenu(tempmenu);
            subAction[index]->setVisible(true);
            subAction[index]->setCheckable(true);
            qDebug() << list[index];
            //list_hcitool
            for (int index = 0; index < list_hcitool.size(); ++index)
            {
                text = "Add subsubmenu";
                //QMenu *tempmenu = new QMenu();
                tempmenu->setTitle(list_hcitool[index] + " #" + QString::number(index));
                subMenu[index]  = tempmenu; //m_ui->menuWindow_cpntrol;
                subAction[index] = subMenu[index]->addMenu(tempmenu);
                subAction[index]->setVisible(true);
                subAction[index]->setCheckable(true);
    
                qDebug() << list_hcitool[index];
            }
        }
    
    
    Axel SpoerlA 1 Reply Last reply
    0
    • A Anonymous_Banned275

      The attached "'work in progress" creates / adds a new menu to existing one and adds submenu arrow.

      Then it adds the subsubmenu and also adds arrow.

      How can I delete the subsubmenu arrow?
      There is no additional " subsubsub menu"..

          for (int index = 0; index < list.size(); ++index)
          {
      #ifdef DEBUG_MDI
              text = Q_FUNC_INFO;
              text += "  @ line  ";
              text += QString::number(__LINE__);
              text += "  TASK   run for loop !!!!!!!!!!!!!!!";
              //text += QString::number(index);
              qDebug() << text;
      #endif
              tempmenu = new QMenu();
              tempmenu->setTitle(list[index] + " #" + QString::number(index));
              subMenu[index]  = m_ui->menuWindow_cpntrol;
              subAction[index] = subMenu[index]->addMenu(tempmenu);
              subAction[index]->setVisible(true);
              subAction[index]->setCheckable(true);
              qDebug() << list[index];
              //list_hcitool
              for (int index = 0; index < list_hcitool.size(); ++index)
              {
                  text = "Add subsubmenu";
                  //QMenu *tempmenu = new QMenu();
                  tempmenu->setTitle(list_hcitool[index] + " #" + QString::number(index));
                  subMenu[index]  = tempmenu; //m_ui->menuWindow_cpntrol;
                  subAction[index] = subMenu[index]->addMenu(tempmenu);
                  subAction[index]->setVisible(true);
                  subAction[index]->setCheckable(true);
      
                  qDebug() << list_hcitool[index];
              }
          }
      
      
      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      @AnneRanch
      Can you please post a screenshot of the menu and indicate, which arrow should be deleted?

      Software Engineer
      The Qt Company, Oslo

      A 1 Reply Last reply
      1
      • Axel SpoerlA Axel Spoerl

        @AnneRanch
        Can you please post a screenshot of the menu and indicate, which arrow should be deleted?

        A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        @Axel-Spoerl You shlud know that it is impossible to screen shot menu
        ...and give me credit - if I could I would post screenshot.

        I did ask for code...

        Axel SpoerlA 1 Reply Last reply
        0
        • A Anonymous_Banned275

          @Axel-Spoerl You shlud know that it is impossible to screen shot menu
          ...and give me credit - if I could I would post screenshot.

          I did ask for code...

          Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on last edited by Axel Spoerl
          #4

          @AnneRanch said in QMenu - submenu arrow removal:

          @Axel-Spoerl You shlud know that it is impossible to screen shot menu

          Why do you say a menu can’t be screenshot? And what do you mean by “you shlud know”? Here is an example.

          10010c26-9e06-4147-bf31-44761480174f-image.png

          ...and give me credit

          Sure, just post the screenshot.

          Software Engineer
          The Qt Company, Oslo

          A 1 Reply Last reply
          2
          • Axel SpoerlA Axel Spoerl

            @AnneRanch said in QMenu - submenu arrow removal:

            @Axel-Spoerl You shlud know that it is impossible to screen shot menu

            Why do you say a menu can’t be screenshot? And what do you mean by “you shlud know”? Here is an example.

            10010c26-9e06-4147-bf31-44761480174f-image.png

            ...and give me credit

            Sure, just post the screenshot.

            A Offline
            A Offline
            Anonymous_Banned275
            wrote on last edited by
            #5

            @Axel-Spoerl My menus do not look like that... my OS is Linux - if that make a difference.

            Axel SpoerlA 1 Reply Last reply
            0
            • A Anonymous_Banned275

              @Axel-Spoerl My menus do not look like that... my OS is Linux - if that make a difference.

              Axel SpoerlA Offline
              Axel SpoerlA Offline
              Axel Spoerl
              Moderators
              wrote on last edited by
              #6

              @AnneRanch said in QMenu - submenu arrow removal:

              my OS is Linux

              Same here.
              Start spectacle, define a delay of e.g. 10s, choose a rectangle or select "Active Window".
              Then you have 10s to bring the menu up and keep it.
              But I assume you won't do it anyway, as usual.

              Software Engineer
              The Qt Company, Oslo

              1 Reply Last reply
              2
              • A Anonymous_Banned275 has marked this topic as solved on
              • Axel SpoerlA Axel Spoerl referenced this topic on

              • Login

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