c++ - Setting values in QPolygonF -


i'm trying set value in qpolygonf object value. example:

qpolygonf *polygonpoints; polygonpoints->resize(2); polygonpoints[1] = qpointf(5.0,5.0); 

when try compile error says there no operator found takes right-hand operand of type 'qpointf'. qpolygon inherited qvector feel should work... above code works when use "<<" i'd modify specific values in polygon instead of appending values. thanks.

qpolygonf (and other qt containers) best used without pointers or else you'll need dereference pointer:

(*polygonpoints)[1] = qpointf(5.0,5.0); 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -