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

Disable drag text in QTextBrowser

I want to enable my text in QTextBrowser to be selected but not to be dragged. Is there any way to disable dragging in QTextBrowser (or QTextEdit)? Please help me.
Kha Tran
  • 193
  • 1
  • 1
  • 10
0
votes
1 answer

QTextBrowser could not show all data at run time

My problem is that QTextBrowser can not show all data that is appended to it. I am using qt5.4 on windows. My class like this: class InfoTextBrowser : public QTextBrowser { Q_OBJECT public: InfoTextBrowser(QObject *parent); …
Wilmort
  • 294
  • 2
  • 15
0
votes
1 answer

How can I select a href tags in a QTextBrowser from QSS?

I would like to format my clickable URLs inside a QTextBrowser. In a QSS file that I set for the entire application, I've tried QTextBrowser::text.a and QTextBrowser.a, but neither worked. Am I actually expected to manually format every link using…
user4520
  • 3,401
  • 1
  • 27
  • 50
0
votes
1 answer

Read specific text in an updating qtextbrowser

In python I have a QtextBrowser which is fed the output of an external command. this works great Within the output is a progress update: loadingfile processing file progress 5% progress 10% progress 25% .... closing file processing completed I want…
sjm1983
  • 1
  • 1
0
votes
0 answers

Zoom images in QTextBrowser

I have custom text browser class derived from QTextBrowser class. Also I have QTextDocument in it with formatted html text and several resource images. QTextBrowser has zoom in/zoom out option that make font of document larger or smaller.But the…
Vasyl
  • 404
  • 1
  • 6
  • 19
0
votes
0 answers

pipe the output of sys.stdout to text browser in pyqt

I m trying to pipe my output to text browser of pyqt. right now i m creating a class having only write method. class port: def __init__(self,view): self.view = view def write(self,*args): self.view.append(*args) then…
GIRISH RAMNANI
  • 614
  • 6
  • 18
0
votes
1 answer

Selection of text in QTextBrowser

I have a QTextBrowser and when I select a part of the text inside, I need the position of the start and the end of the selection. I do that with mousePressEvent and mouseReleaseEvent and it works, but the highlight selection (dark blue) doesn't…
Malain
  • 3
  • 3
0
votes
1 answer

Qt 5, Undo/Redo for every QTextBrowser in QTabWidget

I want to create multitab text and html editor .I ecountered the problem : i need to implement undo/redo operation for each text browser individually .But the operations are applied to all windows at oncee. How can i fix it ?
Creati8e
  • 21
  • 1
  • 7
0
votes
1 answer

QTextBrowser append() causes text to become a hyperlink

I'm trying to use QTextBrowser from PySide but I'm facing a problem. Whenever I click on an anchor and append plain text to the QTextBrowser after that, the plain text becomes an anchor! Here is my code: from PySide.QtGui import QTextBrowser,…
Naren
  • 27
  • 1
  • 6
0
votes
1 answer

Passing values through links in QT

I'm writing a program in C++ and qt4 that is supposed to generate a various number (hundreds )of clickable links in a QTextBrowser depending on data from input files. The idea is that when the user clicks one of these links a value will be passed…
0
votes
1 answer

PySide/PyQt Is it possible to get the string of an anchor in QTextBrowser

In the following code is there anyway for python to tell what the 'word' in the middle of the href tags was when receiving the anchorClicked signal? word = '' + '' + word + '' +'' I tried…
UrbKr
  • 621
  • 2
  • 11
  • 27
0
votes
1 answer

PySide/PyQt Signal sent when highlighting text in QTextBrowser

Is there a signal that is sent by QTextBrowser when highlighting text? self.textBrowser.highlighted.connect(self.test) def test(self,argv_1): print('This Worked') When I tried this the signal didn't seem to be sent.
UrbKr
  • 621
  • 2
  • 11
  • 27
0
votes
1 answer

make a auto adjustable QTextBrowser

hello i need make a auto adjustable QTextBrowser. It's means the height of the QBrowserText depend of the number of rows it contained, somebody can help me please ?
Dan Snow
  • 127
  • 1
  • 11
0
votes
1 answer

QTextBrowser Hyperlinks in PyQt4

I have a QTextBrowser where I've entered that sample text: Column1 Column2 1 2 3 4 www.google.com Between the columns there are tabs and between the numbers there are spaces. plainText=QTextBrowser.toPlainText() gives: Column1 Column2 1 2…
user2366975
  • 4,350
  • 9
  • 47
  • 87
0
votes
1 answer

QTextBrowser trouble with css

In my application im trying to load a simple formatted text with some images into QTextBrowser. When im trying to set my image size using : The qtextbrowser is…
SirLanceloaaat
  • 213
  • 9
  • 18
1 2 3
9
10