How can I pass the argument from the bash script in Qt? For example with the script
echo "Enter keywords: "
read test1
result1=$(find . -name "*$test1*" -print0)
echo $result1
I want to let the user type keyword to lineEdit in Qt and when they press button the result of find . -name "*$test1*" -print0 will be shown
QProcessfor executing and reading back the results of the find command. Better would be to just search withinQDirand omit the bash totally if you want to use Qt.