Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
4.7.1
-
None
Description
The height returned the number of lines instead of the height of the document.
The width returned an undefine value.
#include <QtGui> int main(int argc, char *argv[]) { QApplication a(argc, argv); QPlainTextEdit TextWin; TextWin.setPlainText("this is a test \n Hello Hello Hello Hello\n World"); TextWin.show(); qDebug() << TextWin.document()->size() }
When QTextEdit is used instead of QPlainTextEdit, the size returned is correct.