Example #1
0
    def rptViewerReparent(self, parentFrame):
        if not parentFrame:
            return

        actExit = QtCore.QAction(self.child("salir", "QAction"))
        if actExit:
            actExit.setVisible(False)

        self.reparent(parentFrame, 0, QtCore.QPoint(0, 0))

        if not parentFrame.layout():
            lay = QtCore.QVBoxLayout(parentFrame)
            lay.addWidget(self)
        else:
            parentFrame.layout().add(self)

        self.show()