Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.5.2
-
None
Description
I want to use assistant remotely,then I create a QProcess,and start(),and waitForStarted,after this,the assistant process is go to QProcess::Runing state.Then I use "activateKeyword" command to show the page I want,but it show the page which is opened in the last time,but sometimes it show the page I want.
I know the assistant has a funtion to remember the last open page.So the problem I guess maybe:
When the process go to QProcess::Running,our message(command "activateKeyword") is writing to the process and at the same time assistant is finding the last open page,if the message is arriving first,and assistant will show the last open page.Otherwise,if the "find last open page funtion" has finished,our sending message("activateKeyword") will effect and show the page we want.It seems that these two "jobs" don't synchronized.
So does any suggestions to avoid this probelm:when start assistant and show the page I want, not the page it remembered?
=================================================================================================
if (!m_pHelpProcess) m_pHelpProcess=new QProcess; //check if the process is created
if (m_pHelpProcess->state()!=QProcess::Running) //check if the process is runing or not
QByteArray ba;
ba.append("activateKeyword ");
ba.append(service);
ba.append('\0');
m_pHelpProcess->write(ba);
===================================================================================================
Attachments
Issue Links
- relates to
-
QTBUG-36850 When started via remote control, assistant updates index on startup every time
- Closed
-
QTBUG-37397 Qt Assistant Remote Control ActivateKeyword for QML types
- Reported