Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, May 2008
Problem in Right Vs Left click in QTableWidget


Message 1 in thread

<table cellspacing='0' cellpadding='0' border='0' ><tr><td style='font: inherit;'><P>Hi</P>
<P>&nbsp; I implemented checkboxes in each row of a QTableWidget which needs to be selected ONLY on Left click of mouse on that perticular row. That worked fine with </P>
<P>&nbsp;</P>
<P>oneRowTable = new QTableWidget(this);</P>
<P>&nbsp;</P>
<P>connect(oneRowTable,SIGNAL(cellPressed (int, int)),this,SLOT(OnItemSelection()),Qt::DirectConnection);</P>
<P>&nbsp;</P>
<P>and even with&nbsp; - &gt; cellClicked(int, int)</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>But the problem is that it selects the checkboxes (i.e. calls the OnItemSelection() slot) EVEN IF I DO A RIGHT CLICK on the Row. Can anyone suggest a method how I can stop this Right Mouse Click event !!</P>
<P>&nbsp;</P>
<P>Thanx and Regards,</P>
<P>Raja</P></td></tr></table><br>

      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a>

--
 [ signature omitted ]