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 :
    @setVisible(false);@
    and
    @hide()@
    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 ?
    Thanks



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.