Results 1 to 3 of 3

Thread: Qt equivalent of boost::ptr_vector?

  1. #1
    Join Date
    Jul 2007
    Posts
    121
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    38
    Thanked 3 Times in 3 Posts

    Default Qt equivalent of boost::ptr_vector?

    I am looking for equivalent of boost:tr_vector in Qt class hierarchy. If I am using QList<someclass> I don't see a way to use indexOf method with operator== overloaded in someclass.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Qt equivalent of boost::ptr_vector?

    Quote Originally Posted by QPlace View Post
    If I am using QList<someclass> I don't see a way to use indexOf method with operator== overloaded in someclass.
    Could you explain what you mean? indexOf will work on pointers and so will the equality operator.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    QPlace (20th June 2009)

  4. #3
    Join Date
    Jul 2007
    Posts
    121
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    38
    Thanked 3 Times in 3 Posts

    Default Re: Qt equivalent of boost::ptr_vector?

    Thank you for the quick reply. It was my bad, everything works as expected.

Similar Threads

  1. Replies: 5
    Last Post: 17th March 2011, 08:21
  2. Equivalent of MFC "CTreeCtrl" in Qt
    By uma_kanti in forum Qt Programming
    Replies: 2
    Last Post: 4th September 2008, 16:13
  3. Replies: 1
    Last Post: 18th August 2008, 22:22
  4. Qt OpenGL equivalent of glutIdleFunc()?
    By HappySmileMan in forum Qt Programming
    Replies: 2
    Last Post: 23rd July 2008, 21:56
  5. what's the equivalent with DPtoLP in windows
    By cocalele in forum Qt Programming
    Replies: 6
    Last Post: 1st March 2006, 06: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
  •  
Qt is a trademark of The Qt Company.