void Container::newPictureWindow(const QString &winName) { if (!picwins.contains(winName)) { PictureWindow *picwin = new PictureWindow(mdiArea); picwins.insert(winName, picwin); picwin->setWindowTitle(winName); picwin->show(); } /*QVector<QPoint> points = QVector<QPoint>() << QPoint(0, 100) << QPoint(86, 82) << QPoint(86, 82) << QPoint(128, 6) << QPoint(128, 6) << QPoint(170, 82) << QPoint(170, 82) << QPoint(255, 100) << QPoint(255, 100) << QPoint(196, 162) << QPoint(196, 162) << QPoint(208, 248) << QPoint(208, 248) << QPoint(128, 211) << QPoint(128, 211) << QPoint(48, 248) << QPoint(48, 248) << QPoint(59, 162) << QPoint(59, 162) << QPoint(0, 100); picwin->drawLines(7, 2, points);*/ }
int main (int argc, char ** argv) { QApplication app(argc, argv, true); PictureWindow * pw = new PictureWindow(picture_sender); pw->setPicture(); pw->show(); app.exec(); delete pw; return 0; }