On 3/27/2011 12:29 AM, ext QtNext wrote: > Hi, > > I wants to use Custom components on Windows ( I don't wants to use desktop > module because I don't wants this look). there is no module so the only way > is to use : > imports "components" but because all my qml files are embedded as resource in > a qrc, and I can't embed custom components because of the LGPL license.... It > don't works .. I have tryed to add addImportPath but it don't works ... > > What can I do ?
The imports "X" notation AFAIK expects X to be a subdirectory of your current file directory, which might also be a subdirectory in the qrc virtual file system. Anyhow, if you don't want the components to be in the qrc filesystem, you've to import components with the imports components 1.0 notation. That is, you've to place the components directory in a known place, with a qmldir file in it, and add the parent directory via addImportPath to the engine. Regards Kai Koehne > > _______________________________________________ > Qt-components mailing list > Qt-components@qt.nokia.com > http://lists.qt.nokia.com/mailman/listinfo/qt-components -- Kai Koehne Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori _______________________________________________ Qt-components mailing list Qt-components@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-components