Results 1 to 2 of 2

Thread: QAudioDecoder() fails in Windows 7

  1. #1
    Join Date
    Oct 2015
    Posts
    5
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QAudioDecoder() fails in Windows 7

    Creating a QAudioDecoder fails in Windows 7 with the error:
    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.audiodecode"

    Code:
    Qt Code:
    1. QAudioDecoder decoder = new QAudioDecoder();
    To copy to clipboard, switch view to plain text mode 

    I tried using Qt versions 5.4 and 5.5.1 on Windows 7 and got the error both times. The code runs fine in Ubuntu.
    I have
    Qt Code:
    1. QT += core gui widgets multimedia
    To copy to clipboard, switch view to plain text mode 
    in my .pro file.

  2. #2
    Join Date
    Oct 2015
    Posts
    5
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QAudioDecoder() fails in Windows 7

    Eventually figured it out. I had to install microsoft visual studio 2013 and add the compiler to Qt Creator (projects->manage kits->msvc2013). Then QAudioDecoder works correctly.

Similar Threads

  1. QFile::remove() fails only on Windows?
    By rocketman768 in forum Qt Programming
    Replies: 0
    Last Post: 13th February 2013, 16:24
  2. CMake fails on Windows 7 64-bit
    By IndigoJo in forum Qt Programming
    Replies: 5
    Last Post: 12th September 2011, 21:15
  3. Compilation fails in Windows XP
    By sim in forum Newbie
    Replies: 3
    Last Post: 1st July 2010, 16:56
  4. Making Fails in Windows XP
    By sashwinamrita in forum Installation and Deployment
    Replies: 4
    Last Post: 8th December 2008, 14:41
  5. gcc (linux) : ok ; g++ (windows) : fails
    By nouknouk in forum Qt Programming
    Replies: 1
    Last Post: 25th February 2006, 03:08

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.