Yes !
I solved the problem like this :
chemins << "../../aide/";
QString acces_app
= "accueil.html";
QUrl url_source
(acces_app
);
my_help_window->TB_message->setSearchPaths (chemins);
my_help_window->TB_message->setSource(url_source);
QStringList chemins;
chemins << "../../aide/";
QString acces_app = "accueil.html";
QUrl url_source(acces_app);
my_help_window->TB_message->setSearchPaths (chemins);
my_help_window->TB_message->setSource(url_source);
To copy to clipboard, switch view to plain text mode
source : QUrl
This property holds the name of the displayed document.
This is a an invalid url if no document is displayed or if the source is unknown.
When setting this property
QTextBrowser tries to find a document with the specified name in the paths of the
searchPaths property and directory
of the current source, unless the value is an absolute file path. It also checks for optional anchors and scrolls the document accordingly
If the first tag in the document is <qt type=detail>, the document is displayed as a popup rather than as new document in the browser window itself. Otherwise, the document is displayed normally in the text browser with the text set to the contents of the named document with setHtml().
Access functions:
QUrl source () const
virtual void setSource ( const QUrl & name )
At the beginning, in my aide.ui file, I had set the setSource property.
I let the setSearchPaths wide, with no path specified (I understood that this property should facilitate access to linked files or displayed images...).
So, it should have displayed my HTML file when calling the implementation class object in my application, without setting other setSource property... But the document was cleared, the content of the HTML source file wasn't displayed. Perhaps it's a bug, perhaps I am the bug (certainly...
), but I'll never know.
After that, I tried to set the HTML source directly from my application.
My error was to set (another time...) the setSource property in the application, cause the relative path was specified from the searchPath definied originally in my aide.ui file : none !
So the final solution is :
- not to set the setSource property in my aide.ui file
- set the setSearchPaths list property in my aide.ui file ("../../aide/")
- set the setSource property in my application ("accueil.html")
One more time, let me thank you a lot for your help and participation 
PS : Arrrghhh....
Now my links (<a href...>) are no more resolved...
Nothing happens when I click a link, the source stay the same, the content displayed isn't changed. If I open it with Firefox, links a well resolved.
If I want them to work, I must specify the setSource property in my aide.ui file.
So I specify the setSource and the setSearchPaths list properties in my aide.ui file.
Bookmarks