M
M
Maxim Rudnev2017-07-23 02:13:10
Qt
Maxim Rudnev, 2017-07-23 02:13:10

How to pass reference/pointer to QList to class constructor?

How to pass reference/pointer to QList to class constructor? just int turns out

Constructor_test::Constructor_test(int a, int b, QList<int> *a)
I try like this. does not exit
and how to initialize correctly, in this case

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
devalone, 2017-07-23
@stigmt

QList<Type>& list, but betterconst QList<Type>& list

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question