<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 12, 2013 at 3:31 AM, Stas Boukarev <span dir="ltr"><<a href="mailto:stassats@gmail.com" target="_blank">stassats@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"><div class="im">Indeed. But it looks like this sequence of code is repeated in all the<br></div>
projects. So, I decided to make it easier.<br>
<br></blockquote><div>That's good! :)<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im"><br>
Good to hear that. Feel free to ask any questions, the documentation may<br></div>
be lacking in some aspects.<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I updated it to mention the above changes. And also added a description<br>
on how to better connect signals and some additional information about<br>
method overrides. </blockquote><div>Great. I've just experimented about ways to connect signals yesterday :)<br></div><div>I also used with-objects macro, after comparing with C++ version and also looking at the macro's source code. I think the spirit is: if the C++ version used a local object (implicit object construction and destroying), use with-objects; but if the C++ version used a pointer without deleting it, don't use with-objects. Correct me if I'm wrong, and I think this information is quite useful for new CommonQt users if you add it to the documentation.<br>
<br></div>Another interesting thing is QVector's streaming operator:<br><br>QPolygon polygon;<br>polygon << QPoint(10, 20) << QPoint(20, 30);<br><br>Of course it's not mandatory to use "<<" but it's convenient. Just curious: can we do it similarly in CommonQt?<br>
<br></div><div class="gmail_quote">BTW: I'm talking about this because I use QPolygon in my project. It uses QGraphicsView heavily and everything is going on very well.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">
- Rujia<br></div></div></div>