PDA

View Full Version : problem with QFrame isVisible()



impeteperry
5th August 2008, 16:27
I am running Kubuntu 8.04, Qt-4.4 and I want to check whether a "QFrame" is visible
if(frameA2.isVisible() == true) (frameA2->hide());and I get
baseform.cpp:1250: error: request for member ‘isVisible’ in ‘((BaseForm*)this)->BaseForm::frameA2’, which is of non-class type ‘QFrame*’
If I have just
frameA2->hide();without checking, it works fine.

Help would be appreciated.

jpn
5th August 2008, 16:29
Notice the difference:

frameA2.methodA()
vs.

frameA2->methodB()