Hi Everybody,<br><br>I am developing a system for a customer which is displayed in a set of GroupBox.<br>Depending on mouse events, the container (groupBox) must be removed from the centralwidget, or then added with new updated data for the table.<br>
Here is a piece of the code that runs nicely and shows the a groupBox.<br><br>Now it starts to show some effects on removeWidget, but it is still didn't clear the box completely.. just the right border of the box is erased.<br>
<br> self.vLayout_wdg = QtGui.QWidget(self.centralwidget)<br> self.vLayout_wdg.setGeometry(QtCore.QRect(40, 160, 171, 121))<br> self.vLayout_wdg.setObjectName("vLayout_wdg")<br><br> self.vLayoutBoxObj = QtGui.QVBoxLayout(self.vLayout_wdg)<br>
self.vLayoutBoxObj.setObjectName("vLayoutBoxObj")<br><br> self.newGroupBox = QtGui.QGroupBox(self.vLayout_wdg)<br> self.newGroupBox.setObjectName("newGroupBox")<br><br> self.radioButton1 = QtGui.QRadioButton(self.newGroupBox)<br>
self.radioButton1.setGeometry(QtCore.QRect(30, 30, 101, 21))<br> self.radioButton1.setObjectName("helloRadioButton")<br><br> self.radioButton2 = QtGui.QRadioButton(self.newGroupBox)<br> self.radioButton2.setGeometry(QtCore.QRect(30, 60, 111, 18 )<br>
self.radioButton2.setObjectName("niceRadioButton")<br><br> self.vLayoutBoxObj.addWidget(self.newGroupBox)<br><br> if removeContainer_Button_Pressed:<br> self.vLayoutBoxObj.removeWidget(self.newGroupBox)<br>
self.newGroupBox.adjustSize()<br> self.vLayoutBoxObj.deleteLater()<br> self.vLayoutBoxObj.update()<br><br>All hints and comments are highly welcome and appreciated.<br>ThreaderSlash<br><input id="gwProxy" type="hidden"><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML">
</div>