P
P
Philip Bondarev2017-08-21 17:21:24
Python
Philip Bondarev, 2017-08-21 17:21:24

How to implement PixelGrid in PyQt5?

Hello.
The essence of the problem:
A black and white picture is generated from a two-dimensional numpy array using the PIL module. It is then saved to .png and placed in the QGraphicsScene. I roughly understand how to implement zooming and scrolling with the mouse, but when hovering over a pixel, the task is to display information about it (0-255), and also display an analogue of the pixel grid, as in Adobe Photoshop, which occurs when zoomed in. Tell me, in which direction to look, what to read? I already have painful thoughts - to beat the image by pixels, create a table and fill it with these one-pixel images ...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question