It is necessary to set the height of QTextEdit depending on the number of lines of content, and if there are no lines, then the height is zero.
Same for QLineEdit, but for width.
- Most likely this will have to be done through the painEvent overload. When rendering, we look at the text in the control and set the correct FixedSize, the main thing is that the layouts don't go - goldstar_labs
- @goldstar_labs, thank you, at least someone responded. I think on MainWindow to hang up scrolling. There are three fields: QTextEdit for the entire width and variable height, depending on the content, QLineEdit, variable width, depending on the content, and the second QTextEdit should occupy the rest of the width. - Eugene
|