Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.25 KB

README.md

File metadata and controls

46 lines (28 loc) · 1.25 KB

pyqt-corner-widget-example

PyQt example which shows widget at the bottom-right corner of window (using event/geometry, no QGridLayout involved)

This is just for example.

Requirements

  • PyQt5 >= 5.8

Setup

python -m pip install git+https://github.com/yjg30737/pyqt-corner-widget-example.git --upgrade

Example

from PyQt5.QtWidgets import QApplication
from pyqt_corner_widget_example import MainWindow

if __name__ == "__main__":
    import sys

    app = QApplication(sys.argv)
    w = MainWindow()
    w.show()
    app.exec_()

Result

Normal

image

Maximize

image

After resize

image

This also works when activating/deactivating the window, which means corner widget is completely synchronized with the main window.

See Also