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 could I unblock some widgets after QDialog exec is called

How could I unblock some widgets after QDialog exec is called

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 682 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.
  • thamT Offline
    thamT Offline
    tham
    wrote on last edited by
    #1

    As the title mentioned, exec of QDialog will prevent you to manipulate any widgets except of the QDialog itself, is it possible to tell the QDialog, there are some widget should not be blocked?Thanks

    1 Reply Last reply
    0
    • yuvaramY Offline
      yuvaramY Offline
      yuvaram
      wrote on last edited by
      #2

      Hi @tham ,

      http://doc.qt.io/qt-5/qt.html#WindowModality-enum
      this could help you

      Yuvaram Aligeti
      Embedded Qt Developer
      : )

      1 Reply Last reply
      3
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        There is no "one click" way to do it, but you can disable modality of the widget and then selectively call setEnabled(false) only on widgets you wish to block.

        (Z(:^

        1 Reply Last reply
        5
        • Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @tham you should ask yourself if you need/want a modal or a modeless dialog.
          And based on the answer you achieve, you may need to revisit if some of the widgets you want enabled perhaps need to be part of the dialog.
          You may want to share some screenshots in any case.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          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