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
1 answer

How to use system font in Qtextbrowser

I am writing a Qt application, and I would like to use system's default fonts in the QTextBrowser. Is there any way to query what the default system font is, and set the same in QTextBrowser? The following snippet shows what I have now: QString…
devendra rai
  • 135
  • 12
0
votes
1 answer

Right Click Context Menu for QTextBrowser

I'm trying to add a custom contextMenu for the QTextBrowser that i have in my Qt application, but it doesn't seem to work. I'm using the steps explained in the following link defined for the Element QLineEdit, however it doesn't…
Ameen
  • 1,857
  • 2
  • 23
  • 30
0
votes
1 answer

Set text in QTextBrowser with a QString that includes QProcess enums

I want to write a QString that includes two QProcess enums into a QTextBrowser. Therefore I used in one of my methods: QString Text = "Error! Exit-Status: " + Status + QString(" Error-Code: ") + Prozess.error() + " File not…
Streight
  • 811
  • 4
  • 15
  • 28
-1
votes
1 answer

tableContent wont update the contents when the search criteria changed

I have a student marksheet software that should populate its content by subject names, teachers, units, exam types and marks for one of the two years from sqlite table. I have used a combobox to change (switch) the data from year one to year two and…
Ghaith
  • 1
  • 1
  • 8
-1
votes
1 answer

Qtextbrowser pyqt5 problem after click on anchor

This is a small sample code for an application using socket. Аfter clicking on a link 'textlink' and adding untagged text by pressing 'add text' button, all subsequent text become hyperlink. By pressing gethtml button you can get html code in…
Alexandr
  • 21
  • 4
-1
votes
1 answer

How to make text in QTextBrowser selectable?

I want to be able to select a piece of text in a non-custom way, the way you click on a website link in the middle of a text ( "Hello my name is www.google.com", www.google.com isn't highlighted when you press on it. When you press on it, it takes…
Said Amir
  • 36
  • 6
1 2 3
9
10