Please point me to (good) documentation about QT layouts for plasma development [closed]

和自甴很熟 提交于 2019-12-11 07:38:55

问题


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.


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/915633/please-point-me-to-good-documentation-about-qt-layouts-for-plasma-development

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!