Hi, Sorry for my bad english and PyQt skill.<br>I am reading the book &quot;Rapid GUI Programming with Python and Qt The Definitive Guide to PyQt Programming&quot;, my question is related to chap08/mymovies.pyw.<br>near the end of MainWindow.updateTable() there is <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if selected is not None:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; selected.setSelected(True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.table.setCurrentItem(selected)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.table.scrollToItem(selected)<br>what I want to ask is, what&#39;s the mean of &quot;selected.setSelected(True)&quot;, isn&#39;t self.table.setCurrentItem(selected) enough here?<br>
Thank in advance for your reply.