A
A
Akilian2018-06-10 17:21:56
Qt
Akilian, 2018-06-10 17:21:56

How to correctly pass and then clear QMultiMap?

There is class A which has QMultiMap. There is also a method that should return data from this multiword, and then clear it in class A, but in the place where I get it, I should be able to use it. I implemented this method like this:

QMultiMap<QString*,QString*>*  getdata()
{
     return &data;
}

I would also like to know how best to clear this dictionary after the transfer.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question