[Qt-interest] QAbstractFileEngine problems

Jason H scorp1us at yahoo.com
Thu Jul 8 16:45:49 CEST 2010


Apparently Yahoo's Webmail client is screwing up these days. Re-topic'ed.




----- Original Message ----
From: Jason H <scorp1us at yahoo.com>
To: Thiago Macieira <thiago at kde.org>; qt-interest at trolltech.com
Sent: Thu, July 8, 2010 10:36:14 AM
Subject: Re: [Qt-interest] Qt Visual Studio Add-in for VS2010?

Thanks everyone! I got my stuff to work, only to find out that I can't use it. 
SQLite's BLOB handling is horrible. It has to load the entire thing into memory, 

which just won't work for me. (I also found that BLOBS cannot be incrementally 
appended to or read, which is an essential feature of write() an read()!)

So now I am have made a different AFE. But ran into a problem with my 
understanding.
Given that my serialized structure will be QMap archivemetadata, [(QString 
filename, QByteArray file), repeat as needed].
When I open the archive for writing, I need to write the archive metadata, but 
that depends on various settings.  How can I set these settings the first time 
it is opened, if some of the the settings come from various places?

// Copy a file into the archive. 
QFile in("1.jpg");
QFile out("wad:file.wad/1.jpg");
if (out.open(QIODevice::WriteOnly))
{
         // i need to write wad file metadata (QMap) here that is provided by a 
GUI. like 'sourceURL'
      // the metadata is on an archive basis and not an inner file basis. 
         //out.fileEngine()->setMetadata(map); // I want to do this

      while (!in.atEnd())
     {
          out.write(in.read(128*1024));
     }
}


What I want to do, is out.fileEngine()->setMetadata(map);

But unlike a QPainter, i don't have access to the engine? I figure this means I 
am doing something wrong. Any help?

Thanks!




----- Original Message ----
From: Thiago Macieira <thiago at kde.org>
To: qt-interest at trolltech.com
Sent: Wed, July 7, 2010 7:19:13 PM
Subject: Re: [Qt-interest] Qt Visual Studio Add-in for VS2010?

On Thursday 8. July 2010 00.45.45 Scott Aron Bloom wrote:
> I don't see why they wouldn't have the rights to it... The own it right?
> So why not release it into the LGPL.

That would be completely useless for you, since you can't link the VS 
integration libraries to LGPL software.

You know which company to complain to about that. :-/

PS: do you think you can configure your email client to properly quote emails?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358



      

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



      




More information about the Qt-interest-old mailing list