Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21046

Using Qt Assistant Remotely don't show the page that I want it to show when use "activateKeyword" command

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.5.2
    • Tools: Assistant
    • 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

      { QString program =TestOfficeCfg::instance().getSetting("to.file.release.assistant"); QStringList args; QString qhcfile =TestOfficeCfg::instance().getSetting("to.file.release.assistant.qhc"); args<<"-collectionFile"<<qhcfile<<"-enableRemoteControl"; m_pHelpProcess->start(program, args); m_pHelpProcess->waitForStarted(); }

      QByteArray ba;
      ba.append("activateKeyword ");
      ba.append(service);
      ba.append('\0');
      m_pHelpProcess->write(ba);

      ===================================================================================================

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jkobus Jarek Kobus
              sky1012 Chen Lize
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes