QTextEdit 或 QTextBrowser 高度自適應

如下方法收集自網絡web 使用 QTextDocument 的 contentsChanged 信號能夠解決此問題。網絡 QTextEdit *editor = new QTextEdit(this); ... connect(editor->document(),SIGNAL(contentsChanged()),this,SLOT(textAreaChanged())); ... priva
相關文章
相關標籤/搜索