Results 1 to 3 of 3

Thread: Error "request for member which is of non-class type" using QList pointers

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Error "request for member which is of non-class type" using QList pointers

    i is an iterator. The thing it "points" to, i.e. *i, is a pointer to QGraphicsTextItem. You want this:
    Qt Code:
    1. (*i)->setVisible(isShowLabels);
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to ChrisW67 for this useful post:

    mwgobetti (22nd November 2011)

Similar Threads

  1. Replies: 4
    Last Post: 25th February 2011, 09:01
  2. "Treat wchar_t as Built-in Type" to "yes" link error
    By sungaoyong in forum Qt Programming
    Replies: 1
    Last Post: 5th June 2008, 11:45
  3. Replies: 4
    Last Post: 19th March 2008, 17:47
  4. Compilation error: "field 'xxx' has incomplete type"
    By fedcer in forum Qt Programming
    Replies: 4
    Last Post: 27th July 2007, 15:01
  5. QList with "local type"
    By drhex in forum Qt Programming
    Replies: 1
    Last Post: 11th April 2007, 05:07

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
  •  
Qt is a trademark of The Qt Company.