C
C
Cockie2022-01-07 03:01:41
Python
Cockie, 2022-01-07 03:01:41

How can a QTextEdit be displayed already with the entered text?

def seting(self):
        dialog = QDialog()
        dialog.setWindowTitle("Dialog Demo")
        dialog.resize(300, 200)
        reviewEdit = QTextEdit()

        grid = QtWidgets.QGridLayout()
        grid.setSpacing(10)

        grid.addWidget(reviewEdit, 1, 1, 10 ,1)

        dialog.setLayout(grid)
        dialog.exec_()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alexbprofit, 2022-01-07
@alexbprofit

qtextedit should have a default value argument

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question