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. QML import could not be resolved any of the import paths : QtQuick.Controls.Material.impl

QML import could not be resolved any of the import paths : QtQuick.Controls.Material.impl

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 12.0k 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.
  • T Offline
    T Offline
    Trung Nguyen
    wrote on last edited by
    #1

    I'm a beginner with Qt programing , i'm trying to build a native control application for smart home and i have some problem when i try to use the QtQuick.Controls.Material. The compile output report :

    seccess

    Warning : QML import could not be resolved any of the import paths: QtQuick.Controls.impl
    Warning : QML import could not be resolved any of the import paths: QtQuick.Controls.Material.impl

    It still working when i deploy the project on desktop Qt 5.7.1 MSVC2015 kit , but when i deploy on Android for x86 (GCC 4.9 , Qt 5.7.1) kit , it doesn't work

    please help me to fix it !

    1 Reply Last reply
    1
    • E Offline
      E Offline
      Eeli K
      wrote on last edited by
      #2

      Compiling for Android gives such warnings, but for me the compiled application works nevertheless. As usual, you should provide more information: "it doesn't work" isn't enough. What you exactly do, what you expect to happen and what really happens/doesn't happen.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Trung Nguyen
        wrote on last edited by
        #3

        Thanks for reading my problem !
        My English still so bad , so i sorry for make you obscure !
        I try to build an user interface for the smart home control application and i want to add the Material style on the interface to change the color of theme and accent . It look good when i deploy my projeck on desktop Qt 5.7.1 MSVC2015 kit and run it , but when i deploy it on Android for x86 (GCC 4.9, Qt 5.7.1) and run it on Android virtual device it doesn't work , just a white screen in my app . The " Import QtQuick.Control. Material 2.0" has the red underline . Help me to fix it , please !

        E 1 Reply Last reply
        0
        • T Trung Nguyen

          Thanks for reading my problem !
          My English still so bad , so i sorry for make you obscure !
          I try to build an user interface for the smart home control application and i want to add the Material style on the interface to change the color of theme and accent . It look good when i deploy my projeck on desktop Qt 5.7.1 MSVC2015 kit and run it , but when i deploy it on Android for x86 (GCC 4.9, Qt 5.7.1) and run it on Android virtual device it doesn't work , just a white screen in my app . The " Import QtQuick.Control. Material 2.0" has the red underline . Help me to fix it , please !

          E Offline
          E Offline
          Eeli K
          wrote on last edited by
          #4

          @Trung-Nguyen
          The white screen could be a problem with the Android emulator which comes with the Android SDK. I start the emulator from command line and add switch "-gpu swiftshader". I use cygwin terminal and have added an alias:

          alias emulator-6='/cygdrive/c/Users/Eeli/AppData/Local/Android/Sdk/tools/emulator.exe -avd 6 -gpu swiftshader'

          (The avd have been created with name "6" beforehand.)

          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