2012-05-22 13:09:48 -04:00
|
|
|
#include <QtGui>
|
|
|
|
#include <QtGui/QApplication>
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2013-04-10 10:41:16 -04:00
|
|
|
QApplication a(argc, argv);
|
|
|
|
|
|
|
|
QFile f("fonts.txt");
|
|
|
|
if(f.open(QIODevice::ReadOnly)) {
|
|
|
|
QTextStream in(&f); //Example:
|
|
|
|
QString fontFamily; // helvetica
|
|
|
|
qint32 fontSize,fontWeight; // 8,50
|
|
|
|
in >> fontFamily >> fontSize >> fontWeight;
|
|
|
|
f.close();
|
|
|
|
QFont font;
|
|
|
|
font=QFont(fontFamily,fontSize,fontWeight);
|
|
|
|
a.setFont(font);
|
|
|
|
}
|
|
|
|
|
|
|
|
MainWindow w;
|
|
|
|
w.show();
|
|
|
|
return a.exec();
|
2012-05-22 13:09:48 -04:00
|
|
|
}
|