Results 1 to 2 of 2

Thread: problem with QFrame isVisible()

  1. #1
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default problem with QFrame isVisible()

    I am running Kubuntu 8.04, Qt-4.4 and I want to check whether a "QFrame" is visible
    Qt Code:
    1. if(frameA2.isVisible() == true) (frameA2->hide());
    To copy to clipboard, switch view to plain text mode 
    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
    Qt Code:
    1. frameA2->hide();
    To copy to clipboard, switch view to plain text mode 
    without checking, it works fine.

    Help would be appreciated.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: problem with QFrame isVisible()

    Notice the difference:
    Qt Code:
    1. frameA2.methodA()
    To copy to clipboard, switch view to plain text mode 
    vs.
    Qt Code:
    1. frameA2->methodB()
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    impeteperry (6th August 2008)

Similar Threads

  1. Qpainter function on a QFrame problem
    By impeteperry in forum Newbie
    Replies: 45
    Last Post: 14th October 2008, 12:43
  2. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 08:47
  3. QFrame problem
    By impeteperry in forum Qt Programming
    Replies: 4
    Last Post: 23rd February 2008, 20:34
  4. QTabWidget Parenting Problem
    By mclark in forum Newbie
    Replies: 4
    Last Post: 18th January 2007, 15:20
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.