QGraphicsLayoutItem

Gallien Matthieu matthieu_gallien at yahoo.fr
Sun May 25 21:12:46 CEST 2008


Hi,
I am trying to make a compact task bar that has one square for each task.
My problem is that I am not able to make QGraphicsWidget have a square ratio.
I tried to use setSizePolicy with a policy that have  hasHeightForWidth() set 
to true. When I do that I am not able to found something comparable to 
QLayoutItem::heightForWidth in QGraphicsLayoutItem.
Do you know a method that is working ?

I also tried modifying the size of the widget in setGeometry, but it is not 
working and I believe not the right way to do it.

Thanks in advance for any help
Best regards
-- 
Gallien Matthieu


More information about the Panel-devel mailing list