Important: Please read the Qt Code of Conduct -

How to set QDialog not visible on exec() method?

  • Hello all
    i start QDialog with exec() method , now i like it to invisible until some inner object inside it (Qwebkit ) will finish its stuff .
    in the QDialog constructor i set it to :
    but will when i do where pAuthenticationDialogContainer is pointer to QDialog :
    @if(pAuthenticationDialogContainer->exec() != QDialog::Accepted ) { ....} @

    i can see the QDialog for few seconds (1-2 seconds )
    how can i make it fully invisible ?

  • Maybe you can call hide() inside showEvent()?

Log in to reply