[PySide] DataMapper issues
vasure at gmail.com
Mon Feb 18 16:30:51 CET 2013
Try this documentation to understand the event loop. If you are familiar
with other gui frameworks, they have something similar. For eg: objective c
- NSApplication. Gtk - gtk_init
On Sun, Feb 17, 2013 at 7:55 PM, Adrian Klaver <adrian.klaver at gmail.com>wrote:
> On 02/17/2013 07:28 PM, Srini Kommoori wrote:
>> For any Qt App, QtGui.QApplication is a main event loop. Every gui app
>> needs one QtGui.QApplication.
>> There could be muliple View/UI elements depending on developers wish.
>> 1. QWidget/QMainWindow
>> 2. QWebkit
>> 3. QGraphicsView
>> 4. QDeclarativeView
>> You can keep changing the views depending on the app requirements.
>> Hope that helps.
> Yes, but what I do not understand is in the following sequence;
> if __name__ == '__main__':
> import sys
> app = QtGui.QApplication(sys.argv)
> if not connection.createConnection():
> model = QtSql.QSqlTableModel()
> view1 = createView("Table Model (View 1)", model)
> view2 = createView("Table Model (View 2)", model)
> view2.move(view1.x() + view1.width() + 20, view1.y())
> Once app is instantiated how are view1 and view2 hooked into it without
> there being an explicit link?
> Adrian Klaver
> adrian.klaver at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PySide