开发者

How to resize widgets on a window when the application is running?

I have an application that contains more widgets - a QGRaphicsView widget and 2 QListView widgets.

How can I make these widgets resizable while the application is running? That is drag up and down, left or right from the widgets' margins and it gets re-sized. I did some research and apparently dock widgets can be re-sized without pr开发者_JAVA百科oblems. But is there any other way?


The widgets should be contained within layouts which will cause them to resize themselves when the parent window is resized. You can allow two widgets to be resized within a space that they share using splitters. Without more detail, it's difficult to recommend anything further.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜