c++ - Qt QML MenuBar and Menus not showing -
i'm new qt , qt/qml , trying setup menubar doesn't show @ all.
i've copied pasted code , still nothing(from qt doc).
import qtquick 2.0 import qtquick.controls 1.0 applicationwindow { visible: true; width: 1000; height: 700; title: "app"; menubar { menu { title: "file" menuitem { text: "open..." } menuitem { text: "close" } } menu { title: "edit" menuitem { text: "cut" } menuitem { text: "copy" } menuitem { text: "paste" } } } }
solved using
menubar: menubar{//menubar content}
instead of
menubar{//menubar content}
Comments
Post a Comment