[Qt-interest] MDI sub window too small
Scott Aron Bloom
Scott.Bloom at onshorecs.com
Tue Oct 19 05:52:48 CEST 2010
Someone already replied.... Look at your thread that you started 9 hours ago....
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of velociraptor Genjix
Sent: Monday, October 18, 2010 8:45 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] MDI sub window too small
Hey,
I keep getting the message:QWidget::setMinimumSize: (/QMdi::ControlLabel) Negative sizes (-1,-1) are not possible
In my main MDI window, I am showing the MDI sub window by means of: self.showMaximised() # show main MDI window child = MyCustomWidget() # same as MdiTable* child = new MdiTable(); for those that don't know python here self.mdiArea.addSubWindow(child) child.show()
Here the sub window widget:
class MyCustomWidget(QtGui.QWidget): def __init__(self): super(MdiTable, self).__init__()
self.setAttribute(QtCore.Qt.WA_DeleteOnClose) self.resize(100,100)
# this block is commented """self.setWindowTitle('Table titilonius') b = QtGui.QTextEdit()
box = QtGui.QHBoxLayout() box.addWidget(b)
self.setLayout(box)"""
The created MdiSubWindow has 0,0 size, and I have to resize it. If I uncomment that block with the HBoxLayout then it has a decent size but I still get the error message.
Awaiting your comments :) Thanks!
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list