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. How to create Resources folder?
Forum Updated to NodeBB v4.3 + New Features

How to create Resources folder?

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 4 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.
  • C Offline
    C Offline
    CuriousPan
    wrote on 27 Sept 2021, 13:09 last edited by
    #1

    I would like to add some images to my project and according to convention I should add them using Resources folder. Although, I'm struggling with creating it. How can I do it?

    J 1 Reply Last reply 27 Sept 2021, 13:14
    0
    • C CuriousPan
      27 Sept 2021, 13:09

      I would like to add some images to my project and according to convention I should add them using Resources folder. Although, I'm struggling with creating it. How can I do it?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 27 Sept 2021, 13:14 last edited by
      #2

      @CuriousPan said in How to create Resources folder?:

      Resources folder

      You probably mean resource files?
      Did you see https://doc.qt.io/qt-5/resources.html ?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        CuriousPan
        wrote on 27 Sept 2021, 13:51 last edited by
        #3

        Yes, I did. But when I put in .pro file Resources = nameOfApplication.qrc nothing works.

        C 1 Reply Last reply 27 Sept 2021, 16:32
        0
        • M Offline
          M Offline
          mchinand
          wrote on 27 Sept 2021, 15:50 last edited by
          #4

          Did you re-run qmake and re-build your application after adding that to your .pro file? Can you share your nameOfApplication.qrc file? Also, you can use QtCreator to add files to your resource file instead of creating it by hand.

          C 1 Reply Last reply 27 Sept 2021, 15:57
          0
          • M mchinand
            27 Sept 2021, 15:50

            Did you re-run qmake and re-build your application after adding that to your .pro file? Can you share your nameOfApplication.qrc file? Also, you can use QtCreator to add files to your resource file instead of creating it by hand.

            C Offline
            C Offline
            CuriousPan
            wrote on 27 Sept 2021, 15:57 last edited by
            #5

            @mchinand, yes I'd like to have QtCreator and have this:97c0b2d8-4a8e-4f92-bc83-529d52ba3ad2-image.png

            1 Reply Last reply
            0
            • C CuriousPan
              27 Sept 2021, 13:51

              Yes, I did. But when I put in .pro file Resources = nameOfApplication.qrc nothing works.

              C Offline
              C Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 27 Sept 2021, 16:32 last edited by
              #6

              @CuriousPan said in How to create Resources folder?:

              Resources = nameOfApplication.qrc

              the pro-file is case-sensitive

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              1

              1/6

              27 Sept 2021, 13:09

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved