Home | History | Annotate | Download | only in hybridPixmap

Lines Matching refs:ui

30     ui(new Ui::Widget)
32 ui->setupUi(this);
37 ui->webView->page()->mainFrame()->addToJavaScriptWindowObject("myWidget", this);
41 ui->webView->load(QUrl("qrc:///test.html"));
42 connect(ui->webView->page()->mainFrame(), SIGNAL(javaScriptWindowObjectCleared()), this, SLOT(refreshJS()));
43 ui->webView->page()->mainFrame()->addToJavaScriptWindowObject("myWidget", this);
48 QCOMPARE(ui->lbl1->pixmap()->size(), ui->lbl2->size());
49 QCOMPARE(ui->lbl3->size(), ui->lbl4->pixmap()->size());
50 QCOMPARE(ui->lbl2->size().width(), ui->webView->page()->mainFrame()->findFirstElement("#img1").evaluateJavaScript("this.width").toInt());
51 QCOMPARE(ui->lbl3->size().width(), ui->webView->page()->mainFrame()->findFirstElement("#img2").evaluateJavaScript("this.width").toInt());
57 ui->lbl1->setPixmap(p);
61 QPixmap px(ui->lbl3->size());
64 ui->lbl3->render(&p);
70 ui->lbl4->setPixmap(QPixmap::fromImage(img));
75 QImage img(ui->lbl2->size(), QImage::Format_ARGB32);
78 ui->lbl2->render(&p);
85 delete ui;
93 ui->retranslateUi(this);
106 QCOMPARE(img.size(), ui->lbl3->size());
112 QCOMPARE(pxm.size(), ui->lbl2->size());
113 emit imageSignal(ui->lbl4->pixmap()->toImage());