I don't know whether it is the correct solution to this problem or not but this is what I tried and it was successful:
- Go to
Tools ---> Options ---> IDE Options
- Then in the
Code Completion
part addcv2
toSpecial Packages
This enabled the auto-complete for opencv
in the editor!