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

syncContents command when remote controlling Qt Assistant does not go to correct page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.7.0, 4.7.1, 4.8.0, 4.8.x
    • 4.6.2
    • Tools: Assistant
    • None
    • Ubuntu 10.04
    • 5b5785bc564ccea9f6868d02be3d1080cb5039b9, a4376f3760fae97b3ae45c9ae7b62ed505bfa05d

      I am using -enableRemoteControl when creating a QProcess for Qt Assistant. When my application navigates to another page, I am calling setSource and syncContents. It appears that syncContents sets the contents pane to the *previous* page, not the current page.

      I am writing the "change page" logic like this:

      QByteArray ba;
      ba.append(QLatin1String("setSource qthelp://org.sphinx.Literacy.1.0/doc/"));
      ba.append(page);
      ba.append(QLatin1String(".html"));
      ba.append('\0');
      process_->write(ba);
      ba.clear();
      ba.append(QLatin1String("syncContents"));
      ba.append('\0');
      process_->write(ba);

      I have tried this both as separate commands (as above) as well as one command, chaining them together with semicolon. There is no difference.

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

            heimrich Karsten Heimrich
            dmateer Dave Mateer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes