Results 1 to 3 of 3

Thread: MenuBar QML QtQuick.Controls 1.0

  1. #1
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default MenuBar QML QtQuick.Controls 1.0

    Qt Code:
    1. import QtQuick 2.0
    2. import QtQuick.Controls 1.0
    3.  
    4. Item {
    5. MenuBar {
    6. id: ee
    7. Menu {
    8. title: "File"
    9. MenuItem { text: "Open..." }
    10. MenuItem { text: "Close" }
    11. }
    12.  
    13. Menu {
    14. title: "Edit"
    15. MenuItem { text: "Cut" }
    16. MenuItem { text: "Copy" }
    17. MenuItem { text: "Paste" }
    18. }
    19. }
    20. }
    To copy to clipboard, switch view to plain text mode 


    **I hoped to see a menubar as an output, but I got nothing. Please point out what did I miss.**

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: MenuBar QML QtQuick.Controls 1.0

    Where did you expect to see the menu bar? You don't have an application window.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    TheIndependentAquarius (24th December 2013)

  4. #3
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: MenuBar QML QtQuick.Controls 1.0

    Thankful.

    I "need" to study the basics of Qt.

Similar Threads

  1. QtQuick and C++ datamodel
    By creation in forum Qt Quick
    Replies: 5
    Last Post: 28th July 2013, 13:12
  2. QtQuick structure
    By codeman in forum Qt Quick
    Replies: 4
    Last Post: 21st May 2013, 11:35
  3. QtQuick 2.1
    By shadowroot in forum Qt Quick
    Replies: 1
    Last Post: 6th April 2013, 09:44
  4. What is QtQuick/QML really for?
    By Huk in forum Qt Quick
    Replies: 7
    Last Post: 21st June 2012, 21:33
  5. Hiding controls changes spacing of other controls
    By MrGarbage in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2007, 21:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.