[Interest] keyPressEvent on subclass of QPlainTextEdit

2018-05-03 Thread nus1998
Hi All, I have some questions on keyPressEvent on sub-class of QPlainTextEdit, for the code attached below. If I press '(', '{', or '[', these keys will be displayed in the edit. qDebug outputs 16777248 (value of Shift) for '(' and '{', and outputs nothing for '['. if I press any other key, t

Re: [Interest] QTableView - only trigger edit event in lower part of cell

2018-05-03 Thread Michael Sué
Hi, Alternatively, you could use a QLabel that displays a context menu if clicked on. -Michael. From: Interest On Behalf Of Tony Rietwyk Sent: Thursday, May 3, 2018 3:21 AM To: interest@qt-project.org Subject: Re: [Interest] QTableView - only trigger edit event in lower part of cell