hi there,
I create a window with flag
FramelessWindowHint Code:
FramelessWindowHint
FramelessWindowHint
To copy to clipboard, switch view to plain text mode
, and customized the
the titlebar, but when i pressed the maximim button, the window corvered the whole screen and the task bar.
I have tried the below code to. but you know, after setGeometry, the window state will not be
WindowMaximized any more.
Is the any other way for my question ? thanks .
if ( winCurState != Qt::WindowState::WindowMaximized )
{
m_parent->showMaximized();
m_parent->setGeometry(qApp->desktop()->availableGeometry());
m_parent->updateGeometry();
m_maxButton->setIcon( m_pixRestore );
}
else
{
m_parent->showNormal();
m_maxButton->setIcon( m_pixMax );
}
if ( winCurState != Qt::WindowState::WindowMaximized )
{
m_parent->showMaximized();
m_parent->setGeometry(qApp->desktop()->availableGeometry());
m_parent->updateGeometry();
m_maxButton->setIcon( m_pixRestore );
}
else
{
m_parent->showNormal();
m_maxButton->setIcon( m_pixMax );
}
To copy to clipboard, switch view to plain text mode
Bookmarks