wearilybird
15th May 2014, 06:19
i use one QWebview editWebView to edit text ,the code set the QWebView font :
settings()->setFontFamily(QWebSettings::StandardFont,"simsun");
settings()->setFontSize(QWebSettings::DefaultFontSize,12);
i use another one QWebView displayWebView to display text ,using css to set text font,
<body style="font-family:‘simsun’;font-size:12pt;color:#000000 ;"> ddddd </body>
but i found the text in editWebView look smaller than the text in displayWebView .
why?
settings()->setFontFamily(QWebSettings::StandardFont,"simsun");
settings()->setFontSize(QWebSettings::DefaultFontSize,12);
i use another one QWebView displayWebView to display text ,using css to set text font,
<body style="font-family:‘simsun’;font-size:12pt;color:#000000 ;"> ddddd </body>
but i found the text in editWebView look smaller than the text in displayWebView .
why?