Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.4.0
-
None
Description
In the following example the text is 12 points large only in the first report generated, all later reports have small fonts. Using setDefaultFont instead works correctly.
#include <QtGui>
class MainWindow: public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget * parent = 0)
: QMainWindow(parent), report(0)
private slots:
void generateReport()
private:
QTextEdit * m_textEdit;
QTextDocument *report;
};
#include "main.moc"
int main(int argc, char * argv[])
{
QApplication app(argc, argv);
MainWindow mainWindow;
mainWindow.show();
return app.exec();
}