qtextedit Questions
4
Solved
I'm writing Chat gui for client on Python using PyQt5.
I have a QTextEdit, which the client can write messages in it.
I wan't to know when the 'Enter' key is being pressed while the focus is on the...
7
Solved
I have a QTextEdit box that displays text, and I'd like to be able to set the text color for different lines of text in the same QTextEdit box. (i.e. line 1 might be red, line 2 might be black, etc...
5
I'm developing a Qt Application and I'm trying to find a way to use QTextEdit as a label with long text without the scroll bar. In my ui I have a QScrollArea and inside of it I want to place a coup...
Noenoel asked 8/12, 2017 at 8:24
2
In QLineEdit, there is a textEdit() signal, which only emits if the user changes the text, but not when you call setText(),
So what's the equivalent in QTextEdit? I only see a textChanged() signal...
2
Solved
I have a form with a QTextEdit on it, which is called translationInput. I am trying to provide the editing functionality for the user.
This QTextEdit will contain HTML-formatted text. I have a se...
Cousin asked 27/7, 2012 at 7:31
5
I want to use QTextEdit (in read-only mode) to show a clickable hyperlink, I used to do
QTextEdit *textEdit = new QTextEdit;
QTextCursor cursor(textEdit->document());
textEdit->setTextCursor...
5
Solved
I need to display simple status row with text which will contain following styles:
color
bold
italic
QTextEdit can render simple HTML. But it also forcibly expands over multiple lines:
Red b...
Versicle asked 21/6, 2016 at 12:57
6
How to program scrollbar to jump to bottom/top in case of change in QPlainTextEdit or QTextEdit area?
It looks like it doesn't have any controlling function.
2
Solved
I think this is a very simple question, but when I copy an image I can't paste it in a QTextEdit? Paste is inactive! Also I would like to know how to drag-and-drop a picture.
BTW I use the followi...
2
Solved
I am trying to make the text cursor on a QTextEdit red (rgb(255,0,0)). Despite my best efforts, it continues to blink white.
From what I've found, the Style Sheet "color" property is supposed to ...
2
I am now using QTextEdit with qt virtual keyboard, and I face an issue with QTextEdit
I want to disable the textcursor in QTextEdit. I tried to use
setCursorWidth(0);
The textcursor does disapp...
5
Solved
4
I want to set placeholder text of a QTextEdit. I know how to set it for a QLineEdit, there is a property setPlaceHolderText. But this property is not available for QTextEdit. Please give your valua...
3
I'm looking for a way to change the QTextCharFormat of a QTextEdit's QTextBlock without triggering the addition of an undo command. Let me explain:
The QTextCharFormat of a QTextBlock can be easil...
4
I'm writing the complicated rich text editor, derived from QTextEdit class. It must be able to insert, resize, and apply various formatting to embedded tables.
I found function for setup column wi...
1
Look at this tiny piece of Qt code
qDebug() << "CONTENT" << content;
QTextEdit *te = new QTextEdit(this);
te->setHtml(content);
qDebug() << "CONTENT AFTER " << te->...
3
Solved
I want to create textEdit with line number on the left side in PyQt like Notepad++. I tried this adding another textEdit but scrolling is stuck. I searched and found this question, but there is no ...
1
Solved
When I try to get the text from the qtextedit created with PyQt5 Designer I get an error or "Python stop working" and the script stop automatically. I've tried multiple solutions but nothing works....
1
Solved
I'm trying to change the color of a QTextEdit to black, regardless if there's text or none, to give it a terminal look. It seems to me that the default white background color of QTextEdit (PyQy4) c...
5
Solved
I use a QTextEdit for some inputs. But I want to adjust the height of the box. Can I set the height based on the number of lines I want to have visible at a time?
2
Solved
I have a QTextEdit where I do display some HTML. Could I apply a stylesheet to that very HTML content?
Do not confuse it with applying a Qt stylesheet to the QTextEdit (that I know). I want to chan...
Sunday asked 10/3, 2015 at 23:1
2
Solved
I have QDialog that contains few buttons and a QTextEdit.
after writing something in the QTextEdit, I press tab in order to get to one of the buttons, but when I pressing tab, a tab space is added ...
4
Solved
I am developing an IM tool,as a part of it I have to develop a BubbleChatWidget on which all message items have a bubble-like background-image.I thought I could achieve my goal with QTextEidt,but I...
3
Solved
There are functions like textEdit->textCursor()->selectionStart() and textEdit->textCursor()->selectionEnd(), but there are no functions setSelectionStart, setSelectionEnd.
Is there an...
2
Solved
I want to center the text of my QTextEdit horizontally and vertically.
I tried this, but it didn't work.
m_myTextEdit = new QTextEdit("text edit", m_ui->centralWidget);
m_myTextEdit->setGeo...
Oconnor asked 26/7, 2013 at 21:13
1 Next >
© 2022 - 2024 — McMap. All rights reserved.