I'm a .ui file similar to yours 
The difference is that I'm under Win2000 and my path to the HTML file is [../../aide/accueil.html] and not [/usr/share/doc/qt4/doc/html/index.html].
("aide" stands for "help" in french)
I generate the header file with the command :
uic aide.ui -o aide.h
And I use an implementation class...
Here is my HTML :
<html>
<head>
</head>
<body>
huhuhuh hin hin hin !
<br /><br />
<a href="suite.html">a link</a>
</body>
</html>
<html>
<head>
</head>
<body>
huhuhuh hin hin hin !
<br /><br />
<a href="suite.html">a link</a>
</body>
</html>
To copy to clipboard, switch view to plain text mode
(I made some links to test the forward/backward/home functionnalities)
Here is my implementation class :
#ifndef Aide_impl_h
#define Aide_impl_h
#include "../gui/gui/ui_aide.h"
#include <QObject>
#include <QDialog>
#include <QtGui>
#include <QUrl>
class Aide_impl
: public QDialog,
public Ui
::dialog_Aide{
Q_OBJECT
public:
protected:
private slots:
private:
};
#endif // Aide_impl_h
#ifndef Aide_impl_h
#define Aide_impl_h
#include "../gui/gui/ui_aide.h"
#include <QObject>
#include <QDialog>
#include <QtGui>
#include <QUrl>
class Aide_impl : public QDialog, public Ui::dialog_Aide
{
Q_OBJECT
public:
Aide_impl(QWidget *parent = 0);
protected:
private slots:
private:
};
#endif // Aide_impl_h
To copy to clipboard, switch view to plain text mode
{
setupUi(this);
}
Aide_impl::Aide_impl(QWidget *parent) : QDialog(parent)
{
setupUi(this);
}
To copy to clipboard, switch view to plain text mode
And I use it in my application :
Aide_impl my_help_window = new Aide_impl(this);
my_help_window->show();
Aide_impl my_help_window = new Aide_impl(this);
my_help_window->show();
To copy to clipboard, switch view to plain text mode
Bookmarks