python Programming Glossary: mainform
PyQT4: Drag and drop files into QListWidget http://stackoverflow.com/questions/4151637/pyqt4-drag-and-drop-files-into-qlistwidget QtCore.SIGNAL dropped links else event.ignore class MainForm QtGui.QMainWindow def __init__ self parent None super MainForm.. QtGui.QMainWindow def __init__ self parent None super MainForm self .__init__ parent self.view TestListView self self.connect.. url def main app QtGui.QApplication sys.argv form MainForm form.show app.exec_ if __name__ '__main__' main hope this helps..
QTreeView with drag and drop support in PyQt http://stackoverflow.com/questions/4163740/qtreeview-with-drag-and-drop-support-in-pyqt its items. import sys from PyQt4 import QtGui QtCore class MainForm QtGui.QMainWindow def __init__ self parent None super MainForm.. QtGui.QMainWindow def __init__ self parent None super MainForm self .__init__ parent self.model QtGui.QStandardItemModel for.. self.view def main app QtGui.QApplication sys.argv form MainForm form.show app.exec_ if __name__ '__main__' main Edit0 treeview..
|