Results 1 to 7 of 7

Thread: Display of the same dialog is not happening

  1. #1
    Join Date
    Dec 2011
    Location
    Bangalore,India
    Posts
    38
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Display of the same dialog is not happening

    Hi,
    I am trying a application with the base class as Widget and from that a new dialog is displayed as FIRST DIALOG and from this i am displaying another dialog as SECOND DIALOG. From the Second dialog i am adding a push button and i want the same FIRST DIALOG to be displayed and i am using MODAL dialog. here what happens is instead of displaying the FIRST DIALOG. it is creating a new Dialog.
    how to solve this problem any one can help?

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Display of the same dialog is not happening

    In the second dialog push button close the the second dialog, which will take you back to frist dialog. (Note to close the second dialog, not delete it)
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  3. #3
    Join Date
    Dec 2011
    Location
    Bangalore,India
    Posts
    38
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Display of the same dialog is not happening

    Thanks for your reply santosh.. but still when i try to close my second dialog the focus is not going to the older first dialog, instead it is creating a new firstdialog. i have attached my code for reference.kindly do reply me
    Attached Files Attached Files

  4. #4
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Display of the same dialog is not happening

    Check this out
    Attached Files Attached Files
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  5. #5
    Join Date
    Dec 2011
    Location
    Bangalore,India
    Posts
    38
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Display of the same dialog is not happening

    Thanks santhosh its working now..

  6. #6
    Join Date
    Nov 2012
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Display of the same dialog is not happening

    Hi,
    I have compiled above code using Qt 5.0 and Qt 4.8. With Qt 4.8 it works like a charm. Using the newest Qt (5.0 with MSVC 2010) it gives me only errors...

    I would like to ask if anyone knows how to solve it?

  7. #7
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Display of the same dialog is not happening

    Yes, someone knows how to solve it. You probably have to add "widgets" to QT in the PRO file.

    If you want a more useful answer try providing more useful information... like a hint about the error messages.
    Last edited by ChrisW67; 27th December 2012 at 22:16.

Similar Threads

  1. QDialog resizeEvent not happening in time?
    By Urthas in forum Newbie
    Replies: 3
    Last Post: 15th September 2010, 06:11
  2. how to display dialog message
    By Petr_Kropotkin in forum Newbie
    Replies: 1
    Last Post: 12th January 2010, 14:16
  3. toolbutton action is not happening.
    By phillip_Qt in forum Qt Programming
    Replies: 13
    Last Post: 19th November 2009, 09:13
  4. Listbox Autoscroll is not happening?
    By mahe2310 in forum Qt Programming
    Replies: 4
    Last Post: 9th March 2006, 09:13

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.