Answer the question
In order to leave comments, you need to log in
Qt: Prevent screen resizing?
Actually the question is in the title.
When compiling, everything is fine, but I would like the “expand” button to disappear.
Tell me where to dig.
Code snippets:
main.cpp
#include < QtGui/QApplication ><br/>
#include "qmlapplicationviewer.h"<br/>
<br/>
int main(int argc, char *argv[])<br/>
{<br/>
QApplication app(argc, argv);<br/>
<br/>
QmlApplicationViewer viewer;<br/>
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);<br/>
viewer.setMainQmlFile(QLatin1String("qml/firstproject/main.qml"));<br/>
viewer.showExpanded();<br/>
<br/>
return app.exec();<br/>
}
import QtQuick 1.0<br/>
import QtWebKit 1.0<br/>
<br/>
Grid {<br/>
columns: 3<br/>
id: pages<br/>
height: 300; visible: true; clip: false; smooth: false; width: 600<br/>
<br/>
Component {<br/>
id: webViewPage<br/>
Rectangle {<br/>
width: webView.width<br/>
height: webView.height<br/>
border.color: "gray"<br/>
<br/>
WebView {<br/>
id: webView<br/>
newWindowComponent: webViewPage<br/>
newWindowParent: pages<br/>
url: "http://www.ru/"<br/>
}}}<br/>
Loader { sourceComponent: webViewPage }<br/>
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question