Results 1 to 2 of 2

Thread: how to call another dialog using menubar

  1. #1
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Question how to call another dialog using menubar

    hi all
    i m working on qt3.1 on Linux
    i have problem while using menubar
    problem in steps:
    1. i have a mainwindow having file menu
    2. i want to call another dialog by clicking on one of the file menu item say "NEW"

    Thanks in advance
    Always Believe in Urself
    Merry

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to call another dialog using menubar

    You will have to add a QAction to your "New" menu and connect it's triggered() signal to a slot in your main window. In that slot you create the dlg object and show it.

    regards

Similar Threads

  1. Replies: 1
    Last Post: 1st February 2007, 17:07
  2. Dialog in a QThread
    By bpetty in forum Newbie
    Replies: 1
    Last Post: 9th January 2007, 02:29
  3. Replies: 3
    Last Post: 23rd July 2006, 18:02
  4. Show/hide part of dialog with resizing.
    By Spockmeat in forum Qt Tools
    Replies: 6
    Last Post: 7th June 2006, 08:22
  5. Dialog positioning in GNOME
    By simk in forum Qt Programming
    Replies: 2
    Last Post: 16th March 2006, 09:41

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.