Problems with QGraphicsLayout

Marco Martin notmart at gmail.com
Sun Mar 1 18:38:41 CET 2009


On Sunday 01 March 2009, Alexis Ménard wrote:
> Oops error with keyboard....
>
> If you never set a minimum size how Qt can know it? I remember that your
> widget is custom...

the problem here was with Plasma::Label that is just a qlabel in a proxy..
so would be the job of Label to set different minimum sizes upon resize 
events? O.o
(seems strange, by the way i'm experimenting with that in the twitter plasmoid 
and works really well, but still...)

> In QWiget we set an arbitrary size and in QGraphicsLayoutItem we set 40*40
> if i remember.
>
> On Sun, Mar 1, 2009 at 5:58 PM, Alexis Ménard <menard at kde.org> wrote:
> > MM, if you never set aminimun size of Qt can know?
> >
> > In QWiget we set an arbitrary size and un LayoutItem we set 40*40 if i
> > remember.
> >
> > On Sat, Feb 28, 2009 at 7:32 PM, Marco Martin <notmart at gmail.com> wrote:
> >> On Saturday 28 February 2009, Matthias Fuchs wrote:
> >> > > The Labels shall only be as large as the text is. One reason for
> >> > > that
> >>
> >> is
> >>
> >> > > that I use isUnderMouse() to detect clicks on the label and I also
> >> > > set
> >>
> >> a
> >>
> >> > > cursor for the label. And empty space should not result in a
> >> > > different cursor or in visiting a website if you click on it.
> >> >
> >> > Ok, for people with the same problem: Setting the minimumWidth fixed
> >> > it
> >>
> >> so it means that setSizePolicy(Minimum, Minimum) is still broken in qt
> >> :/
> >>
> >> > _______________________________________________
> >> > Plasma-devel mailing list
> >> > Plasma-devel at kde.org
> >> > https://mail.kde.org/mailman/listinfo/plasma-devel
> >>
> >> _______________________________________________
> >> Plasma-devel mailing list
> >> Plasma-devel at kde.org
> >> https://mail.kde.org/mailman/listinfo/plasma-devel




More information about the Plasma-devel mailing list