durusmail: qp: Page object model
Page object model
2008-04-20
Page object model
dhess@fishsoftware.com
2008-04-20
Has anybody experimented with using a Page object model in QP? I'm curious
if people feel the overhead is worth it, does it fail to address some
common use cases, would it make it too restrictive ala ASP.NET, etc.

I've attached a quick and dirty example of one way to approach it for any
one interested in the topic. Some pros:

o It handles multiple forms per page
o Has a pseudo event style of callback which is based on Qt4's automatic
connections
o Events are based on submit widgets
o Submit widgets can be processed before or after validation (i.e.
'cancel' vs. 'save')

Generally speaking, it turns the normally procedural implementation of a
QP exportable into more of an object-oriented/event style of processing.

I'd love any feedback or advice folks have to offer.

Dave
reply