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. [Solved] Does Qt 4.6.x support class QAudioOutput?
QtWS25 Last Chance

[Solved] Does Qt 4.6.x support class QAudioOutput?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 2.0k 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.
  • Z Offline
    Z Offline
    zzding
    wrote on last edited by
    #1

    Hi,

    Does Qt 4.6.x support class QAudioOutput? if not, which class I shoud use to implement play audio file?

    thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      steno
      wrote on last edited by
      #2

      "Qt 4.6 QAudioOutput documentation":http://doc.qt.digia.com/4.6/qaudiooutput.html

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zzding
        wrote on last edited by
        #3

        thank you, Steno. when I include the class, it can not pass the compiling. Other Qt lass is ok. That is why I post the question.

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          I've used QAudioOutput in Qt 4.6.3 before; it's supported.

          What error did you get?

          Also, what platform are you on? I know that Ubuntu modified their Qt packages and broke Qt Multimedia some time ago.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            zzding
            wrote on last edited by
            #5

            Hi, JKSH,

            Thank you!

            The problem (compiling errror: can not find the file, when using QAudioOutput) has been soleved. I have to add a line manullay in project file:

            QT += multimedia widgets

            My platform is also Qt 4.6.3

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              You're welcome :)

              You don't need "widgets" by the way -- that only exists in Qt 5. Use "gui" in Qt 4.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              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