[Qt-interest] Question about bitfields

Dan White ygor at comcast.net
Fri Jul 16 15:17:58 CEST 2010


I looked at QBitArray - great for a bundle of boolean flags, but I need to, for example, manipulate two boolean bits and a 14-bit signed integer stored in 2 bytes.

Thanks.

“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

----- Pritam Ghanghas <pritam_ghanghas at infosys.com> wrote:
> You can try this one also
> 
> http://doc.qt.nokia.com/4.6/qbitarray.html
> 
> On Fri, 2010-07-16 at 18:23 +0530, Sean Harmer wrote:
> > On Friday 16 July 2010 13:48:51 Dan White wrote:
> > > Are there any Qt classes that deal with bitfields ?  Or do I have to do it
> > > in plain old vanilla C ?
> > > 
> > > I searched documentation and mailing lists and did not find anything.
> > 
> > QFlags:
> > 
> > http://doc.qt.nokia.com/4.7-snapshot/qflags.html
> > 
> > Sean




More information about the Qt-interest-old mailing list