I am using QT4 ( Windows)
I am trying to show help through a click of pushbutton . Help file ( first one ) is required to be displayed in a Textbrowser popup where onward one canm follow the links. I have made the first page in html and links are also html .
I am using the following code
{
ui.setupUi(this);
connect(ui.helpbutton, SIGNAL(clicked()), this, SLOT(help()));
}
void steg::help()
{
//sourceViewer->setSource(ui.datalineEdit->text());
sourceViewer->resize(600, 600);
sourceViewer->show();
}
steg::steg(QWidget *parent)
: QDialog(parent)
{
ui.setupUi(this);
connect(ui.helpbutton, SIGNAL(clicked()), this, SLOT(help()));
}
void steg::help()
{
QTextBrowser *sourceViewer = new QTextBrowser(0);
//sourceViewer->setSource(ui.datalineEdit->text());
sourceViewer->resize(600, 600);
sourceViewer->show();
}
To copy to clipboard, switch view to plain text mode
In fact how to give setsource().For a normal html file or even a doc file how to give it as url since setsource( const url&) is to be given.
Bookmarks