Thanks....
For future reference for others this is what I did.
I add this function to my app...
{
if(cbToolTips->isChecked() == true)
{
if (event
->type
() == QEvent::ToolTip) {
return true;
}
else
{
}
}
else
{
}
}
bool MainWin::eventFilter(QObject *obj, QEvent *event)
{
if(cbToolTips->isChecked() == true)
{
if (event->type() == QEvent::ToolTip)
{
return true;
}
else
{
return QMainWindow::eventFilter(obj, event);
}
}
else
{
return QMainWindow::eventFilter(obj, event);
}
}
To copy to clipboard, switch view to plain text mode
Note I am using a CheckBox to determine if tool tips need to be disabled.
In the header file I add this..
protected:
protected:
bool eventFilter(QObject *obj, QEvent *ev);
To copy to clipboard, switch view to plain text mode
Then I install the filter like this
qApp->installEventFilter(this);
qApp->installEventFilter(this);
To copy to clipboard, switch view to plain text mode
I hope this helps others.
Bookmarks