I thought I included everything pertinent, sorry.
Here is the constructor:
DlgHelpBrowser
::DlgHelpBrowser(const QString &path,
const QString &page,
ui(new Ui::DlgHelpBrowser)
{
ui->setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
setAttribute(Qt::WA_GroupLeader);
ui
->textBrowser
->setSearchPaths
(QStringList() << path <<
"/graphics");
ui->textBrowser->setSource(page);
ui->textBrowser->zoomIn(2);
}
DlgHelpBrowser::DlgHelpBrowser(const QString &path, const QString &page,
QWidget *parent) :
QDialog(parent),
ui(new Ui::DlgHelpBrowser)
{
ui->setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
setAttribute(Qt::WA_GroupLeader);
ui->textBrowser->setSearchPaths(QStringList() << path <<"/graphics");
ui->textBrowser->setSource(page);
ui->textBrowser->zoomIn(2);
}
To copy to clipboard, switch view to plain text mode
And here is the code from the widget that calls the DlgHelpBrowser:
void MainWindow::on_actionUser_Manual_triggered()
{
DlgHelpBrowser::showPage("UserManual.html");
}
void MainWindow::on_actionUser_Manual_triggered()
{
DlgHelpBrowser::showPage("UserManual.html");
}
To copy to clipboard, switch view to plain text mode
I think that is all the relevant code. That is what seems strange to me. The code is exactly the same, just using a different IDE and it doesn't work.
Bookmarks