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
Forum Updated to NodeBB v4.3 + New Features

How could I unblock some widgets after QDialog exec is called

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 725 Views 3 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.
  • T Offline
    T Offline
    tham
    wrote on 14 Feb 2018, 04:27 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
    • Y Offline
      Y Offline
      yuvaram
      wrote on 14 Feb 2018, 05:16 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
      • S Offline
        S Offline
        sierdzio
        Moderators
        wrote on 14 Feb 2018, 05:17 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
        • P Offline
          P Offline
          Pablo J. Rogina
          wrote on 14 Feb 2018, 17:57 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

          1/4

          14 Feb 2018, 04:27

          • Login

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