[Eric] Migrating from eric 3 / QT 3 to eric 4 / QT 4
Detlev Offenbach
detlev at die-offenbachs.de
Sat Apr 11 10:09:45 BST 2009
On Freitag, 10. April 2009, Stephen Schaub wrote:
> Thanks, Detlev. Your info was helpful. My mistake was in trying to use
> the designer to set up the events to be generated in the Python code.
>
> Are there any tutorials that show how to use Eric to do PyQt
> development with the Designer integration, etc.? If not, maybe I
> should write one, once I get it figured out...
>
> Stephen
>
> On Fri, Apr 10, 2009 at 1:45 PM, Detlev Offenbach
>
> <detlev at die-offenbachs.de> wrote:
> > On Donnerstag, 9. April 2009, Stephen Schaub wrote:
> > > I teach PyQt GUI development with Eric in a University-level Unix
> > > Programming class, and have a question about migrating to eric4 / QT 4.
> > >
> > > With eric3 / QT 3, I used the following approach to develop
> > > applications: 1. Use Qt Designer to do the GUI layout for a window and
> > > define custom slots.
> > > 2. Use eric to compile the form and generate a subclass
> > > 3. Override the custom slots in the subclass and put event handling
> > > code in them
> > >
> > > With eric4, I am able to compile a .ui file to a PyQt class. But I
> > > don't see any wizard to generate a subclass, as in eric 3. If there
> > > isn't one, we can manage; I just thought I would ask, in case I was
> > > missing it.
> >
> > In the forms viewer just select the form, open the context menu and
> > select "Generate dialog code". In there, you are given the choice to
> > select the signals you want to connect to. The dialog generates code with
> > slots of the form "on_<widgetename>_<signalname>(<signature>)". This code
> > is preceded by the right @pyqtSignature" decorator call. The .ui file
> > generated by pyuic4 uses the automatic connection feature.
> >
> > Btw, would you like to write a testimonial?
> >
> > Regards,
> > Detlev
>
> _______________________________________________
> Eric mailing list
> Eric at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric
Hi,
there is one tutorial available via the eric4 web site. If that tutorial is
not what you are looking for, please contribute one.
Regards,
Detlev
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the Eric
mailing list