Just thinking out loud....

note 1:
Qt 4.6 now uses a QDirIterator to read through the file system.  But
QDirIterator doesn't see our QClassPathEngine which inherits from
QAbstractFileEngine.

I think we can add a custom iterator to the QClassPathEngine but I also
we need to add a wrapper for QAbstractFileEngine::beginEntryList
(currently rejected in the generator xml)

note 2:
Qt 4.5 called the appropriate entryList method directly. No Iterator.

note 3:
All methods in QDir seem to be working that don't rely on QDirIterator.

note 4:
If a path is already absolute, calling QDir.makeAbsolute() should have
no effect on the path?  (referring to what Bruno mentions below)

Regards,
Ralph


On Sat, 2010-01-16 at 19:25 +0100, Bruno Janvier wrote: 
> Here it is:
> 
> In Launcher.java
> method is traverseDirectory(String directory)
> 
> The QDir object is constructed then entryInfoList() is called to 
> generate a list of QFileInfo.
> 
> The problem is that the list is empty. It should not.
> 
> The QDir is constructed with the String 
> "classpath:com/trolltech/examples" as parameter.
> 
> If I do a makeAbsolute on it and then print dir.absolutePath(),
> it will display 
> "classpath:file:C:/Users/Bruno/workspace/qtjambi-examples/bin#com/trolltech/examples"
> 
> So the bug is that QDir do not seem to know how to handle "classpath:" 
> anymore.
> 
> QDir.java comes from the generator. I should have a look there, but it 
> won't fix anything.
> The fix will need to be applied either in the generator or Qt itself.
> 
> I CC this to Gunnar in case he is able to enlighten us a little.
> 
> Cheers,
> Bruno
> 
> _______________________________________________
> Qt-jambi-interest mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest



_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to