Important: Please read the Qt Code of Conduct -

Using QDialog with the Button Box

  • Hello-

    I'm not quite sure how to use this generic box. I don't understand how you are suppose to use it.

    1. When my dialog box appear, I like the control to go to it and the user not to be able to operate the mainwindow? Is this as simple as the just set the enable to false? Or is there something else?

    2. How am I suppose to implement window? Right now it just flashes across the screen? Do i have to use some type of loop?


  • Never mind I figured it out. Took several more tries and reading. My problem is I don't know what I'm even looking for.

    I had to set modal to tree. Is QDialog::setModal how would say that? Also, its the exec method i over looked. I was under the impression that's not what you want to do. I thought the Qapplication exec was the only one i needed.


Log in to reply