Search code examples
qtpyqtqt-designer

Creating Window That Has No Close Button in Qt


Is there anyway to create window like below image , that has no close button in qt designer ?

sample image


Solution

  • To get a look like that you'd want to use the setWindowsFlags function, and pass in Qt::CustomizeWindowHint Qt::FramelessWindowHint, in C++ this would look like someUi->setWindowsFlags(Qt::CustomizeWindowHint | Qt::FramelessWindowHint) but I'm not sure for PyQt.