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. Is there a way to check if system sounds are enabled?
Qt 6.11 is out! See what's new in the release blog

Is there a way to check if system sounds are enabled?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 760 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.
  • DiracsbracketD Offline
    DiracsbracketD Offline
    Diracsbracket
    wrote on last edited by
    #1

    Hi
    I am experimenting with Qt's audio recording features and wondering if there is a way to check if the platform (Windows or Mac) has its system sounds enabled? I don't want the recording to be ruined because of a notification message.

    If system sounds are enabled, I would like to display a warning message when the program starts, so that the user can disable them. Even better of course would be to let the app disable them, but I wonder if this can be done with Qt directly.

    Thanks

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Since that is very platform dependant i doubt there is a direct way but
      say on windows, you can use QSettings to alter registry
      https://www.petri.com/change_to_no_sounds_sound_scheme_by_default

      I cant say on macOS but i assume there is a way too.

      DiracsbracketD 1 Reply Last reply
      2
      • mrjjM mrjj

        Hi
        Since that is very platform dependant i doubt there is a direct way but
        say on windows, you can use QSettings to alter registry
        https://www.petri.com/change_to_no_sounds_sound_scheme_by_default

        I cant say on macOS but i assume there is a way too.

        DiracsbracketD Offline
        DiracsbracketD Offline
        Diracsbracket
        wrote on last edited by
        #3

        @mrjj Thanks, I will check it out!

        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