I contacted Trolltech and they gave me this gem:
void CINQtMainWindow
::changeEvent(QEvent * e
) {
if (e
->type
() == QEvent::WindowStateChange) {
if (isMinimized() == true)
{
QTimer::singleShot(0,
this,
SLOT(hide
()));
m_oSysTray.ShowIcon();
e->ignore();
return;
}
}
}
void CINQtMainWindow::changeEvent(QEvent * e )
{
if (e->type() == QEvent::WindowStateChange)
{
if (isMinimized() == true)
{
QTimer::singleShot(0, this, SLOT(hide()));
m_oSysTray.ShowIcon();
e->ignore();
return;
}
}
QMainWindow::changeEvent( e );
}
To copy to clipboard, switch view to plain text mode
QTimer::singleShot(0, this, SLOT(hide())); instead of hide()
Bookmarks