[Qt-interest] Question about bitfields
Dan White
ygor at comcast.net
Fri Jul 16 15:14:53 CEST 2010
No, that misses the target
"The QFlags class provides a type-safe way of storing OR-combinations of enum values"
I need to, for example, manipulate two boolean bits and a 14-bit signed integer stored in 2 bytes.
“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)
----- Sean Harmer <sean.harmer at maps-technology.com> 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
> _______________________________________________
> 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