Results 1 to 6 of 6

Thread: how to create calculator menu using code

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to create calculator menu using code

    read the documentation of QMainWindow, find a method that has something to do with QMenuBar and try to do something with that method

  2. #2
    Join Date
    Apr 2011
    Posts
    36
    Thanks
    3
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to create calculator menu using code

    menuBar() function returns menubar in that add menus u need

    QMenu filemenu;
    filemenu=menuBar().addMenu(tr("file"));
    filemenu.addAction(newAct); newAct ic object of QAction

Similar Threads

  1. create app menu in qt
    By sk.qt in forum Newbie
    Replies: 9
    Last Post: 7th October 2010, 11:30
  2. create app menu in qt
    By sk.qt in forum Qt Programming
    Replies: 1
    Last Post: 6th October 2010, 08:06
  3. How to dynamicly create a DSN by using Qt code?
    By bangqianchen in forum Qt Programming
    Replies: 1
    Last Post: 29th December 2009, 23:15
  4. create qt ribbon menu
    By BalaQT in forum Qt Programming
    Replies: 3
    Last Post: 16th September 2009, 12:28
  5. rigth click of mouse to create sub menu
    By SunnySan in forum Qt Programming
    Replies: 8
    Last Post: 12th November 2008, 11:29

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
  •  
Qt is a trademark of The Qt Company.