Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
Qt Creator 3.4.1, Qt Creator 3.4.2, Qt Creator 3.5.0
-
None
-
Mac OS X 10.9.5
QtCreator 3.5.0 (opensource) (new install)
QtQuick 2.5
QtQuick.Controls 1.4
Qt 5.5.0 (Clang 6.0(Apple), 64 bit)
built on Aug 18 2015 13:13:30
revision f1b9f56c69
Description
Steps to Reproduce:
1. Open QtCreator on Mac OS X v10.9.5
2. Select New Project
3. Select QtQuick or QtQucik Controls Application
4. Complete project creation.
5. Compile and Run the newly created application for clang Mac Desktop.
6. In the application window, notice the missing menu bar even though the code is in place within the project template.
This appears in older QtCreator versions also and is a breakage of functionality.
import QtQuick 2.5
import QtQuick.Controls 1.4
import QtQuick.Dialogs 1.2
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
menuBar: MenuBar {
Menu {
title: qsTr("File")
MenuItem
MenuItem
{ text: qsTr("Exit") onTriggered: Qt.quit(); } }
}
MainForm
{ anchors.fill: parent button1.onClicked: messageDialog.show(qsTr("Button 1 pressed")) button2.onClicked: messageDialog.show(qsTr("Button 2 pressed")) } MessageDialog {
id: messageDialog
title: qsTr("May I have your attention, please?")
function show(caption)
{ messageDialog.text = caption; messageDialog.open(); } }
}