Skip to content

PyQt Popup QGraphicsView (Image will pop up when move the mouse cursor inside the QGraphicsView)

License

Notifications You must be signed in to change notification settings

yjg30737/pyqt-popup-graphics-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyqt-popup-graphics-view

PyQt Popup QGraphicsView (Image will pop up when move the mouse cursor inside the QGraphicsView, follow the cursor if you move it inside of the window)

Requirements

PyQt5 >= 5.8

Setup

python -m pip install pyqt-popup-graphics-view

Example

Code Example

from PyQt5.QtWidgets import QApplication
from pyqt_popup_graphics_view.popupGraphicsView import PopupGraphicsView


if __name__ == "__main__":
    import sys

    app = QApplication(sys.argv)
    popupGraphicsView = PopupGraphicsView()
    popupGraphicsView.setFileName('nico_bellic.png')
    popupGraphicsView.show()
    app.exec_()

Result

example

Note: Mouse cursor should've been top left of the image. Windows capture feature doesn't include the mouse cursor in the screenshot.