[Qt-interest] How to make a top level window unresizable?
Brad Howes
howes at ll.mit.edu
Tue Feb 24 15:08:27 CET 2009
On Feb 24, 2009, at 12:52 AM, chandrasekar wagmare wrote:
> but how can i use it in QGraphicsView() where there is no layout();
This works for me:
void
MyWindow::setFixedSize()
{
setSizeGripEnabled( false );
if ( layout() ) layout()-
>setSizeConstraint( QLayout::SetFixedSize );
}
--
Brad Howes
Group 42
MIT Lincoln Laboratory • 244 Wood St. • Lexington, MA 02173
Phone: 781.981.5292 • Fax: 781.981.3495 • Secretary: 781.981.7420
More information about the Qt-interest-old
mailing list