Conversation
Notices
-
I'm using qt 4.7 but I get msg of the error: "error: call of overloaded ‘QString(int)’ is ambiguous" it's a bug of the 4.7? !qt
-
@lentulius: you can't create a QString from an int, this has always been an error in Qt4. What's your line of code?
-
@dfaure In .h: "QString variable"; In .cpp:"variable(0);".
-
@lentulius remove the 0.
-
@dfaure I need it.
-
@lentulius Trust me, you don't. You can create an empty string with variable() in a ctor initialization list, or with variable = QString().
-
@lentulius: I can't find any constructor taking an int as argument. Could you paste the code that throws that error?
-
@rugginoso In .h: "QString variable;" In .cpp:"variable(0);".
-
@lentulius: variable is not a pointer, you have not to initialize it to 0.
-
@lentulius No the Qt API doesn't accept QString foo = 0 anymore. Use Qstring foo =QString::null
-