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 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?

    jsulmJ 1 Reply Last reply
    0
    • C CuriousPan

      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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 last edited by
        #3

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

        Christian EhrlicherC 1 Reply Last reply
        0
        • M Offline
          M Offline
          mchinand
          wrote on 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
          0
          • M mchinand

            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 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

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

              Christian EhrlicherC Online
              Christian EhrlicherC Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 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

              • Login

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