-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
45 lines (37 loc) · 1.3 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "mainwindow.h"
//#include <QApplication>
//#include <QPushButton>
int main(int argc, char** argv)
{
QApplication app(argc,argv);
/*QGraphicsScene scene;
for (int y=0; y<5; y++)
{
for (int x=0; x<5; x++)
{
QGraphicsProxyWidget *proxy =
new QGraphicsProxyWidget(0, Qt::Window);
proxy->setWidget(new Editor);
QRectF rect = proxy->boundingRect();
proxy->setPos(x * rect.width() * 1.05, y * rect.height() * 1.05);
proxy->setCacheMode(QGraphicsItem::DeviceCoordinateCache);
scene.addItem(proxy);
}
}*/
MainWindow window;
//window.resize(700,800);
window.show();
/*scene.setSceneRect(scene.itemsBoundingRect());
QGraphicsView view(&scene);
view.scale(0.5, 0.5);
view.setRenderHints(view.renderHints() | QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
//view.setBackgroundBrush(QPixmap(":/No-Ones-Laughing-3.jpg"));
view.setCacheMode(QGraphicsView::CacheBackground);
view.setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate);
view.show();
view.setWindowTitle("Embedded Dialogs Demo");
//QPushButton pb("awoejif\n");
//pb.show();
*/
return app.exec();
}