Logo Search packages:      
Sourcecode: qt4-x11 version File versions

tools_assistant_compat_lib_qassistantclient.cpp

//! [0]
        QProcess *process = new QProcess(this);
        QString app = QLibraryInfo::location(QLibraryInfo::BinariesPath)
            + QLatin1String("/assistant");
        
        process->start(app, QStringList() << QLatin1String("-enableRemoteControl"));
        if (!process->waitForStarted()) {
            QMessageBox::critical(this, tr("Remote Control"),
                tr("Could not start Qt Assistant from %1.").arg(app));
            return;
        }
        
        // show index page
        QTextStream str(process);
        str << QLatin1String("SetSource qthelp://mycompany.com/doc/index.html")
            << QLatin1Char('\0') << endl;
    }
//! [0]


//! [1]
        CONFIG += assistant
//! [1]



Generated by  Doxygen 1.6.0   Back to index