[PyQt] Changing widget type dynamically
Gaëtan Podevijn
gpodevij at gmail.com
Fri Feb 11 17:37:29 GMT 2011
Hello,
I'm looking for a way to change a widget's type dynamically.
So, for example, I have :
self.filetable = QTableView()
and during the execution, I would like to change it to a QTreeView(). How
should I do to do something like :
self.filetable = QTableView()
(...)
if aVar == 3:
self.filetable = QTreeView()
self.filetable.updateUI()
Where my hypothetic updateUI() function would redraw a new QTreeView on my
screen's application.
Any pointer to a documentation's url is welcome :-)
Thank you,
Gaëtan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110211/8aec7707/attachment.html>
More information about the PyQt
mailing list