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. Blocking "Escape" keyboard button and Dialog!
Forum Updated to NodeBB v4.3 + New Features

Blocking "Escape" keyboard button and Dialog!

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 4.6k 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.
  • D Offline
    D Offline
    dcbasso
    wrote on last edited by
    #1

    Well I'm trying to remove the function of button "Esc" in some dialogs!
    The user need to click at one button on the screen, and "Esc" need to be disable!

    How can I do that?
    Thanks

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cincirin
      wrote on last edited by
      #2

      Reimplement "closeEvent":http://doc.qt.digia.com/qt/qwidget.html#closeEvent ?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dcbasso
        wrote on last edited by
        #3

        The solluction:

        http://www.qtcentre.org/threads/13875-QDialog-how-to-stop-hide-on-quot-ESC-quot

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dcbasso
          wrote on last edited by
          #4

          Well appears to have two ways to solve this problem!
          I'm test here the two situations!

          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