Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
argc change value when calling Qcoreapplication::arguments()
tmas last edited by
I have a class App deriving from QApplication and
with contructor App::App( int& argc, char *argv )
In one of the member of the class App, I am doing
QStringList Args = QCoreApplication::arguments();
When I run my application I know that app is created with
argc at 0 anf argv at "" .
I have a crash when I call QCoreApplication::arguments().
I traced the problem until const int ac = self->d_func()->argc;
where ac will contain a value greater than 0 ( never the same).
I don't change argc at the application level
I see that argc and self->d_func()->argc have the same adress but I cannot see where argc value changed.
Flotisable last edited by
do you set
I remember that
argcis at least 1.
VRonin last edited by
Warning: [...] argc must be greater than zero and argv must contain at least one valid character string.
m.sue last edited by m.sue
This post is deleted!