<class name="QTextBrowser" doc="/**
&lt;p&gt;The &lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt; class provides a rich text browser with hypertext navigation.&lt;/p&gt;
&lt;p&gt;This class extends &lt;a href=&quot;QTextEdit.html#QTextEdit(java.lang.String, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt; (in read-only mode), adding some navigation functionality so that users can follow links in hypertext documents.&lt;/p&gt;
&lt;p&gt;If you want to provide your users with an editable rich text editor, use &lt;a href=&quot;QTextEdit.html#QTextEdit(java.lang.String, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt;. If you want a text browser without hypertext navigation use &lt;a href=&quot;QTextEdit.html#QTextEdit(java.lang.String, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt;, and use QTextEdit::setReadOnly() to disable editing. If you just need to display a small piece of rich text use &lt;a href=&quot;QLabel.html&quot;&gt;&lt;tt&gt;QLabel&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;a name=&quot;document-source-and-contents&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Document Source and Contents&lt;/h3&gt;
&lt;p&gt;The contents of &lt;a href=&quot;QTextEdit.html#QTextEdit(java.lang.String, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt; are set with &lt;a href=&quot;QTextEdit.html#setHtml(java.lang.String)&quot;&gt;&lt;tt&gt;setHtml&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QTextEdit.html#setPlainText(java.lang.String)&quot;&gt;&lt;tt&gt;setPlainText&lt;/tt&gt;&lt;/a&gt;, but &lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt; also implements the &lt;a href=&quot;QTextBrowser.html#setSource(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;setSource&lt;/tt&gt;&lt;/a&gt; function, making it possible to use a named document as the source text. The name is looked up in a list of search paths and in the directory of the current document factory.&lt;/p&gt;
&lt;p&gt;If a document name ends with an anchor (for example, &amp;quot;&lt;tt&gt;#anchor&amp;quot;&lt;/tt&gt;), the text browser automatically scrolls to that position (using &lt;a href=&quot;QTextEdit.html#scrollToAnchor(java.lang.String)&quot;&gt;&lt;tt&gt;scrollToAnchor&lt;/tt&gt;&lt;/a&gt;). When the user clicks on a hyperlink, the browser will call &lt;a href=&quot;QTextBrowser.html#setSource(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;setSource&lt;/tt&gt;&lt;/a&gt; itself with the link's &lt;tt&gt;href&lt;/tt&gt; value as argument. You can track the current source by connecting to the &lt;a href=&quot;QTextBrowser.html#sourceChanged(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;sourceChanged&lt;/tt&gt;&lt;/a&gt; signal.&lt;/p&gt;
&lt;a name=&quot;navigation&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Navigation&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt; provides &lt;a href=&quot;QTextBrowser.html#backward()&quot;&gt;&lt;tt&gt;backward&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QTextBrowser.html#forward()&quot;&gt;&lt;tt&gt;forward&lt;/tt&gt;&lt;/a&gt; slots which you can use to implement Back and Forward buttons. The &lt;a href=&quot;QTextBrowser.html#home()&quot;&gt;&lt;tt&gt;home&lt;/tt&gt;&lt;/a&gt; slot sets the text to the very first document displayed. The &lt;a href=&quot;QTextBrowser.html#anchorClicked(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;anchorClicked&lt;/tt&gt;&lt;/a&gt; signal is emitted when the user clicks an anchor. To override the default navigation behavior of the browser, call the &lt;a href=&quot;QTextBrowser.html#setSource(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;setSource&lt;/tt&gt;&lt;/a&gt; function to supply new document text in a slot connected to this signal.&lt;/p&gt;
&lt;p&gt;If you want to load documents stored in the Qt resource system use &lt;tt&gt;qrc&lt;/tt&gt; as the scheme in the URL to load. For example, for the document resource path &lt;tt&gt;:/docs/index.html&lt;/tt&gt; use &lt;tt&gt;qrc:/docs/index.html&lt;/tt&gt; as the URL with &lt;a href=&quot;QTextBrowser.html#setSource(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;setSource&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextEdit.html#QTextEdit(java.lang.String, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextDocument.html&quot;&gt;&lt;tt&gt;QTextDocument&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void anchorClicked(com.trolltech.qt.core.QUrl arg__1)" doc="/**
&lt;p&gt;This signal is emitted when the user clicks an anchor. The URL referred to by the anchor is passed in &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that the browser will automatically handle navigation to the location specified by &lt;tt&gt;arg__1&lt;/tt&gt; unless the &lt;a href=&quot;QTextBrowser.html#openLinks()&quot;&gt;&lt;tt&gt;openLinks&lt;/tt&gt;&lt;/a&gt; property is set to false or you call &lt;a href=&quot;QTextBrowser.html#setSource(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;setSource&lt;/tt&gt;&lt;/a&gt; in a slot connected. This mechanism is used to override the default navigation features of the browser.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QUrl arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void backwardAvailable(boolean arg__1)" doc="/**
&lt;p&gt;This signal is emitted when the availability of &lt;a href=&quot;QTextBrowser.html#backward()&quot;&gt;&lt;tt&gt;backward&lt;/tt&gt;&lt;/a&gt; changes. &lt;tt&gt;arg__1&lt;/tt&gt; is false when the user is at &lt;a href=&quot;QTextBrowser.html#home()&quot;&gt;&lt;tt&gt;home&lt;/tt&gt;&lt;/a&gt;; otherwise it is true.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void copyAvailable(boolean b)" doc="/**
&lt;p&gt;This signal is emitted when text is selected or de-selected in the text edit.&lt;/p&gt;
&lt;p&gt;When text is selected this signal will be emitted with &lt;tt&gt;b&lt;/tt&gt; set to true. If no text has been selected or if the selected text is de-selected this signal is emitted with &lt;tt&gt;b&lt;/tt&gt; set to false.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;b&lt;/tt&gt; is true then &lt;a href=&quot;QTextEdit.html#copy()&quot;&gt;&lt;tt&gt;copy&lt;/tt&gt;&lt;/a&gt; can be used to copy the selection to the clipboard. If &lt;tt&gt;b&lt;/tt&gt; is false then &lt;a href=&quot;QTextEdit.html#copy()&quot;&gt;&lt;tt&gt;copy&lt;/tt&gt;&lt;/a&gt; does nothing.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean b)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QTextBrowser.html#selectionChanged()&quot;&gt;&lt;tt&gt;selectionChanged&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void currentCharFormatChanged(com.trolltech.qt.gui.QTextCharFormat format)" doc="/**
&lt;p&gt;This signal is emitted if the current character format has changed, for example caused by a change of the cursor position.&lt;/p&gt;
&lt;p&gt;The new format is &lt;tt&gt;format&lt;/tt&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.gui.QTextCharFormat format)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QTextEdit.html#setCurrentCharFormat(com.trolltech.qt.gui.QTextCharFormat)&quot;&gt;&lt;tt&gt;setCurrentCharFormat&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void cursorPositionChanged()" doc="/**
&lt;p&gt;This signal is emitted whenever the position of the cursor changed.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QPoint pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void forwardAvailable(boolean arg__1)" doc="/**
&lt;p&gt;This signal is emitted when the availability of &lt;a href=&quot;QTextBrowser.html#forward()&quot;&gt;&lt;tt&gt;forward&lt;/tt&gt;&lt;/a&gt; changes. &lt;tt&gt;arg__1&lt;/tt&gt; is true after the user navigates &lt;a href=&quot;QTextBrowser.html#backward()&quot;&gt;&lt;tt&gt;backward&lt;/tt&gt;&lt;/a&gt; and false when the user navigates or goes &lt;a href=&quot;QTextBrowser.html#forward()&quot;&gt;&lt;tt&gt;forward&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void highlightedString(java.lang.String arg__1)" doc="/**
&lt;p&gt;Convenience signal that allows connecting to a slot that takes just a &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;, like for example &lt;a href=&quot;QStatusBar.html&quot;&gt;&lt;tt&gt;QStatusBar&lt;/tt&gt;&lt;/a&gt;'s message().&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(java.lang.String arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void highlighted(com.trolltech.qt.core.QUrl arg__1)" doc="/**
&lt;p&gt;This signal is emitted when the user has selected but not activated an anchor in the document. The URL referred to by the anchor is passed in &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QUrl arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void redoAvailable(boolean b)" doc="/**
&lt;p&gt;This signal is emitted whenever redo operations become available (&lt;tt&gt;b&lt;/tt&gt; is true) or unavailable (&lt;tt&gt;b&lt;/tt&gt; is false).&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean b)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void selectionChanged()" doc="/**
&lt;p&gt;This signal is emitted whenever the selection changes.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QTextBrowser.html#copyAvailable(boolean)&quot;&gt;&lt;tt&gt;copyAvailable&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void sourceChanged(com.trolltech.qt.core.QUrl arg__1)" doc="/**
&lt;p&gt;This signal is emitted when the source has changed, &lt;tt&gt;arg__1&lt;/tt&gt; being the new source.&lt;/p&gt;
&lt;p&gt;Source changes happen both programmatically when calling &lt;a href=&quot;QTextBrowser.html#setSource(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;setSource&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QTextBrowser.html#forward()&quot;&gt;&lt;tt&gt;forward&lt;/tt&gt;&lt;/a&gt;, backword() or &lt;a href=&quot;QTextBrowser.html#home()&quot;&gt;&lt;tt&gt;home&lt;/tt&gt;&lt;/a&gt; or when the user clicks on links or presses the equivalent key sequences.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QUrl arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void textChanged()" doc="/**
&lt;p&gt;This signal is emitted whenever the document's content changes; for example, when text is inserted or deleted, or when formatting is applied.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void undoAvailable(boolean b)" doc="/**
&lt;p&gt;This signal is emitted whenever undo operations become available (&lt;tt&gt;b&lt;/tt&gt; is true) or unavailable (&lt;tt&gt;b&lt;/tt&gt; is false).&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(boolean b)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QTextBrowser(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs an empty &lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt; with parent &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QTextBrowser()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final void clearHistory()" doc="/**
&lt;p&gt;Clears the history of visited documents and disables the forward and backward navigation.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#backward()&quot;&gt;&lt;tt&gt;backward&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextBrowser.html#forward()&quot;&gt;&lt;tt&gt;forward&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isBackwardAvailable()" doc="/**
&lt;p&gt;Returns true if the text browser can go backward in the document history using &lt;a href=&quot;QTextBrowser.html#backward()&quot;&gt;&lt;tt&gt;backward&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#backwardAvailable(boolean)&quot;&gt;&lt;tt&gt;backwardAvailable&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextBrowser.html#backward()&quot;&gt;&lt;tt&gt;backward&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isForwardAvailable()" doc="/**
&lt;p&gt;Returns true if the text browser can go forward in the document history using &lt;a href=&quot;QTextBrowser.html#forward()&quot;&gt;&lt;tt&gt;forward&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#forwardAvailable(boolean)&quot;&gt;&lt;tt&gt;forwardAvailable&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextBrowser.html#forward()&quot;&gt;&lt;tt&gt;forward&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean openExternalLinks()" doc="/**
&lt;p&gt;Specifies whether &lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt; should automatically open links to external sources using QDesktopServices::openUrl() instead of emitting the &lt;a href=&quot;QTextBrowser.html#anchorClicked(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;anchorClicked&lt;/tt&gt;&lt;/a&gt; signal. Links are considered external if their scheme is neither file or qrc.&lt;/p&gt;
&lt;p&gt;The default value is false.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#setOpenExternalLinks(boolean)&quot;&gt;&lt;tt&gt;setOpenExternalLinks&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean openLinks()" doc="/**
&lt;p&gt;This property specifies whether &lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt; should automatically open links the user tries to activate by mouse or keyboard.&lt;/p&gt;
&lt;p&gt;Regardless of the value of this property the &lt;a href=&quot;QTextBrowser.html#anchorClicked(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;anchorClicked&lt;/tt&gt;&lt;/a&gt; signal is always emitted.&lt;/p&gt;
&lt;p&gt;The default value is true.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#setOpenLinks(boolean)&quot;&gt;&lt;tt&gt;setOpenLinks&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;java.lang.String&gt; searchPaths()" doc="/**
&lt;p&gt;Returns the search paths used by the text browser to find supporting content.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt; uses this list to locate images and documents.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#setSearchPaths(java.util.List&lt;java.lang.String&gt;)&quot;&gt;&lt;tt&gt;setSearchPaths&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setOpenExternalLinks(boolean open)" doc="/**
&lt;p&gt;Specifies whether &lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt; should automatically open links to external sources using QDesktopServices::openUrl() instead of emitting the &lt;a href=&quot;QTextBrowser.html#anchorClicked(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;anchorClicked&lt;/tt&gt;&lt;/a&gt; signal. Links are considered external if their scheme is neither file or qrc.&lt;/p&gt;
&lt;p&gt;The default value is false.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#openExternalLinks()&quot;&gt;&lt;tt&gt;openExternalLinks&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setOpenLinks(boolean open)" doc="/**
&lt;p&gt;This property specifies whether &lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt; should automatically open links the user tries to activate by mouse or keyboard.&lt;/p&gt;
&lt;p&gt;Regardless of the value of this property the &lt;a href=&quot;QTextBrowser.html#anchorClicked(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;anchorClicked&lt;/tt&gt;&lt;/a&gt; signal is always emitted.&lt;/p&gt;
&lt;p&gt;The default value is true.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#openLinks()&quot;&gt;&lt;tt&gt;openLinks&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSearchPaths(java.util.List&lt;java.lang.String&gt; paths)" doc="/**
&lt;p&gt;Sets the search paths used by the text browser to find supporting content to &lt;tt&gt;paths&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt; uses this list to locate images and documents.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#searchPaths()&quot;&gt;&lt;tt&gt;searchPaths&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QUrl source()" doc="/**
&lt;p&gt;Returns the name of the displayed document..&lt;/p&gt;
&lt;p&gt;This is a an invalid url if no document is displayed or if the source is unknown.&lt;/p&gt;
&lt;p&gt;When setting this property &lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt; tries to find a document with the specified name in the paths of the &lt;a href=&quot;QTextBrowser.html#searchPaths()&quot;&gt;&lt;tt&gt;searchPaths&lt;/tt&gt;&lt;/a&gt; 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&lt;/p&gt;
&lt;p&gt;If the first tag in the document is &lt;tt&gt;&amp;lt;qt type=detail&amp;gt;&lt;/tt&gt;, 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 &lt;a href=&quot;QTextEdit.html#setHtml(java.lang.String)&quot;&gt;&lt;tt&gt;setHtml&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#setSource(com.trolltech.qt.core.QUrl)&quot;&gt;&lt;tt&gt;setSource&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void backward()" doc="/**
&lt;p&gt;Changes the document displayed to the previous document in the list of documents built by navigating links. Does nothing if there is no previous document.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#forward()&quot;&gt;&lt;tt&gt;forward&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextBrowser.html#backwardAvailable(boolean)&quot;&gt;&lt;tt&gt;backwardAvailable&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent e)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected boolean focusNextPrevChild(boolean next)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void focusOutEvent(com.trolltech.qt.gui.QFocusEvent ev)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void forward()" doc="/**
&lt;p&gt;Changes the document displayed to the next document in the list of documents built by navigating links. Does nothing if there is no next document.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#backward()&quot;&gt;&lt;tt&gt;backward&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QTextBrowser.html#forwardAvailable(boolean)&quot;&gt;&lt;tt&gt;forwardAvailable&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void home()" doc="/**
&lt;p&gt;Changes the document displayed to be the first document the browser displayed.&lt;/p&gt;
 */"/>
    <method name="protected void keyPressEvent(com.trolltech.qt.gui.QKeyEvent ev)" doc="/**
&lt;p&gt;The event &lt;tt&gt;ev&lt;/tt&gt; is used to provide the following keyboard shortcuts:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Keypress&lt;/th&gt;&lt;th&gt;Action&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Alt+Left Arrow&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QTextBrowser.html#backward()&quot;&gt;&lt;tt&gt;backward&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Alt+Right Arrow&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QTextBrowser.html#forward()&quot;&gt;&lt;tt&gt;forward&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;Alt+Up Arrow&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QTextBrowser.html#home()&quot;&gt;&lt;tt&gt;home&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
 */"/>
    <method name="public java.lang.Object loadResource(int type, com.trolltech.qt.core.QUrl name)" doc="/**
&lt;p&gt;This function is called when the document is loaded. The &lt;tt&gt;type&lt;/tt&gt; indicates the type of resource to be loaded. For each image in the document, this function is called once.&lt;/p&gt;
&lt;p&gt;The default implementation ignores &lt;tt&gt;type&lt;/tt&gt; and tries to locate the resources by interpreting &lt;tt&gt;name&lt;/tt&gt; as a file name. If it is not an absolute path it tries to find the file in the paths of the &lt;a href=&quot;QTextBrowser.html#searchPaths()&quot;&gt;&lt;tt&gt;searchPaths&lt;/tt&gt;&lt;/a&gt; property and in the same directory as the current source. On success, the result is a &lt;a href=&quot;%2E%2E/porting4.html#qvariant&quot;&gt;&lt;tt&gt;QVariant&lt;/tt&gt;&lt;/a&gt; that stores a &lt;a href=&quot;%2E%2E/core/QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; with the contents of the file.&lt;/p&gt;
&lt;p&gt;If you reimplement this function, you can return other &lt;a href=&quot;%2E%2E/porting4.html#qvariant&quot;&gt;&lt;tt&gt;QVariant&lt;/tt&gt;&lt;/a&gt; types. The table below shows which variant types are supported depending on the resource type:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;ResourceType&lt;/th&gt;&lt;th&gt;QVariant::Type&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;QTextDocument::HtmlResource&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;%2E%2E/core/QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;QTextDocument::ImageResource&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;%2E%2E/core/QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;QTextDocument::StyleSheetResource&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;%2E%2E/core/QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
 */"/>
    <method name="protected void mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent ev)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void mousePressEvent(com.trolltech.qt.gui.QMouseEvent ev)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent ev)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent e)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void reload()" doc="/**
&lt;p&gt;Reloads the current set source.&lt;/p&gt;
 */"/>
    <method name="public void setSource(com.trolltech.qt.core.QUrl name)" doc="/**
&lt;p&gt;Sets the name of the displayed document. to &lt;tt&gt;name&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This is a an invalid url if no document is displayed or if the source is unknown.&lt;/p&gt;
&lt;p&gt;When setting this property &lt;a href=&quot;QTextBrowser.html#QTextBrowser(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QTextBrowser&lt;/tt&gt;&lt;/a&gt; tries to find a document with the specified name in the paths of the &lt;a href=&quot;QTextBrowser.html#searchPaths()&quot;&gt;&lt;tt&gt;searchPaths&lt;/tt&gt;&lt;/a&gt; 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&lt;/p&gt;
&lt;p&gt;If the first tag in the document is &lt;tt&gt;&amp;lt;qt type=detail&amp;gt;&lt;/tt&gt;, 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 &lt;a href=&quot;QTextEdit.html#setHtml(java.lang.String)&quot;&gt;&lt;tt&gt;setHtml&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QTextBrowser.html#source()&quot;&gt;&lt;tt&gt;source&lt;/tt&gt;&lt;/a&gt; */"/>
</class>
