[Interest] scaling QRect inside a QWidget
Nye
kshegunov at gmail.com
Fri Mar 4 01:45:46 CET 2016
You could intercept the QWidget's resize event either by providing an
override (http://doc.qt.io/qt-5/qwidget.html#resizeEvent) or by installing
an event filter (http://doc.qt.io/qt-5/eventsandfilters.html#event-filters).
Note, however, you'll receive a resize event on initialization of the
widget as well.
Kind regards.
On Fri, Mar 4, 2016 at 2:11 AM, Nicolas Jäger <jagernicolas at legtux.org>
wrote:
> Hi,
>
> I have a QRect inside a QWidget and I would like to scale it when the
> widget is scaled by the user.
> There is a QtThing to do that ?
>
> regards,
> Nicolas
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160304/0350d8ea/attachment.html>
More information about the Interest
mailing list