Zoom - what is the best way to do this?
-
My app will be used by people of differing eye sight levels so requires the kind of zoom you get on other applications (e.g. IE and drawing applications). Is there a more elegant way than just going through all the items on the window and resizing them? (Currently just had a listWidget and a couple of buttons, purpose-built very simple UI).
-
You could place your whole UI in a QGraphicsView and use "QGraphicsProxyWidget":http://qt-project.org/doc/qt-4.8/qgraphicsproxywidget.html#details to embed QWidgets there. Then zooming should be as easy as calling scale on the graphicsview/scene.
-
[quote author="qxoz" date="1338807631"]Or you can zoom by changing font size[/quote]
Since this would only work on controls with text on them, I'm not sure it's a good idea for increasing accessibility for partially sight-disabled. You'd need to take care of all other controls with individual hacks (tool-buttons, controls with custom paint event, labels that show images, etc.).