Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. A [qrc_MyResource.0] Error 1

A [qrc_MyResource.0] Error 1

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 3 Posters 1.4k 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.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by
    #1

    My purpose is to embed a mp4 in Qt resources and playback but i get a [qrc_MyResource.0] Error 1.

    if (! fileName.isEmpty()) {

     mediaPlayer.setMedia(QUrl::fromLocalFile(":/MyFiles/korean.mp4")  );
     playButton->setEnabled(true);
    

    }

    Any suggestion?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vovasty
      wrote on last edited by
      #2

      Hi,
      delete all temporary project files. Make Clean and Rebuild.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        When exactly are you getting that error ? Which size is this file ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • V Offline
          V Offline
          Vovasty
          wrote on last edited by
          #4

          bq. SGaist wrote:
          Hi,
          When exactly are you getting that error ? Which size is this file ?

          Can size affect?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Yes it does, the resource system embeds the file in your executable which means that it will get compiled into it

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Vovasty
              wrote on last edited by
              #6

              [quote author="SGaist" date="1413498949"]Yes it does, the resource system embeds the file in your executable which means that it will get compiled into it[/quote]
              Thank you for answer.

              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