<div dir="ltr">Hi,<div><br></div><div>+1 for explicitly defining connections and slots</div><div><br></div><div>While I like the ease of having Qt Creator's Designer auto-create the slot in the class's header for me, I find auto-connected slots are often problematic when doing complicated set up of a GUI widget, leading to extra usage of obj::blockSignals(), as opposed to explicitly setting up a connection at the right time in program flow.</div><div><br></div><div>I also think it blurs the separation of declaration and definition, putting actionable code in a header file that is not just a simple assignment, etc.<br><div class="gmail_extra"><br></div><div class="gmail_extra">Denis wrote:</div><div class="gmail_extra">> <span style="font-size:12.8px">I also wonder about direct connections in UI files.</span></div><div style="font-size:12.8px">> I've come across one lately and hesitated a bit. Any though<span style="font-size:12.8px">ts?</span></div><div class="gmail_extra"><br></div><div class="gmail_extra">I also prefer to not leave connections in UI files, unless they are vey simple cross-widget communication that would usually never be manually fussed with, like wiring standard default button actions to a dialog closure, etc. Because, it is so very easy to set up those types of connections in Designer/Creator.</div><div class="gmail_extra"><br></div><div class="gmail_extra">That said, I'm OK with a policy of no connections in UI files.</div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><br>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota<br>----------------------------------<br>Boundless Desktop and QGIS Support/Development<br>Boundless Spatial - <a href="http://boundlessgeo.com" target="_blank">http://boundlessgeo.com</a><br><a href="mailto:lshaffer@boundlessgeo.com" target="_blank">lshaffer@boundlessgeo.com</a></div></div></div>
<br><div class="gmail_quote">On Wed, Mar 1, 2017 at 1:46 AM, Luigi Pirelli <span dir="ltr"><<a href="mailto:luipir@gmail.com" target="_blank">luipir@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">+100 I always hate on_* stuffs, make the code hard to be traced<br>
Luigi Pirelli<br>
<br>
******************************<wbr>******************************<wbr>******************************<wbr>********<br>
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com<br>
* LinkedIn: <a href="https://www.linkedin.com/in/luigipirelli" rel="noreferrer" target="_blank">https://www.linkedin.com/in/<wbr>luigipirelli</a><br>
* Stackexchange: <a href="http://gis.stackexchange.com/users/19667/luigi-pirelli" rel="noreferrer" target="_blank">http://gis.stackexchange.com/<wbr>users/19667/luigi-pirelli</a><br>
* GitHub: <a href="https://github.com/luipir" rel="noreferrer" target="_blank">https://github.com/luipir</a><br>
* Mastering QGIS 2nd Edition:<br>
* <a href="https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition" rel="noreferrer" target="_blank">https://www.packtpub.com/big-<wbr>data-and-business-<wbr>intelligence/mastering-qgis-<wbr>second-edition</a><br>
******************************<wbr>******************************<wbr>******************************<wbr>********<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
<br>
On 1 March 2017 at 07:38, Matthias Kuhn <<a href="mailto:matthias@opengis.ch">matthias@opengis.ch</a>> wrote:<br>
> +1, for what it's worth<br>
><br>
> ______________________________<wbr>_________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></div></div></blockquote></div><br></div></div></div>