c++ - Using Qt: Invalid conversion from const void* to void* while using QList -
I have been running with QT and C ++ for some time, but I have participated in this error and not You can understand why this crop has many questions that have been answered with the CONSTANT * conversion error message, but I can not really see how explanations help in my case, here Here goes:
I have a 're' of QList Receipt 'MyTypeManager & lt; MyType * const>, therefore a list of Constant Points for non-core muteaps However, when there is a function in my replenishment, AddMyType is
Zero MyTypeManager :: addMyType (MyType * Const var is called {here->; Append (var); } The following error (s) are:
contains the / usr / include / qt4 / qtcore / qlist file: 1: 0, From ../qtsdlthread/mytypemanager.h:4, from ../qtsdlthread/mytypemanager.cpp:1: /usr/include/qt4/QtCore/qlist.h: Member QList in the member function & lt; T & gt; : Node_construct (QList & lt; T & gt; :: Node *, const T & amp;) with [T = MyType * const]: /: /usr/include/qt4/QtCore/qlist.h:499:13 From: Immediately ???? Zero QList & lt; T & gt; :: append (const T & amp;) with [T = myType * const] ../qtsdlthread/mytypemanager.cpp:20:26: Instituted here from /usr/include/qt4/QtCore/qlist.h359:58 Gone: Error: invalid conversion from command zero * ? To zero, /usr/include/qt4/QtCore/qlist.h: In the member function, the zero QList & lt; T & gt; :: node_copy (QList & lt; T & gt; :: node *, QList & lt; T & gt; :: node *, QList & lt; T & gt; :: node *) [T = Metip * Const.] Together: /usr/include/qt4/QtCore/qlist.h:666:9: From immediate quotes & lt; T & gt; : Node * QList & lt; T & gt; :: detach_helper_grow (int, int) [t = mitap * cons] with /usr/include/qt4/QtCore/qlist.h:497:48: '' zero zero immediately from QList; & Gt; :: append (const T & amp;; [T = with MyType * const]) ../qtsdlthread/mytypemanager.cpp:20:26: from here /usr/include/qt4/QtCore/qlist.h386:17 Immediately translated: Error: invalid conversion by zero zero conversion ??? ? To zero, 20:26 in mytypemanager it-> The above post is the affiliate line.
Comments
Post a Comment