My sample code is
QDeclarativeView* view = new QDeclarativeView();
view
->setSource
(QUrl::fromLocalFile(filename
));
layout->addWidget(view);
widget->show();
QDeclarativeView* view = new QDeclarativeView();
view->setSource(QUrl::fromLocalFile(filename));
QWidget *widget = new QWidget();
QVBoxLayout *layout = new QVBoxLayout(widget);
layout->addWidget(view);
widget->show();
To copy to clipboard, switch view to plain text mode
{
qDebug()<<"Inside close event......."<<event;
}
void hmi_cfg::closeEvent(QCloseEvent *event)
{
qDebug()<<"Inside close event......."<<event;
}
To copy to clipboard, switch view to plain text mode
Bookmarks