[Interest] Image width and height into Style Component
Jérôme Godbout
jerome at bodycad.com
Tue Jan 6 18:43:35 CET 2015
I wasn't but that could be a solution to set the width and height there,
it's a complexe widget that use an Image as clickable area, the image size
and source depend on the style and does not fill the widget (it's more an
information button for tooltips alike that's expend or collapse a section
of the widget). I would have love to have the whole representation into the
style (since I have a compact desktop style and more goofy for touch
surface)
On Tue, Jan 6, 2015 at 12:03 PM, Nuno Santos <nunosantos at imaginando.pt>
wrote:
> Hi,
>
> Aren’t you using control.width and control.height to set the image
> dimensions?
>
> Regards,
>
> Nuno
>
> > On 06 Jan 2015, at 16:58, Jérôme Godbout <jerome at bodycad.com> wrote:
> >
> > Hi,
> > I have some problem when using Image into Style Component. The width and
> height set into the component are overwritten when the component load the
> image. I cannot set the implicitWidth and Height as they are readonly.
> Anybody known what to do to scale Image into style component? maybe I
> should generate additionnal image file, I would like to avoid this as much
> as possible.
> >
> > This does not happen when loading the same component into a Loader. (I'm
> currently stuck at Qt 5.3.0).
> >
> > Thanks,
> > Jerome
> > _______________________________________________
> > 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/20150106/ef297e05/attachment.html>
More information about the Interest
mailing list