Skip to main content

Questions tagged [qtextedit]

QTextEdit is a class from the Qt Toolkit which provides a widget that is used to edit and display both plain and rich text. It is optimized to handle large documents and to respond quickly to user input.

qtextedit
0 votes
1 answer
44 views

Automatically expanding and contracting `QTextEdit` for PyQt5

I'm trying to create a custom QTextEdit widget in PyQt5 that automatically expands and contracts based on its content. The widget should grow in height as the user types new lines and shrink when ...
ExUltra's user avatar
0 votes
1 answer
73 views

how to only get the numbers to solve an equation in qt widget?

I want to write an equation in one text edit and show the result in another. For example, in one text edit, I write: (3x2+5x-6) How do I only get the numbers in the equation above to solve the ...
Nazanin R's user avatar
0 votes
0 answers
29 views

I can't get text from QTextEdit (qt6, c++) and can do it with QLineEdit, i have error: The exclusion of 0x00007FF8B1552476 (Qt6widgets.dll)

I doing my project about cryptography in c++ , visual studio, using qt6 library with crypto++. I try get text from QTextEdit during the execution of the program and I have error: The exclusion of ...
Mari's user avatar
  • 1
1 vote
1 answer
88 views

Text remaining indented after indented block when using insertHtml in QTextEdit

I am making a GUI that has a window with a QTextEdit widget that I am using as a log to track the status of a process running on a separate thread. I have been using HTML to try to control the color ...
dustin_dawind's user avatar
1 vote
0 answers
76 views

QTextEdit widget Pyside6, setHtml, how to place 2 div side by side

First, let me apologize for my rusted English. I want to display 2 html div in a QTextEdit widget (python, PySide6). Here is my code: <!DOCTYPE html> <html lang="en"> <head>...
camille's user avatar
  • 11
0 votes
0 answers
18 views

QTextEdit - highlighting text on input

I have a QTextEdit loaded from a file which highlights words which match a model and this works fine. I now want to be able to type text in or paste text in and apply the same highlighting. For the ...
banjo bill's user avatar
0 votes
0 answers
114 views

How to set QTextEdit formatting to preserve quote indentation, superscripts, and subscripts?

I'm working on making an application that has a rich text editor that saves in Markdown format. As Markdown obviously isn't capable of displaying many rich text features, I'm limiting the formatting ...
ArrayBolt3's user avatar
0 votes
0 answers
18 views

Drawing Arrows in PyQt5 QTextEdit Relative to Text Content [duplicate]

I'm working on a PyQt5 application where I need to draw arrows in a QTextEdit widget. The arrows represent relationships between specific words in the text. I have implemented a custom QTextEdit class ...
Mazze's user avatar
  • 433
0 votes
1 answer
40 views

Problem with mixing Latin and Arabic text in QTextEdit

I'm using QTextEdit to show messages in my app. My problem is that QTextEdit doesn't show messages correctly when I use Latin and Arabic text simultaneously. Correct order: Incorrect order: As you ...
Arash Rafiee's user avatar
-1 votes
1 answer
133 views

How to copy an image from qtextedit in pyside6 and paste it into MS-WORD

I'm using pyside6's qtextedit to write text and images. And in this state, I want to copy the content to the clipboard and insert it into ms-word. The content of qtextedit consists of several texts ...
HyoSeok Jeon's user avatar
0 votes
0 answers
38 views

Tooltip Dissappears when Mouse Cursor Is In Tooltip Content Area

I am having simple Text Editor. Once I hover on word, the tooltip text which is defined in tooltips dictionary is visible. It works fine. But I have following problem. When tooltip text is too large, ...
lilson's user avatar
  • 13
3 votes
0 answers
95 views

Segmentation fault while creating QTextEdit

I wrote a minimal example in which my application crashes. I can't figure out what's wrong. I hope someone has thoughts about the reason for this segfault. if you increase the QTimer timeout, for ...
Narina's user avatar
  • 33
0 votes
1 answer
158 views

How do I add a full-width horizontal line in QTextEdit?

I am trying to add a full-width horizontal line in QTextEdit from PyQt5.QtWidgets. My function looks like this: def print_results(self, results): self.result_text_box.clear() self.cursor = ...
Orius's user avatar
  • 1,093
0 votes
0 answers
177 views

How to use QSizePolicy to fix height of QTextEdit in QVBoxLayout?

I am building an application in which I have implemented a feedback space for error and success messages in a scrollable QTextEdit widget. The QTextEdit widget creates a log-like similar output and I ...
nospec's user avatar
  • 41
1 vote
1 answer
139 views

Removing/hiding the extra block/line from the beginning of a QTextEdit frame

When inserting a text frame, there is a text block above the frame that I cannot figure out how to get rid of, even when inserting the frame from position zero of the document. It looks like the text ...
cookieobjects's user avatar

15 30 50 per page
1
2 3 4 5
39