[Qt-interest] QTableWidget messing up tab navigation
Daniel França
daniel.franca at gmail.com
Mon Oct 17 15:10:30 CEST 2011
anyone?
2011/10/13 Daniel França <daniel.franca at gmail.com>
> More details:
> I'm using some widgets in cells like QTimeEdit, QLine and QCheckBox.
> Now I'd tried to set focus proxy for the widget of each cell, no success
> yet.
>
>
> 2011/10/13 Daniel França <daniel.franca at gmail.com>
>
>> Hi all,
>> I'm trying to use QTableWidget, but I got some problems.
>>
>> first, I need that click change the tab navigation sequence.
>>
>> For example, I'm editing a cell then I click at another cell, and then I
>> do press TAB, I expect that tab go to the next field after the cell I just
>> clicked, bu no, it's going to the next of the previous cell I was editing.
>> I tried to setFocusPolicy for Qt::StrongFocus both for QTableWidget and
>> for each of the items, but with no success.
>>
>> another thing, I wanna that TAB key insert a new row when I press that at
>> the end of the row in last row.
>> but there's no signal like 'KeypressEvent', the only solutions I found was
>> to create a class that inherits from QTableWidget (what I think is so much
>> for so little) or to handle the EditingFinished signal, what is a workaround
>> and may be not work as expect alll the time.
>>
>> Thanks in advance,
>> Daniel França
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111017/72327770/attachment.html
More information about the Qt-interest-old
mailing list