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. Problem using custom components on Windows
Qt 6.11 is out! See what's new in the release blog

Problem using custom components on Windows

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 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.
  • M Offline
    M Offline
    mjjohnson
    wrote on last edited by
    #1

    I'm working with an application that uses PySide and QML. I develop on Linux, but for testing purposes I just tried started trying to run my application on Windows as well. However, when I try, the application can't seem to find any of the custom components I've defined (I get an error message saying "foo is not a type"). These are QML files in the same directory as the root element, and on Linux everything works fine. Is there a trick to getting it to work on Windows too? Do I need to specifically set a path or define a qmldir file or something?

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wagner.reck
      wrote on last edited by
      #2

      Are you launching qmlviwer (or your application) from the root element directory?

      O got some problems in windows when i run a application form other place that not is it's 'root'.

      'I will not buy this record, it's scratch'

      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