Yes, I place QTextEdit in QVBoxLayout:
I tried using setContentsMargins in both textEdit and layoutMain, but it doesn't set margins at all or it works like in on picture 1.Qt Code:
TestApp::TestApp() { layoutMain->addWidget(textEdit); layoutMain->setMargin(0); window->setLayout(layoutMain); setCentralWidget(window); }To copy to clipboard, switch view to plain text mode
I don't know if you understood me correctly, I would like custom margins inside the textEdit, not the layoutMain margins.
Bookmarks