I finally found the reason for this behavior in the function QLabelPrivate::documentRect in qlabel.cpp:
When the label's frameShape is set to StyledPanel, frameWidth returns 1.Qt Code:
int m = indent; if (m < 0 && q->frameWidth()) // no indent, but we do have a frameTo copy to clipboard, switch view to plain text mode
Bookmarks