Originally Posted by
high_flyer
How did you implement that?
Does you
QMenu object have a parent?
Yes, my QMenu object has as parent the main window (in its constructor):
pagePopupMenu_
= new QMenu(this);
pagePopupMenu_
->setBackgroundRole
(QPalette::ToolTipText);
pagePopupMenu_->addAction("");
pagePopupMenu_->setEnabled(false);
pagePopupMenu_ = new QMenu(this);
pagePopupMenu_->setBackgroundRole(QPalette::ToolTipText);
pagePopupMenu_->addAction("");
pagePopupMenu_->setEnabled(false);
To copy to clipboard, switch view to plain text mode
Then, the mouse is hidden with (in another method of the main window)
setCursor(Qt::BlankCursor);
setCursor(Qt::BlankCursor);
To copy to clipboard, switch view to plain text mode
Bookmarks