QMenu - submenu arrow removal
-
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]; } }
-
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]; } }
@AnneRanch
Can you please post a screenshot of the menu and indicate, which arrow should be deleted? -
@AnneRanch
Can you please post a screenshot of the menu and indicate, which arrow should be deleted?@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-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...
@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.
...and give me credit
Sure, just post the screenshot.
-
@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.
...and give me credit
Sure, just post the screenshot.
@Axel-Spoerl My menus do not look like that... my OS is Linux - if that make a difference.
-
@Axel-Spoerl My menus do not look like that... my OS is Linux - if that make a difference.
@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. -
-
A Axel Spoerl referenced this topic on