Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved qrc://scrollbar.qml:-1 No file name specified

    QML and Qt Quick
    2
    4
    580
    Loading More Posts
    • 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.
    • S
      Slv007 last edited by

      I have old project, now I tried to update it to Qt 5.8 and QtQuick.Controls 2.1, but I got error

      qrc://scrollbar.qml:-1 No file name specified
      

      this error is produced by code :

      import QtQuick 2.7
      import QtQuick.Controls 2.1
      import QtQuick.Layouts 1.1
      
      Flickable{
              id:flickable
              anchors.fill: parent
              ScrollBar.vertical: ScrollBar { }
          }
      

      I'm running this code on Android phone. What is wrong here ?

      E 1 Reply Last reply Reply Quote 0
      • S
        Slv007 last edited by

        Problem solved. I forgot that I have the ScrollBar.qml as custom scrollbar already. So, just renaming it solves the problem.

        1 Reply Last reply Reply Quote 0
        • E
          Eeli K @Slv007 last edited by

          @Slv007 It may be a deployment problem. Have you created a new project and copied your code files from the old one or trying to use existing project files, .pro etc.?

          1 Reply Last reply Reply Quote 0
          • S
            Slv007 last edited by

            I'm using existing project, just changed header of QML file and added Scrollbar

            1 Reply Last reply Reply Quote 0
            • S
              Slv007 last edited by

              Problem solved. I forgot that I have the ScrollBar.qml as custom scrollbar already. So, just renaming it solves the problem.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post