3 int main(
int argc,
char*argv[]) {
5 QApplication app(argc, argv);
7 QFile *qin =
new QFile();
8 if(!qin->open(stdin, QIODevice::ReadOnly)) {
9 printf(
"Could not open stding as QFile.\n");
17 QObject::connect(qfr, SIGNAL(new_line(QString)), qp, SLOT(new_line(QString)));
18 QObject::connect(qfr, SIGNAL(eof()), qscene, SLOT(adjust()));
20 QObject::connect(qp, SIGNAL(parsed_laser_data(
LDP)), qscene, SLOT(new_laser_data(
LDP)));
24 view.setScene(qscene);
25 view.setCacheMode(QGraphicsView::CacheBackground);
26 view.setDragMode(QGraphicsView::ScrollHandDrag);
int main(int argc, char *argv[])