Yes, runtime error.
But, I think i get the problem. I have a function for check a binary exist on my system or not.
bool Olongia
::cekB(const QString &name
) {
bool Olongia::cekB(const QString &name)
{
QStringList env=QProcess::systemEnvironment().filter(QRegExp("^[Pp][Aa][Tt][Hh]="));
To copy to clipboard, switch view to plain text mode
Olongia is base class. Not inherited QObject. Because that i can't get QProcess::systemEnvironment() ?
Then, i move my function to Dialog class. And everything is fine...
bool Dialog
::cekB(const QString &name
) {
bool Dialog::cekB(const QString &name)
{
QStringList env=QProcess::systemEnvironment().filter(QRegExp("^[Pp][Aa][Tt][Hh]="));
To copy to clipboard, switch view to plain text mode
Bookmarks