Questions tagged [qtextbrowser]

QTextBrowser is a Qt widget providing a rich text browser with hypertext navigation capability.

QTextBrowser class extends QTextEdit in read-only mode adding some navigation functionality. This allows users follow links in hypertext documents.

Official Qt documentation can be found here for Qt 4.8 and here for Qt 5.

141 questions
0
votes
0 answers

How to enable javascript support on text based browser like elinks on linux virtual machine.?

How can I enable javascript on elinks for Microsoft login to authorize a request on a virtual machine(Linux)?
0
votes
1 answer

QTextBrowser insertPlainText() insert much data causes NO RESPONSE

I use insertPlainText() to insert data to QTextBrowser in the slot function, but It seems result in lag even no response along with data increasement. But when I add '\n' at the end of data to simulate the append(), the lag phenomenon disappeared.…
inhowe
  • 1
  • 1
0
votes
1 answer

Displaying a dataframe in PyQt textbrowser

Not able to get this table aligned , it looks very messy. self.textBrowser = QtWidgets.QTextBrowser(self.centralwidget) self.textBrowser.setGeometry(QtCore.QRect(600, 10, 500,800)) self.textBrowser.setObjectName("textBrowser") …
Arvind Sudheer
  • 113
  • 1
  • 1
  • 14
0
votes
1 answer

How to set bottom border using css in QTextBrowser?

Suppose I have a QT window (using Pyside2, like PyQT5) with the following widget: import sys from PySide2.QtWidgets import QApplication, QMainWindow, QTextBrowser app = QApplication(sys.argv) main_window = QMainWindow() html_string =…
akeeman
  • 1
  • 3
0
votes
0 answers

Impossible displaying authors, documenters, translators in a QTextBrowser

I' m now able to display the licence in the last tab but impossible for the first, second and third tab. In fact, it is the same thing than the first tab. Even it is a secondary GUI (displayed in the main window when she is called). Here the code of…
0
votes
1 answer

QTextBrowser displaying nested HTML list with extraneous whitespace

In an application I'm building I'm displaying some HTML using QTextBrowser. The HTML contains some nested lists, and I'm finding that the last parent item has some extra white space between it and its first child list item. Simplified…
dan_g
  • 2,712
  • 5
  • 25
  • 44
0
votes
2 answers

QTextBrowser for Helper

I am trying to make a helper with QTextBrowser. As I understood, home(), backward() and forward() are already implemented in QTextBrowser and required only connections to the buttons. Below there is .h and .cpp files #ifndef HELPWINDOW_H #define…
Alex1974
  • 29
  • 4
0
votes
0 answers

Running a python method or script clicking a html text link (Qtextbrowser)

There are similar posts to this question but none match what I need. In a QtextBrowser I have several text links. On clicking one of them, I need to capture this string and send it as parameter to a python method in order to display another…
0
votes
1 answer

Expand/resize QTextBrowser widget by the user without using QLayout

In my application there is QTextBrowser widget and the data will be appended to it for every 1 second. I know that when data hits the bottom of the widget, a vertical scroll bar will be created. But, Is it possible to expand the size of QTextBrowser…
mg1
  • 101
  • 1
  • 6
0
votes
1 answer

Why QTextBrowser is messing up my HTML code?

I am trying to create a PDF Invoices, since my requirement is pretty basic I thought of using HTML + QTextBrowser. I have written functions which will create HTML code according to my needs. For ex if I want to insert text there is a function for…
Gurushant
  • 952
  • 6
  • 23
0
votes
1 answer

QT QTextBrowser disable write position when left-click

I'm writing a QT application that includes QTextBrowser. When the app doing some functions the function prints lines in the QTextBrowser and during write the lines if i press the mouse left button on any printed line on the QTextBrowser the app…
John
  • 165
  • 1
  • 12
0
votes
1 answer

Python - pyqt5 - Alignment of text goes wrong in qtextbrowser when working with a specific font

I have a string array which contains strings of a specific font (සිංහල). When I append those strings to a qtextbroswer, alignment goes wrong as [this output screenshot.] I think the caused character for this issue is 'නු'. Because it has higher…
Ishara Madhawa
  • 3,549
  • 5
  • 24
  • 42
0
votes
1 answer

Python - pyqt5 - clear selections of QTextBrowser

I want to clear the selection in QTextBrowser (clear the highlighting). self.textBrowser.textCursor().clearSelection() Above code is not working for me.
Ishara Madhawa
  • 3,549
  • 5
  • 24
  • 42
0
votes
1 answer

Selection of text in QTextBrowser using mousePressEvent() and mouseReleaseEvent()

I have a QTextBrowser and I want to select a part of the text inside, I need the position of the start and the end of the selection. I want to do that with mousePressEvent and mouseReleaseEvent. Here is my code, class MainWindow(QMainWindow,…
Ishara Madhawa
  • 3,549
  • 5
  • 24
  • 42
0
votes
1 answer

Python PyQt5 QTextBrowser hyperlink loses part of link

Hi i have a small problem with hyperlink in QTextBrowser. I create links with this code with ID from json parsing: ID = data["response"]["recordings"][0]["id"] aLink = " %s" % (ID, ID) print(aLink) When i…
Ziga
  • 5
  • 1