A
A
AlexSer2020-02-20 15:27:26
Qt
AlexSer, 2020-02-20 15:27:26

How to combine QT QMap elements?

I have two arrays with data:

QMap(("0092_1", "27.500")("0092_2", "0.862")("ID", "089721")))
 QMap(("0013_1", "10.500")("0013_2", "0.991")("0013_3", "0.991")("0013_4", "113.337")("ID", "089721")))

How can I combine them into 1 by ID key?
QMap(("0013_1", "10.500")("0013_2", "0.991")("0013_3", "0.991")("0013_4", "113.337")("0013_1", "10.500")("0013_2", "0.991")("0013_3", "0.991")("0013_4", "113.337")("ID", "089721")))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory, 2020-02-20
@AlexSer

QMap<Key, T> &QMap::unite(const QMap<Key, T> &other)

Read documentation)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question