[Qt-interest] Adding status bar to dialog

Anders Bakken anders.bakken at myriadgroup.com
Wed Apr 14 19:46:42 CEST 2010


On Wed, Apr 14, 2010 at 06:41:30PM +0100, Wm. G. Urquhart wrote:
> Hi,
> 
> How can I add a QStatusBar to a QDialog's layout, as created by Designer 
> using "Layout in a form layout". Or indeed any other way.
> 
> What I've tried either displays my showMessage(...) entries in the 
> middle of the dialog or complains that I already have a layout. Any help 
> would be greatly appreciated.
> 
> -- 
> Thanks,
> 
> William
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest

Just create a QVBoxLayout on the dialog. Then add the statusbar to the
bottom of this and your form layout on the top.

regards
-- 
Anders Bakken



More information about the Qt-interest-old mailing list