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

List:       kde-panel-devel
Subject:    Problems with QGraphicsLayout
From:       Matthias Fuchs <mat69 () gmx ! net>
Date:       2009-02-27 11:32:31
Message-ID: 200902271232.31791.mat69 () gmx ! net
[Download RAW message or body]

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 that it seems like the size of the Labels is not 
adjusted. So sometimes they are larger than they should be other times they 
are smaller.

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 
work.

The layout code is here: http://reviewboard.kde.org/r/145/diff/#4 line 152. 
The problematic code is starting at line 178.
The Labels are created starting with line 127.


Can someone help me here?
_______________________________________________
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