diff --git a/src/layouts/QskLayoutEngine.cpp b/src/layouts/QskLayoutEngine.cpp index a563a919..47d32621 100644 --- a/src/layouts/QskLayoutEngine.cpp +++ b/src/layouts/QskLayoutEngine.cpp @@ -81,6 +81,15 @@ namespace QskLayoutEngine::QskLayoutEngine() : QGridLayoutEngine( Qt::AlignVCenter, true /*snapToPixelGrid*/ ) { + /* + When centering something integer based like a QImage + inside an odd number of pixels, we end up at x.5 positions. + Then snapToPixelGrid will ceil one side and we lose 0.5 + in height/width. For these type of situations it would be + good to be able to disable snapToPixelGrid. Unfortunately + this can't be done without recreating the QGridLayoutEngine. + TODO ... + */ } QskLayoutEngine::~QskLayoutEngine()