TextEdit Alignment vertical/horizontal center error.
-
wrote on 10 Jun 2019, 07:39 last edited by
Qt 5.4 I use Linux 64Bit.
If you double click a cell in QTableVeiw, QTextEdit will appear in the corresponding place and connect the delegate so that it can be modified.
Vertical / Horizontal I want to create a TextEdit in both directions, but it is only Horizontal.
How do you get it to occur in the middle of TextEdit when the cursor grows?
-
Lifetime Qt Championwrote on 10 Jun 2019, 21:49 last edited by SGaist 6 Oct 2019, 21:50
Hi,
AFAIK, QTextEdit doesn't support vertical alignment of text. That's only available in the rendered cell.
-
wrote on 11 Jun 2019, 03:30 last edited by Pradeep P N 6 Nov 2019, 03:31This post is deleted!
-
Hi,
AFAIK, QTextEdit doesn't support vertical alignment of text. That's only available in the rendered cell.
wrote on 11 Jun 2019, 03:30 last edited byI want to be able to modify the cell by double-clicking on the cell.
To do this, I show TextEdit, but I can not write because it is not vertically aligned.
I tried to use QLabel and it did not appear when I double-clicked the blank. Is there a way to show it in vertical alignment?
-
Lifetime Qt Championwrote on 11 Jun 2019, 21:11 last edited by SGaist 6 Nov 2019, 21:12
Are you using custom QStyledItemDelegate ?
-
Are you using custom QStyledItemDelegate ?
1/6