Hi, i have created a context menu. But when i am hovering mouse over its item, the color of item becomes same as color of background and nothing is displayed.
Please help.
Here is my code:
Code:
m_TestViewQTreeView->setContextMenuPolicy(Qt::ActionsContextMenu); menu->setStyleSheet("QMenu{background-color:red}"); connect(run,SIGNAL(triggered()),this,SLOT(Run_Click())); m_TestViewQTreeView->addAction(run);