Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjg30737/pyqt-transparent-centralwidget-window
PyQt window which can set the QMainWindow as main widget and make central widget of QMainWindow transparent. Simply put, frame with no image.
https://github.com/yjg30737/pyqt-transparent-centralwidget-window
pyqt pyqt-examples pyqt-transparent-window pyqt-tutorial pyqt5 pyqt5-examples pyqt5-transparent-window pyqt5-tutorial python python3 python37 qmainwindow qmenubar qpaintevent qt qwidget
Last synced: about 2 months ago
JSON representation
PyQt window which can set the QMainWindow as main widget and make central widget of QMainWindow transparent. Simply put, frame with no image.
- Host: GitHub
- URL: https://github.com/yjg30737/pyqt-transparent-centralwidget-window
- Owner: yjg30737
- License: mit
- Created: 2022-01-26T23:43:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-15T01:05:18.000Z (over 2 years ago)
- Last Synced: 2024-04-30T05:45:09.403Z (10 months ago)
- Topics: pyqt, pyqt-examples, pyqt-transparent-window, pyqt-tutorial, pyqt5, pyqt5-examples, pyqt5-transparent-window, pyqt5-tutorial, python, python3, python37, qmainwindow, qmenubar, qpaintevent, qt, qwidget
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyqt-transparent-centralwidget-window
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 the pyqt-custom-titlebar-window.
## Requirements
PyQt5 >= 5.15## Setup
`python -m pip install pyqt-transparent-centralwidget-window`## Included Package
* pyqt-custom-titlebar-window - Parent widget## Example
Code Sample
```python
from PyQt5.QtWidgets import QMainWindow, QMenuBar, QMenu, QApplication
from pyqt_transparent_centralwidget_window import TransparentCentralWidgetWindowclass MainWindow(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__":
import sysapp = QApplication(sys.argv)
example = TransparentCentralWidgetWindow(MainWindow())
example.setButtons()
example.show()
app.exec_()
```Result

## Example by App
* pyqt-capturer