Currently I am doing the following, but not very convenient:

@ for( int i=0; i<bits.size()-10; i++ )

{

if( bits.at(i)==0 && bits.at(i+1)==0 && bits.at(i+2)==0 && bits.at(i+3)==0

&& bits.at(i+4)==0 && bits.at(i+5)==0 && bits.at(i+6)==0 && bits.at(i+7)==0

&& bits.at(i+8)==1 && bits.at(i+9)==0 )

...

@

Thanks

Ron

Currently I am doing the following, but not very convenient:

@ for( int i=0; i<bits.size()-10; i++ )

{

if( bits.at(i)==0 && bits.at(i+1)==0 && bits.at(i+2)==0 && bits.at(i+3)==0

&& bits.at(i+4)==0 && bits.at(i+5)==0 && bits.at(i+6)==0 && bits.at(i+7)==0

&& bits.at(i+8)==1 && bits.at(i+9)==0 )

...

@

Thanks

Ron

@

if (QString==QString)

{

// your code

}

@

This may look longer to code, but it will allow you to compare what you have with any pattern, as well as they are the same size.

]]>