Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to set QDialog not visible on exec() method?

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    umen242
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • P Offline
      P Offline
      p-himik
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved