Rectangle{
id:fullScreen
width: fullScreenImage.width
height: fullScreenImage.height
color: "transparent"
x:0;y:50;
Image{
id:fullScreenImage
source: "pics/fullScreenDown.png"
}
MouseArea{
id:fullScreenArea
anchors.fill: fullScreenImage
onPressed: {
fscreen=1;
fullScreenImage.source="pics/fullScreenUp.png"
showhanddown(3)
fullscreen(k)
//playIcon.x=250
//playIcon.y=200
}
onReleased: {
fullScreenImage.source="pics/fullScreenDown.png"
showhanddown(0)
}
}
}
Rectangle{
id:fullScreen
width: fullScreenImage.width
height: fullScreenImage.height
color: "transparent"
x:0;y:50;
Image{
id:fullScreenImage
source: "pics/fullScreenDown.png"
}
MouseArea{
id:fullScreenArea
anchors.fill: fullScreenImage
onPressed: {
fscreen=1;
fullScreenImage.source="pics/fullScreenUp.png"
showhanddown(3)
fullscreen(k)
//playIcon.x=250
//playIcon.y=200
}
onReleased: {
fullScreenImage.source="pics/fullScreenDown.png"
showhanddown(0)
}
}
}
To copy to clipboard, switch view to plain text mode
in .cpp
connect (obj,SIGNAL(fullscreen(int)), this, SLOT(showsfullscreen(int)));
void Four_in_a_row::showsfullscreen(int j)
{
qView->setResizeMode(QDeclarativeView::SizeRootObjectToView);
showFullScreen();
setCentralWidget(qView);
}
connect (obj,SIGNAL(fullscreen(int)), this, SLOT(showsfullscreen(int)));
void Four_in_a_row::showsfullscreen(int j)
{
qView->setResizeMode(QDeclarativeView::SizeRootObjectToView);
showFullScreen();
setCentralWidget(qView);
}
To copy to clipboard, switch view to plain text mode
this code gives me a 'fullscreen '.But I am not able to see the buttons on it.
Bookmarks