PDA

View Full Version : For Qt on embeded linux, which key is the "platform edit key"?



another_qt
27th June 2014, 01:50
Hi,
I am developing QT programme on beagle-bone black ( QT4.8.4 + QtCreator2.7.1 + Linaro GCC 2013.03) and met a trouble as follow:

I use a TableView and set its EditTrigger as "QAbstractItemView::EditKeyPressed", but when i run the programe on the beagle-bone black with an usb-keyboard
it is strange that the TableView's item don't change to editable status when i press "F2" ( as saying on internet, most platform's Edit key is "F2" );
and while i build the same source in windows(Qt 4.8.0 + QtCreator2.7.1 + minGw 4.4.0), it works perfect.

it seems that QT'cross-platform performance is not so good on this issue.
I doubt that it is because that for the linux the platform key is not "F2"? if it true , what is the platform edit key for linux?

the attachment is my test source , I reimplement the delegate class and the tableview class to add some debug info,
and found that pressing "f2" can trigger the editorEvent in the delegate in windows but have no reponse on the beagle-bone black

I am working on this problem for several days, but still have no progress. Any suggestion or solutions is thankful!

another_qt
18th July 2014, 08:59
i figure this problem recently.
it turns out that the reason why the "F2“ cannot change the tableview's item to editable is that the Qt's library included in SDK provided by TI have some problem.
i download Qt4.8.6 src and recompile the library, the programe work properly.
little disappoint at Ti‘s developers. :)