|
From: Tatsuro M. <tma...@ya...> - 2014-06-24 10:30:07
|
----- Original Message ----- > From: Jérôme Lodewyck > To: Tatsuro MATSUOKA ; gnuplot-beta > Cc: > Date: 2014/6/24, Tue 18:42 > Subject: Re: How to get key information from qt terminal to gnuplot > > Hi, > > I did not really follow what you want to achieve, but the error message > tells that you have to specify on which widget you want to set the focus > policy. If you want to set the policy of the QtGnuplotWidget containing > the scene, you might try > > m_widget->setFocusPolicy( Qt::NoFocus); Jérôme Thank you for the reply!! I have executed mouselabels demo on qt terminal on Ubuntu 12.04 LTS. It partially work. Key input reflected in the plot window. However, <del>, <bs> and <esc> work but <tab> does not work. For the above fact, Ethan show the thread concering tab key http://stackoverflow.com/questions/18160051/intercepting-tab-key-press-to-manage-focus-switching-manually The first answer for the question says that : Using setFocusPolicy( Qt::NoFocus) property of QWidget, one can set Focus policy on widget which doesn't require tab focus. I thought that I could get tab code using setFocusPolicy( Qt::NoFocus). Using m_widget->setFocusPolicy( Qt::NoFocus); instead of QWidget::setFocusPolicy( Qt::NoFocus); I could complie QtGnuplotWidget.cpp and got gnuplot_qt. However, tab key feature does not work on mouselabels demo (demo/mouselabels.dem) on qt term. Perhaps I have misled the answer of the question. If you have an idea to tab key to work on the plot window in qt terminal please show the way. Tatsuro |