qtextedit Questions
4
I need a rich text editor for Qt. I've been thinking about using QTextEdit since it's a rich text edit, but I need two things that aren't present in that widget:
The user should be able to ...
Hauptmann asked 24/7, 2012 at 12:14
5
I have a QTextEdit which act as "displayer" (editable to false). The text it displays is wordwrapped. Now I do wish to set the height of this textbox so that the text fits exactly (while also respe...
1
I am trying to develop a GUI that contains a QTextEdit widget. When the gui loads, it pulls in data from a file where the data is in columns of fixed widths.
I want the user to be able to click at...
Dress asked 21/5, 2015 at 10:51
2
Solved
Looking for a way to have an auto completion with a QTextEdit and QCompleter. I have read that it is possible but didn't find any example...
I'm using python3.4 and PyQt5
I'm looking for a very ba...
Delete asked 10/3, 2015 at 5:23
3
Using a QTextEdit, I need to change the font attributes of each paragraph individually. This is similar to how many word processors change the font of a paragraph when the user select a style from ...
2
Solved
I have a QTextEdit widget whose contents are populated programmatically using QTextEdit.textCursor.
My plan is to let the user view the populated information in the QTextEdit, edit the text if nec...
Ypsilanti asked 28/10, 2014 at 2:39
2
Solved
I have an escape sequences in a text, like
char const * text = "\e[1;33m" "some colored text" "\e[0m";
Which usually printed in terminal. But I want to forward this t...
2
Solved
I'm using PySide(PyQt is fine as well) and I want to deselect everything inside a QTextEdit. Selecting everything is very easy and it's done by self.textedit.selectAll(), but I can't find a simple ...
Nielson asked 17/8, 2014 at 9:11
1
Solved
I have a QPlainTextEdit and I'm building a progress dialog for it when opening large files. Rather than using setText, I want to add one line of text at a time by using QTextCursor.insertText. The ...
Ember asked 15/8, 2014 at 5:23
1
Solved
I've researched this extensively but haven't found a satisfactory solution yet:
How do I append text at the end of QTextEdit widget without triggering a scroll to the bottom of the widget when eit...
Deadman asked 22/2, 2014 at 14:54
1
Solved
I have a simple form with some combos, labels, buttons and a QTextEdit.
I try to catch the enter or return key with keyPressEvent, but for some reason I'm not able to.
The ESC key however, that I ...
1
Solved
I am trying to get the text from a text edit and store it in a QString .
When I write this
QString text = ui->textEdit->toPlainText();
it only reads the text before the first '\n'
So how ...
Bonner asked 17/10, 2013 at 12:49
1
Solved
What's the difference between QTextEdit and QPlainTextEdit, why use one over the other?
I'm coding a text editor as an exercice to learn Qt5, and now I'm wondering whether to use QTextEdit or QPla...
Ascogonium asked 4/7, 2013 at 8:57
1
I wish to number the lines in a textEdit in such a way that the line number do not get copied or cut where as the rest of the data which I dump in it can be accesed.
1
Solved
Whenever I pressed enter in my QTextEdit it'll perform a click on my login button. Somehow this causes a crash of my QtCreator. How can I change what'll happen If I press enter in my QTextEdit?
1
Solved
Here is a small snippet of my code, I don't know why but Qt is ignoring the css.
QTextDocument *mTextDocument = new QTextDocument(0);
QTextEdit *textEdit = new QTextEdit(0);
mTextDocument->setD...
Olivaolivaceous asked 31/3, 2013 at 14:6
3
Solved
I'm completely new to C++ and Qt.
I want to populate a QTextEdit object with QTextBlocks, how do I do that?
e.g. If I have the sentence "the fish are coming" how would I put each word into its ow...
1
Solved
I'm a student programmer currently developing an application for work using Qt4. I am building an equation editor and I'm having issues attempting to highlight a string within my QTextEdit field. I...
Vivianviviana asked 14/2, 2013 at 22:46
1
I have a QTextEdit and I connected the textChanged() slot to a signal. How can I find the changes when the signal is emitted. For example, I want to save the cursor position and the character writt...
2
Solved
I am creating a form with some QTextEdit widgets.
The default height of the QTextEdit exceeds a single line of text and as the contents' height exceeds the QTextEdit's height, it creates a scroll-...
2
Solved
How can I auto scroll for the scroll area? For example, when there is a new update instead of the view of the scroll area staying the same, I want to go down with the new text. Think of it as in a ...
Iinden asked 9/8, 2012 at 15:37
2
Solved
1
Solved
I'm struggling with block/line removal from QTextEdit. Code below should(?) work but it ends up in infinite loop for some unknown to me reason. I have a suspicion that next() and previous() are not...
Adamok asked 2/5, 2012 at 16:23
1
Solved
there! I want to find out how to change current line format in QTextEdit?
In the document I read that
"Formatting can be applied to the
current text document using the
setCharFormat(), merge...
1
Solved
I have the following:
QString html = ui->DetailsTextBrowser->document()->toHtml();
html = details.replace("#VERSION", "1.0");
ui->DetailsTextBrowser->document()->setHtml(details)...
Pansypant asked 23/8, 2010 at 11:45
© 2022 - 2024 — McMap. All rights reserved.