<div dir="ltr"><div>On Wed, Dec 9, 2015 at 1:24 PM, <span dir="ltr"><<a href="mailto:c.buhtz@posteo.jp" target="_blank">c.buhtz@posteo.jp</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<span class=""><br>
On 2015-12-06 02:20 <<a href="mailto:c.buhtz@posteo.jp">c.buhtz@posteo.jp</a>> wrote:<br>
> The signature (arguments/parameters) of the method doesn't have data<br>
> in. Where is the data to be inserted?</span></blockquote><div><br></div><div><br></div><div><br></div>Not 100% sure about that method, but I believe the idea is that would insert "empty" / "new" items (thus no data parameter). </div><div class="gmail_quote"><br></div><div class="gmail_quote">In the past I've simply done:<div><br></div><div>model.beginInsertRows()<br></div><div># code to modify underlying python list goes here, however you choose </div><div># ....</div><div>model.endInsertRows()<br></div><div><br></div><div>Using these two methods causes the view(s) to requery the data after endInsertRows() (given that you've implemented data() correctly)</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">- mike</div><div> </div></div></div></div>