Results 1 to 9 of 9

Thread: Invoking New Dialog

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 29 Times in 27 Posts

    Default Re: Invoking New Dialog

    Yes. As for this QMenuBar, you will not need QPushButton for it.
    I'm a rebel in the S.D.G.

  2. #2
    Join Date
    Aug 2009
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Invoking New Dialog

    Quote Originally Posted by lyuts View Post
    Yes. As for this QMenuBar, you will not need QPushButton for it.
    I think I didn't explain my application very well! I want to open the new dialog by pressing a QPushButton, does this apply to it? I do not wish to have a QMenuBar.


    Thanks for the help,
    Bryce
    CollegeARC the College Amateur Radio Club Association

  3. #3
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 29 Times in 27 Posts

    Default Re: Invoking New Dialog

    Oh, got it.

    Well, you will have your main window or main dialog which will have the desired QPushButton (in fact, it will be this button's parent). Besides this window/dialog will have a slot which will have the code for creating a new dialog and showing it. Connect this button's signal clicked() with your slot and that's it.
    I'm a rebel in the S.D.G.

  4. #4
    Join Date
    Aug 2009
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Invoking New Dialog

    Quote Originally Posted by lyuts View Post
    Oh, got it.

    Well, you will have your main window or main dialog which will have the desired QPushButton (in fact, it will be this button's parent). Besides this window/dialog will have a slot which will have the code for creating a new dialog and showing it. Connect this button's signal clicked() with your slot and that's it.
    Thanks for the help I'll let you know what happens. I appreciate the help.


    Bryce
    CollegeARC the College Amateur Radio Club Association

Similar Threads

  1. Issue with Modelless dialog on Mac
    By Satyanarayana Chebrolu in forum Qt Programming
    Replies: 0
    Last Post: 24th February 2009, 10:10
  2. Dialog is not closing
    By manmohan in forum Newbie
    Replies: 5
    Last Post: 1st December 2008, 17:04
  3. Replies: 9
    Last Post: 13th August 2008, 18:07
  4. Resizing the dialog boxes
    By anju123 in forum Qt Programming
    Replies: 4
    Last Post: 14th September 2007, 10:41
  5. QGraphicsView: Dialog Position Doubt
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 6th August 2007, 17:48

Tags for this Thread

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.