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. Trying to rename a file

Trying to rename a file

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 709 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.
  • C Offline
    C Offline
    Circuits
    wrote on last edited by
    #1

    In the Projects hierarchy I tried to rename a .qml script by right clicking it and selecting: "Rename" and was presented with a Project Editing Failed popup:

    The project file GallUi.pro cannot be automatically changes." Rename WizardPopupKeyboard.qml to WizardPopupNumericKeyboard.qml anyway?
    

    I selected yes. Then when I run the program I get an error:

    No rule to make target 'WizardPopupKeyboard.qml', needed by 'qrc_QML.cpp'. Stop.
    

    I tried running qMake and that didn't work. What does it take to rename a qml file?

    1 Reply Last reply
    0
    • fcarneyF Offline
      fcarneyF Offline
      fcarney
      wrote on last edited by fcarney
      #2

      @Circuits said in Trying to rename a file:

      WizardPopupKeyboard.qml to WizardPopupNumericKeyboard.qml

      Your pro file has a reference to WizardPopupKeyboard.qml in it. Change that reference to WizardPopupNumericKeyboard.qml.

      Edit: Might also be in a qrc file.

      C++ is a perfectly valid school of magic.

      1 Reply Last reply
      3
      • C Offline
        C Offline
        Circuits
        wrote on last edited by
        #3

        There is no mention of the script in the .pro file. A grep search of the CodeBase for WizardPopupKeyboard returns: QML.qrc and qrc.QML.cpp. Both of these files contain a reference to WizardPopupKeyboard. Rather than start messing around with names in those folders I decided instead to create a new .qml file called WizardPopupNumericKeyboard.qml and copied the contents of WizardPopupKeyboard into that file, that seems to have worked.

        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