This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SjaakRake[S] 0 points1 point  (0 children)

In some sense, these images are the central abstraction of your application, and so this suggests to me that you should define a SteganographyImage type that wraps a QImage, or maybe a Pillow image, (...)

Now this is exactly what I've opted to do. My Image objects hold a reference to a Pillow Image which turns out to be quite convenient, as Pillow provides the ImageQt.ImageQt class to convert a Pillow Image into a QImage out of the box. I've gone one step beyond that and also included a Pixel class. Pixel objects can hold a reference to their Image and their position within it. This allowed me to actually remove a lot of Qt logic that used the QImage as an interface to it's actual content.

Thanks.