[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Problems with QGraphicsLayout
From:       Marco Martin <notmart () gmail ! com>
Date:       2009-03-01 17:38:41
Message-ID: 200903011838.42082.notmart () gmail ! com
[Download RAW message or body]

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@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@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@kde.org
> >> > https://mail.kde.org/mailman/listinfo/plasma-devel
> >>
> >> _______________________________________________
> >> Plasma-devel mailing list
> >> Plasma-devel@kde.org
> >> https://mail.kde.org/mailman/listinfo/plasma-devel


_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic