[Qt-interest] Layout for overlaying widget on top of another

John McClurkin jwm at nei.nih.gov
Wed Oct 20 14:33:57 CEST 2010


velociraptor Genjix wrote:
> Hey, I have a QMdiArea and want to add a sidebar. When I add my sidebar to a horizontal layout, it shifts the view to the right (diagram below)        http://img705.imageshack.us/img705/5027/sidewaysr.jpg       I want the QMdiArea widget to stay the same size, and just add the toolbox on top.       http://img183.imageshack.us/img183/2958/overlayed.jpg       How can I achieve this? Which layout can I use?    Thanks! 		 	   		  
For this to work, you must place the QToolBox in a midi sub window. Of 
course, it won't be a toolbox then, just a widget.



More information about the Qt-interest-old mailing list