This may be a ridiculous question. And it may be just a C++ question. But I am totally lost here.

I would think that if I have declared an object, say a QListView, in a header file, but have not yet initialized that object, I could test for that declared but not initialized state with

Qt Code:
  1. if(sequenceList == NULL)
To copy to clipboard, switch view to plain text mode 

where sequenceList is the name of my QListView. But it is always returning false, whether initialized or not. I've also tried:

Qt Code:
  1. if(sequenceList == null)
To copy to clipboard, switch view to plain text mode 

and

Qt Code:
  1. if(sequenceList == 0)
To copy to clipboard, switch view to plain text mode 

What am I doing wrong here? Any help would be greatly appreciated.

Thanks,
Derek