- Notifications
You must be signed in to change notification settings - Fork0
PyQt window which can set the QMainWindow as main widget and make central widget of QMainWindow transparent. Simply put, frame with no image.
License
yjg30737/pyqt-transparent-centralwidget-window
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
PyQt window which can set the QMainWindow as main widget and make central widget of QMainWindow transparent. Simply put, frame with no image.
Frame will be removed when full screen is being activated.
This module directly inherits thepyqt-custom-titlebar-window.
PyQt5 >= 5.15
python -m pip install pyqt-transparent-centralwidget-window
- pyqt-custom-titlebar-window - Parent widget
Code Sample
fromPyQt5.QtWidgetsimportQMainWindow,QMenuBar,QMenu,QApplicationfrompyqt_transparent_centralwidget_windowimportTransparentCentralWidgetWindowclassMainWindow(QMainWindow):def__init__(self):super().__init__()self.__initUi()def__initUi(self):menuBar=QMenuBar()filemenu=QMenu('File',self)menuBar.addMenu(filemenu)self.setMenuBar(menuBar)if__name__=="__main__":importsysapp=QApplication(sys.argv)example=TransparentCentralWidgetWindow(MainWindow())example.setButtons()example.show()app.exec_()
Result
About
PyQt window which can set the QMainWindow as main widget and make central widget of QMainWindow transparent. Simply put, frame with no image.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
