Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yjg30737/pyqt-popup-graphics-view

PyQt Popup QGraphicsView (Image will pop up when move the mouse cursor inside the QGraphicsView)
https://github.com/yjg30737/pyqt-popup-graphics-view

pyqt pyqt-popup pyqt-popup-graphics-view pyqt-qgraphicsview pyqt5 pyqt5-examples pyqt5-popup pyqt5-popup-graphics-view pyqt5-qgraphicsview pyqt5-tutorial python python3 qgraphicsview qt

Last synced: 17 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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
```python
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](https://user-images.githubusercontent.com/55078043/145152674-baeb0b37-7e56-4185-92da-6d6d663ae829.png)

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