[Qt-interest] Block Device File I/O
Rohan Prabhu
rohan at rohanprabhu.com
Tue Jun 1 04:51:50 CEST 2010
Qt does not have any native functions that support direct interaction
with devices. Thinking about it, when Qt does not even support a
standard as universal as USB, it is almost impossible to imagine
and/or expect Qt to support devices. This is so that maintaining
cross-platform support amongst the various devices that are possible
is just way too complicated, and not all devices have an abstraction
defined within their host operating system, thereby making a
generalization (what you would expect of a toolkit like Qt) is simply
impossible and would rather make things more cumbersome. Drivers for
standards like USB are written over the interface and have their own
added problems.
If, the drivers on your system do make the magnetic tape readable in a
sense that it mounts to a volume, a partition or a mount point, then
you can definitely use one of the subclasses of QIODevice (or you may
have to make one on your own) for your purpose. If your magnetic tape
is mounted as /dev/mag0, then maybe you can use QFile with it provided
that Qt reads attributes from such mount points well and thereby sets
various properties like sequential etc. properly. From what I believe,
such should be the case, but I can't be very sure.
Least to say, the description of your problem is very vague and short.
You're asking for something that from the first sight doesn't seem to
be a common question. You would like to elaborate it further and
provide more details.
Regards,
Rohan
On Tue, Jun 1, 2010 at 7:28 AM, Alex <shao.tu at gmail.com> wrote:
> Hi,
>
>
> Did anybody experience to read/write data to/from a magnetic tape unsing
> native QT method?
> How do I do that?
> Thanks!
>
>
> Alex
>
> _______________________________________________
> 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