Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. qrc://scrollbar.qml:-1 No file name specified
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 776 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.
  • S Offline
    S Offline
    Slv007
    wrote on last edited by
    #1

    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
    0
    • S Offline
      S Offline
      Slv007
      wrote on last edited by
      #4

      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
      0
      • S Slv007

        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 Offline
        E Offline
        Eeli K
        wrote on last edited by
        #2

        @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
        0
        • S Offline
          S Offline
          Slv007
          wrote on last edited by
          #3

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

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Slv007
            wrote on last edited by
            #4

            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
            0

            • Login

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