{
{
newwidth=f->size().width();
newheigth=f->size().height();
ui->mainframe->setGeometry(0,0,newwidth,newheigth);
qView->setProperty("width", 500);
qDebug()<<qView->width();
}
}
{
void Four_in_a_row::resizeEvent(QResizeEvent *f)
{
newwidth=f->size().width();
newheigth=f->size().height();
ui->mainframe->setGeometry(0,0,newwidth,newheigth);
qView->setProperty("width", 500);
qDebug()<<qView->width();
}
}
To copy to clipboard, switch view to plain text mode
I wrote a QResize event in Qt. how can i send this newwidth and newheight to qml to set the width and height of rectangle
Bookmarks