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. Pressing Enter on Msgbox closes parent dialog as well

Pressing Enter on Msgbox closes parent dialog as well

Scheduled Pinned Locked Moved Unsolved General and Desktop
messagebox
2 Posts 2 Posters 669 Views
  • 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.
  • N Offline
    N Offline
    nnzz
    wrote on last edited by
    #1

    I have a msgbox with just "close" button. When I press "enter" both the msgbox and the parent dialog are closed.
    How can I prevent the parent dialog from closing?

    jsulmJ 1 Reply Last reply
    0
    • N nnzz

      I have a msgbox with just "close" button. When I press "enter" both the msgbox and the parent dialog are closed.
      How can I prevent the parent dialog from closing?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @nnzz With that information others can only guess what the reason could be.
      Please show how you create and show the dialog.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      5

      • Login

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