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...
Leges asked 28/8, 2019 at 19:11

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...
Lectern asked 18/5, 2010 at 13:53

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...
Bounteous asked 26/1, 2013 at 8:33

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...
Amanda asked 8/3, 2016 at 3:24

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.
Baryon asked 8/2, 2011 at 22:16

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...
Showing asked 15/7, 2010 at 10:24

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 ...
Saad asked 27/4, 2019 at 6:6

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...
Zillion asked 6/3, 2019 at 10:24

5

Solved

I just need to know how to change the tab size in Qt in a QTextEdit. My Google and stackoverflow search returned me null. Thanks in advance.
Trope asked 23/10, 2012 at 9:13

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...
Enactment asked 12/11, 2012 at 17:7

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...
Fey asked 24/11, 2014 at 20:7

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...
Nietzsche asked 20/3, 2013 at 8:4

1

Look at this tiny piece of Qt code qDebug() << "CONTENT" << content; QTextEdit *te = new QTextEdit(this); te->setHtml(content); qDebug() << "CONTENT AFTER " << te->...
Fahlband asked 10/11, 2016 at 14:9

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 ...
Relentless asked 2/11, 2016 at 17:31

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....
Commonalty asked 13/3, 2018 at 20:24

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...
Respectable asked 21/11, 2017 at 2:42

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?
Perfervid asked 10/3, 2011 at 10:56

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 ...
Dermatome asked 25/8, 2016 at 13:20

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...
Ithaman asked 10/9, 2014 at 3:17

3

Solved

There are functions like textEdit->textCursor()->selectionStart() and textEdit->textCursor()->selectionEnd(), but there are no functions setSelectionStart, setSelectionEnd. Is there an...
Shwalb asked 19/2, 2012 at 15:48

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

© 2022 - 2024 — McMap. All rights reserved.