Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PyQt window which can set the QMainWindow as main widget and make central widget of QMainWindow transparent. Simply put, frame with no image.

License

NotificationsYou must be signed in to change notification settings

yjg30737/pyqt-transparent-centralwidget-window

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.

Requirements

PyQt5 >= 5.15

Setup

python -m pip install pyqt-transparent-centralwidget-window

Included Package

Example

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

image

Example by App

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp