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 Block the Mouse Press Events During Wait Cursor?
Qt 6.11 is out! See what's new in the release blog

How to Block the Mouse Press Events During Wait Cursor?

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

    I have few QPushButtons. If I click on a QPushButton, another window with large number of GUI components (like line edit, text edit, push buttons, labels etc) will pop up. But due to large number of GUI components used in the window, the window takes some time to load. At that time, I use a Wait Cursor till the window gets loaded completely. During the Wait Cursor is loading, if I Click on a another QPushButton, the app gets crashed.

    How to block these clicking of other QPushButtons during the Wait cursor is loading. I want to block the Mouse Press events during the Wait cursor is On.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
      wrote on last edited by
      #2

      How are you deciding that all the windows are loaded successfully ? If you know this precisely, you can use grab and ungrab mouse. Or you can put the eventfilter and ignore all mouse events till load is complete.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      https://www.pthinks.com

      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