Results 1 to 4 of 4

Thread: Calling Dialog Box from Main Window

  1. #1
    Join Date
    Jun 2012
    Posts
    7
    Thanks
    2

    Default Calling Dialog Box from Main Window

    I am trying to call a dialog box from a main window. I'm creating the new dialog box in QT Designer. After compiling the new window (myNewDialog), I get the file ui_myNewDialog.h, however, there is no .cpp file. Do I have to create this manually? Also, I expected a myNewDialog.h file, not ui_myNewDialog.h,


    Thanks for any input.

  2. #2
    Join Date
    May 2010
    Posts
    19
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Calling Dialog Box from Main Window

    you must select a new "Qt Designer Form Class" while adding new dialog so that the creator creates a new .cpp,.h and .ui file for you

  3. #3
    Join Date
    Jun 2012
    Posts
    7
    Thanks
    2

    Default Re: Calling Dialog Box from Main Window

    Thank you. I'll test it out and update this forum.

  4. #4
    Join Date
    Jun 2012
    Posts
    7
    Thanks
    2

    Default Re: Calling Dialog Box from Main Window

    Ok, I got it to work. Thank you for your help.
    Sorry about my 'Newbie'-ness.

Similar Threads

  1. Main applicatipn window and a dialog interaction
    By AlekseyK in forum Qt Programming
    Replies: 0
    Last Post: 5th August 2011, 10:17
  2. Replies: 2
    Last Post: 4th August 2010, 19:10
  3. Embed dialog in main window
    By The_Fallen in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2010, 15:06
  4. Qt 4.6.0: Opening a dialog from a main window
    By dmginc in forum Qt Programming
    Replies: 3
    Last Post: 14th January 2010, 12:16
  5. QDialog - Calling Main Window Function
    By Preeteesh in forum Newbie
    Replies: 4
    Last Post: 20th June 2007, 18: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.