Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Unable to run Qt/QML application on Ubuntu 20.04
Forum Updated to NodeBB v4.3 + New Features

Unable to run Qt/QML application on Ubuntu 20.04

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 3 Posters 1.4k 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.
  • Rob005R Offline
    Rob005R Offline
    Rob005
    wrote on last edited by
    #1

    Hi,
    I'm trying to find a solution for this deployment problem for two days now, without success.

    I have a fresh default installation of Ubuntu 20.04.3. I try to run a program, build with Qt 5.15.8 on another Ubuntu 20.04.3 system. I build the piechart example from the tutorial (chapter1-basics).
    It runs fine on my developer machine, however, when I try to run it on the other machine, I always end with this error:

    Warning: QQml_colorProvider: no color provider has been set!
    qrc:/app.qml:62:16: Invalid property assignment: color expected 
                 color: "red"
                        ^
    
    

    I checked the dependencies with ldd, I made a distribution package with CQtDeploy. Always the same error. When I try another program, I get the same warning about the QQml_colorProvider, but I get the error at a different place.

    Warning: QQml_colorProvider: no color provider has been set!
    qrc:/qml/qml/main.qml:45:5: Connections is not a type 
             Connections
             ^
    

    So the error place/reason seems to be random. I guess something is missing. Any ideas?

    JonBJ 1 Reply Last reply
    0
    • Rob005R Rob005

      Hi,
      I'm trying to find a solution for this deployment problem for two days now, without success.

      I have a fresh default installation of Ubuntu 20.04.3. I try to run a program, build with Qt 5.15.8 on another Ubuntu 20.04.3 system. I build the piechart example from the tutorial (chapter1-basics).
      It runs fine on my developer machine, however, when I try to run it on the other machine, I always end with this error:

      Warning: QQml_colorProvider: no color provider has been set!
      qrc:/app.qml:62:16: Invalid property assignment: color expected 
                   color: "red"
                          ^
      
      

      I checked the dependencies with ldd, I made a distribution package with CQtDeploy. Always the same error. When I try another program, I get the same warning about the QQml_colorProvider, but I get the error at a different place.

      Warning: QQml_colorProvider: no color provider has been set!
      qrc:/qml/qml/main.qml:45:5: Connections is not a type 
               Connections
               ^
      

      So the error place/reason seems to be random. I guess something is missing. Any ideas?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Rob005
      Did you Google for Warning: QQml_colorProvider: no color provider has been set and read through those hits?

      Rob005R 1 Reply Last reply
      0
      • JonBJ JonB

        @Rob005
        Did you Google for Warning: QQml_colorProvider: no color provider has been set and read through those hits?

        Rob005R Offline
        Rob005R Offline
        Rob005
        wrote on last edited by
        #3

        @JonB Sure. I did not find anything, beside a bug in Qt 5.15.0-5.15.2 that should have been fixed 6 years ago. And, as I mentioned, it works on my developer machine with the exact same Ubuntu version.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mosolov
          wrote on last edited by
          #4

          Just want to mention that I have the same issue and that issue is gone after "apt install qt5-quick-demos" on Ubuntu 22.04.

          There's bunch of plugins installed:

          Get:1 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-window2 amd64 5.15.3+dfsg-1 [26,3 kB]
          Get:2 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick2 amd64 5.15.3+dfsg-1 [33,7 kB]
          Get:3 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtgraphicaleffects amd64 5.15.3-1 [74,3 kB]
          Get:4 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtqml amd64 5.15.3+dfsg-1 [17,2 kB]
          Get:5 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtqml-models2 amd64 5.15.3+dfsg-1 [18,0 kB]
          Get:6 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-layouts amd64 5.15.3+dfsg-1 [56,0 kB]
          Get:7 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-controls amd64 5.15.3-1 [577 kB]
          Get:8 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 libqt5xmlpatterns5 amd64 5.15.3-1 [901 kB]
          Get:9 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qt-labs-folderlistmodel amd64 5.15.3+dfsg-1 [36,1 kB]
          Get:10 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qt-labs-settings amd64 5.15.3+dfsg-1 [26,5 kB]
          Get:11 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-templates2 amd64 5.15.3+dfsg-1 [77,0 kB]
          Get:12 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-controls2 amd64 5.15.3+dfsg-1 [935 kB]
          Get:13 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-privatewidgets amd64 5.15.3-1 [49,8 kB]
          Get:14 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-dialogs amd64 5.15.3-1 [132 kB]
          Get:15 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-particles2 amd64 5.15.3+dfsg-1 [19,3 kB]
          Get:16 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qml-module-qtquick-xmllistmodel amd64 5.15.3-1 [37,3 kB]
          Get:17 http://ru.archive.ubuntu.com/ubuntu jammy/universe amd64 qt5-quick-demos amd64 5.15.3-1 [2 191 kB]

          Some qml plugin must be missing or misconfigured, I've stopped tracking that issue after that fix.

          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