[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: QTableView Enter key
From:       Thiago Massari Guedes <thiedri () gmail ! com>
Date:       2009-07-28 12:54:09
Message-ID: 8b08093c0907280554x45ef70efoafa731eff8ea1629 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Great!Thanks Aaron. I'll check it out :)

On Tue, Jul 28, 2009 at 1:04 AM, Aaron J. Seigo <aseigo@kde.org> wrote:

> On Monday 27 July 2009, Thiago Massari Guedes wrote:
> > Hi dear developers,
> > Do you know how can I trap the enter key pressed in QTableWidget ?
> > I'd like to when pressed enter key in a qtablewidget change to next row
> and
> > stop enter keypress event.
>
> if you have subclassed QTableWidget, you can just reimplement the
> keyPress/keyRelease events.
>
> if you are using QTableWidget directly, then you can set an event filter on
> the widget and filter out the event elsewhere in your code. do a search for
> installEventFilter in Qt Assistant for details :)
>
> --
> Aaron J. Seigo
> humru othro a kohnu se
> GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
>
> KDE core developer sponsored by Qt Software
>
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>
>

[Attachment #5 (text/html)]

Great!<div>Thanks Aaron. I&#39;ll check it out :)<br><br><div class="gmail_quote">On \
Tue, Jul 28, 2009 at 1:04 AM, Aaron J. Seigo <span dir="ltr">&lt;<a \
href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;"><div><div></div><div class="h5">On Monday 27 July 2009, \
Thiago Massari Guedes wrote:<br> &gt; Hi dear developers,<br>
&gt; Do you know how can I trap the enter key pressed in QTableWidget ?<br>
&gt; I&#39;d like to when pressed enter key in a qtablewidget change to next row \
and<br> &gt; stop enter keypress event.<br>
<br>
</div></div>if you have subclassed QTableWidget, you can just reimplement the<br>
keyPress/keyRelease events.<br>
<br>
if you are using QTableWidget directly, then you can set an event filter on<br>
the widget and filter out the event elsewhere in your code. do a search for<br>
installEventFilter in Qt Assistant for details :)<br>
<font color="#888888"><br>
--<br>
Aaron J. Seigo<br>
humru othro a kohnu se<br>
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43<br>
<br>
KDE core developer sponsored by Qt Software<br>
</font><br><br>
&gt;&gt; Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe &lt;&lt;<br> <br></blockquote></div><br></div>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic