August 11th, 2011, 12:58 PM
I guess I should use QList instead of QVector. If I understood right, lists are not reallocated.
August 11th, 2011, 12:40 PM
-reply with qoute
-multi-quote
-quick reply
that's what I see Paul.
And thanks for replies :)
August 11th, 2011, 12:39 PM
when reallocating does whole vector move? or only it's elements?
Following this http://doc.qt.nokia.com/qq/qq19-containers.html, if I understand properly, the location of vector's head is...
August 11th, 2011, 12:24 PM
1) I'f you'd be so kind to tell me where can I edit my post.
2) why do I need QVector of word pointers? Because I need to have only one instance of word appearing in many classes like
- word needs...
August 11th, 2011, 12:09 PM
so Paul, what can I do?
Creating "long enough" vector, not needing to expand, isn't a choice.
How does Map work? It re-allocates too?
August 11th, 2011, 12:07 PM
[sorry for writing another post, but couldn't find "edit this post" button]
and what If I have QVector<someClass*> vector and I want to return one of the pointers?
Is
return vector[0];...
August 11th, 2011, 12:01 PM
All of you, I'm sorry for not using code syntax, in hurry couldn't find it.
Philip, and that's what I was worrying about [pt 2].
How can I avoid this?
I have 2 classes which have inside...
August 11th, 2011, 11:06 AM
Hello there.
I've been struggling with this problem for 2 days [~30hours]. I'm writing my master thesis, and I'm stuck with pointers. Below I'll present some sample code. But what's the problem?
I...