[Qgis-developer] Use of autoconnect slots?

Denis Rouzaud denis.rouzaud at gmail.com
Tue Feb 28 22:02:27 PST 2017


+1 too, this makes the code much more readable.

I also wonder about direct connections in UI files.
I've come across one lately and hesitated a bit. Any thoughts?

Denis

Le mer. 1 mars 2017 à 02:31, Nathan Woodrow <madmanwoo at gmail.com> a écrit :

> Yes. Less magic the better
>
> On Wed, 1 Mar 2017 2:30 pm Martin Dobias <wonder.sk at gmail.com> wrote:
>
> Hi Nyall
>
> On Wed, Mar 1, 2017 at 8:01 AM, Nyall Dawson <nyall.dawson at gmail.com>
> wrote:
> > Just want to raise a discussion about this. What does everyone think
> > about these and whether we should be using them in code?
> >
> > I'm currently leaning toward opening a QEP for blocking them in new
> > code. Reasons are:
> >
> > - they are very fragile. Renaming a widget will break the connection
> > without any compilation error.
> > - they make searching for widget use harder. You can't use QtCreator's
> > handy "find usages" option (or the equivalent in other IDEs). You have
> > to resort to a plain text search.
> >
> > I'd much prefer to see explicit connections made using new style
> > connects so we gain the compile time error if anything breaks the
> > connection.
>
> Agreed! Explicit connections are much better...
>
> Cheers
> Martin
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170301/63b31bda/attachment.html>


More information about the Qgis-developer mailing list