Skip to content

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

License

Notifications You must be signed in to change notification settings

yjg30737/pyqt-corner-widget-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages