views:

149

answers:

2

I am trying to develop a plasmoid in python. I got some good tutorials here (techbase.kde.org/Development/Tutorials/Plasma) and they are really helpful, but they don't have documentation or examples about QT layouts and their usage.

I haven't programmed with QT, but I know C++ well. So, the resources shouldn't be necessarily python apis.

To be specific, I want a layout with two rows, the first containing two columns and the second with 3 rows.

thanks & ragards.

+2  A: 

Perhaps a good place to start would be the Qt documentation?

gnud
+2  A: 

Plasma works as a big QGraphicsView, and applets are QGraphicsWidget items, meaning it's the documentation for QGraphicsLayout that you should be looking at, not QLayout as suggested.

For a grid layout you want to use QGraphicsGridLayout. Have a look at the addItem method in particular.

PAG
This looks promising. I will try and let you know.
rangalo