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. Can't add resource files. Get an error.
Forum Updated to NodeBB v4.3 + New Features

Can't add resource files. Get an error.

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 2.0k Views 2 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.
  • D Offline
    D Offline
    Darkware
    wrote on last edited by
    #1

    I am trying to figure out how to add resources to my project. If I right click my project and choose Add New... > Qt > Qt Resource File, I can type out the name, but it says some error at the bottom:

    http://imgur.com/JLnvsH6

    If I go ahead and press Finish, it comes up with an error box that says the same thing. I see in the directory on my actual computer that it has successfully created the folder even so, but I don't get the folder in my project.

    What do? :(

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clochydd
      wrote on last edited by
      #2

      Hi, and welcome to DevNet,

      it's difficult to read but it seems, there's a problem in your filename.
      Try to use a filename without any special characters - if you don't succeed, post the filename here.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Darkware
        wrote on last edited by
        #3

        The file name I was trying to make was someResourceThing. It has no special characters in it. You can see where "someResourceThing" is in the error.

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

          Hi,

          Is that file in a subfolder of your application ?

          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
          • D Offline
            D Offline
            Darkware
            wrote on last edited by
            #5

            It doesn't exist prior to me trying to create it from within Qt, but it does get created despite the error. The directory is the same one that has my .cpp and .h and .pro files in it.

            The same thing happens when I try to create a new .cpp file this way. In order to even get a new .cpp or .h file, I have to manually create it a .txt file in the directory, rename it to whatever.cpp, then from within Qt add it as an existing file. That's how I've been doing it for a while now.

            Would be nice to get the Add New... feature to work though.

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

              Can you retry that after moving your project in a path without spaces ?

              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
              • R Offline
                R Offline
                RavensAngel
                wrote on last edited by
                #7

                Can you please show:

                • your .pro file
                • the input you gave in the "New Qt Resource file" dialog
                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