Results 1 to 19 of 19

Thread: QList question

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    131
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    11
    Thanked 16 Times in 16 Posts

    Default Re: QList question

    ..\..\..\..\QtSDK\Desktop\Qt\4.7.1\mingw\include\Q tCore/qobject.h:309: error: 'QObject::QObject(const QObject&)' is private
    ..\QtBSPPlayer\/BSPItemProperty.h:9: error: within this context
    Are you trying to make a copy of a qobject?

  2. #2
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    111
    Thanked 4 Times in 4 Posts

    Default Re: QList question

    Quote Originally Posted by nightghost View Post
    Are you trying to make a copy of a qobject?
    I do not think so, but if I do, then I do not know where. If I comment the core of methods addProperty() - append method generates errors and in constructor, clear method generates errors and I simply do not know why. Does these two methods use copy constructor internally??
    Qt 5.3 Opensource & Creator 3.1.2

  3. #3
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    131
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    11
    Thanked 16 Times in 16 Posts

    Default Re: QList question

    I assume that append creates a copy of the appened object, as well as functions like value

  4. #4
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    111
    Thanked 4 Times in 4 Posts

    Default Re: QList question

    Quote Originally Posted by nightghost View Post
    I assume that append creates a copy of the appened object, as well as functions like value
    Well, so what do I do now to get rid of these errors
    Qt 5.3 Opensource & Creator 3.1.2

  5. #5
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    8
    Thanked 133 Times in 128 Posts

    Default Re: QList question

    define a copy constructor in you BP item class

Similar Threads

  1. Sorting using qSort(), - if QList contains POINTERS
    By joseph in forum Qt Programming
    Replies: 13
    Last Post: 18th August 2013, 18:55
  2. Interface methods question
    By sincnarf in forum Qt Programming
    Replies: 3
    Last Post: 5th October 2007, 10:20
  3. QList
    By dragon in forum Qt Programming
    Replies: 11
    Last Post: 9th May 2007, 20:15
  4. QList question
    By aamer4yu in forum Qt Programming
    Replies: 4
    Last Post: 2nd April 2007, 13:43
  5. Accessing QList Objects
    By magikalpnoi in forum Qt Programming
    Replies: 7
    Last Post: 21st September 2006, 20:43

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.