How to do a widget in Qt that expands above his layout [closed]
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 questionHow 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.pngThe 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
精彩评论