blob: dd3ac6edc24631abc0c73481473bf0df99c38fcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <QtGui/QApplication>
#include <stdio.h>
#include "mainwindow.h"
#include <Qt/qtextcodec.h>
int main(int argc, char *argv[])
{
if(argc<=1)
{
printf("Usage: %s http://siteweb.com/\n",argv[0]);
return -1;
}
// Codificación UTF-8.
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
|