×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Nokia Developer Expert
    Join Date
    Apr 2008
    Posts
    9

    Ok and Cancel Buttons for Derived QDialog

    Hi,

    I have derived a class called timedialog from QDialog. I want the standard OK and Cancel buttons in the dialog and handle them. Please tell me how can I do this... When i run this in my mainwindow:

    timedialog* tdlg = new timedialog(this);
    tdlg->exec()

    But I can only see the options and exit buttons of the main window. What should I do ? Kindly advice.

    Thank you
    Regards,
    Priya

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Ok and Cancel Buttons for Derived QDialog

    It depends on what you kind of UI you have in your dialog. For example, there are QInputDialog or QMessageBox.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×