qtextdocument Questions
3
Solved
How can I access the QUndoStack of a QTextDocument?
(For example, I want to be able to add custom QUndoCommand objects to the document's undo stack)
Fleuron asked 7/6, 2010 at 21:28
1
Solved
I am trying to make the QTextTable inside QTextDocument to have 100% or full width of the document. But there is no method in QTextTableFormat class to format the QTextTable to have 100% width. We ...
Toweling asked 29/1, 2020 at 1:29
1
Problem: I want to implement a text editing widget for text with additional tags.
I'd like some tags to be invisible in some cases so that they do not distract the user.
Environment: I'm using PyQ...
Jerlenejermain asked 24/1, 2012 at 21:32
1
I am required to create text items with exact width and height of text contents.
The height of the text is the most important requirement.
The position of the text should be relative to the text it...
Overwhelming asked 9/6, 2016 at 21:22
2
Solved
I'm trying to implement a simple text search in an editor i'm writing. Everything have been fine until this problem! I'm trying to implement a backward search here. The procedure is: look for the s...
Jahdai asked 22/7, 2011 at 6:58
2
Solved
I want to create a PDF document with properly styled HTML. This is what I am trying:
QTextDocument *doc = new QTextDocument();
const char* s1 = "<html><head><style>body { font-fa...
Medicable asked 1/2, 2016 at 19:16
3
Solved
I need a QPushButton with two colors in the text. I found a solution with a html code in QTextDocument and it's working. But I need center align and the html code isn't working.
QTextDocument Tex...
Almost asked 10/11, 2014 at 20:21
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
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
I am creating a high-resolution (1200 dpi) PDF document using QPrinter and QPainter. I am trying to draw text at the same resolution using QTextDocument::drawContents. The reason I want to use QTex...
Geyer asked 24/4, 2012 at 14:6
1
© 2022 - 2024 — McMap. All rights reserved.