K
K
ktotamcamoetakoe2012-01-26 11:42:57
Qt
ktotamcamoetakoe, 2012-01-26 11:42:57

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 &lt; QtGui/QApplication &gt;<br/>
#include &quot;qmlapplicationviewer.h&quot;<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(&quot;qml/firstproject/main.qml&quot;));<br/>
 viewer.showExpanded();<br/>
<br/>
return app.exec();<br/>
}

main.qml
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: &quot;gray&quot;<br/>
<br/>
WebView {<br/>
 id: webView<br/>
 newWindowComponent: webViewPage<br/>
 newWindowParent: pages<br/>
 url: &quot;http://www.ru/&quot;<br/>
 }}}<br/>
 Loader { sourceComponent: webViewPage }<br/>
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ixSci, 2012-01-26
@ktotamcamoetakoe

stackoverflow.com/questions/1235812/qt-dialog-with-no-window-icon-system-menu

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question