Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QSound and error 2019
Forum Updated to NodeBB v4.3 + New Features

QSound and error 2019

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 1.2k 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.
  • P Offline
    P Offline
    patouf35
    wrote on last edited by
    #1

    Hi, I got a problem when I try to use the QSound or QMediaPlayer QTCreator throws a "error LNK2019: external symbol not solved".
    here's my code:
    @#include "mainwindow.h"
    #include <QApplication>
    /#include <QtMultimedia/QMediaContent>
    #include <QtMultimedia/QMediaPlayer>
    #include <QUrl>
    /
    #include <QtMultimedia/QSound>
    int main(int argc, char argv[])
    {
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    /
    QMediaContent media(QUrl::fromLocalFile("pan.wav"));
    QMediaPlayer player;
    player.setMedia(media);
    player.play();*/
    QSound::play("pan.wav");

    return a.exec&#40;&#41;;
    

    }
    @
    I put "pan.wav" in each "release" and "source" folder.
    When I take out all the lines that have to deal with the sound processing it all compiles fine.
    I really need a little help here. Thanks :)

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      There is no need to" double posting":http://qt-project.org/forums/viewthread/24068/ in this forum. Therefore this post is closed.

      Vote the answer(s) that helped you to solve your issue(s)

      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