hi there,
I create a window with flag
FramelessWindowHint Code:
  1. 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 .
Qt Code:
  1. if ( winCurState != Qt::WindowState::WindowMaximized )
  2. {
  3. m_parent->showMaximized();
  4. m_parent->setGeometry(qApp->desktop()->availableGeometry());
  5. m_parent->updateGeometry();
  6. m_maxButton->setIcon( m_pixRestore );
  7. }
  8. else
  9. {
  10. m_parent->showNormal();
  11. m_maxButton->setIcon( m_pixMax );
  12. }
To copy to clipboard, switch view to plain text mode