I have a QWebView that is showing HTML content styled with CSS:
body { font-size: 10pt; }
Within the same window, there is also a QTextEdit field where I adjusted the font like this:
QFont newFont;
newfont.setPointSize(10);
myEditField->setFont(newFont);
The issue is that the text displayed in the QWebView appears slightly larger than the one in QTextEdit. My hunch is that this difference is due to DPI settings.
Is there a way to ensure that both QWebView and QTextEdit display text at the same font size?
Thanks!