开发者

How to do a widget in Qt that expands above his layout [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.

Closed 9 years ago.

Improve this question

How would you do a widget in Qt that expands above his layout without affecting it and 开发者_开发问答not being a dialog.

My idea is to be like in word 2007 :

- Collapsed : http://i.stack.imgur.com/Yp90t.png

- Expanded : http://i.stack.imgur.com/Y0nNE.png


The second one is actually a popup widget. You get what I mean? When the user press a expand button. Create a popup widget in that position.


I don't think it's possible to be done that way.

Instead I'd implement it using a borderless window that will be placed above the widget that initially caused the "dropdown" to show. This way you also solve issues where the dropdown would have to overlap the window borders as well. Just hide it once it loses

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜