Re: Problems with QGraphicsLayout

2009-03-02 Thread Matthias Fuchs
On Sonntag 01 März 2009 18:38:41 Marco Martin wrote: > 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 q

Re: Problems with QGraphicsLayout

2009-03-01 Thread Marco Martin
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 m

Re: Problems with QGraphicsLayout

2009-03-01 Thread Alexis Ménard
Oops error with keyboard If you never set a minimum size how Qt can know it? I remember that your widget is custom... 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 wrote: > MM, if you never set aminim

Re: Problems with QGraphicsLayout

2009-03-01 Thread Alexis Ménard
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 wrote: > On Saturday 28 February 2009, Matthias Fuchs wrote: > > > The Labels shall only be as large as the text is.

Re: Problems with QGraphicsLayout

2009-02-28 Thread Marco Martin
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 v

Re: Problems with QGraphicsLayout

2009-02-28 Thread Matthias Fuchs
On Freitag 27 Februar 2009 13:52:47 Matthias Fuchs wrote: > On Freitag 27 Februar 2009 12:47:12 Artur Souza(MoRpHeUz) wrote: > > On Friday 27 February 2009 08:32:31 Matthias Fuchs wrote: > > > I tried QSizePolicy::Preferred, updateGeometry() on the layout, > > > invalidate and adjustSize on both th

Re: Problems with QGraphicsLayout

2009-02-27 Thread Matthias Fuchs
On Freitag 27 Februar 2009 12:47:12 Artur Souza(MoRpHeUz) wrote: > On Friday 27 February 2009 08:32:31 Matthias Fuchs wrote: > > I tried QSizePolicy::Preferred, updateGeometry() on the layout, > > invalidate and adjustSize on both the labels and the layout. Maybe the > > order in which I called the

Re: Problems with QGraphicsLayout

2009-02-27 Thread Artur Souza(MoRpHeUz)
On Friday 27 February 2009 08:32:31 Matthias Fuchs wrote: > I tried QSizePolicy::Preferred, updateGeometry() on the layout, invalidate > and adjustSize on both the labels and the layout. Maybe the order in which > I called these methods was wrong or maybe I'm doing something stupid, it > did not wo

Problems with QGraphicsLayout

2009-02-27 Thread Matthias Fuchs
Hello, I'm having problems with QGraphicsLayout. In my case I have a QGraphicsLinearLayout filled with a Plasma::Label, a Strech and another Plasma::Label. Often the Label-Text is changed after that I recreate the Layout -- as the Labels might or might not be shown. The problem I have is