Hi,
I am relatively new to Qt and have encountered a problem with my last project.
My work computer is running Windows 10 and I'm using Qt 6.6.0 and MinGW.
I have already written a few programs, which fully serve their purpose. In my latest project, I wanted to be able to call another program that I had previously written. I have previously deployed this using the MinGW console and the command "windeployqt .", so that I have all the dependencies and can also open the program from other (Windows) computers.
In my new project, I can open other programs using QProcess::startDetached() (tested on 9 different ones), but only my self-written and deployed ones cannot be opened.
Since I am new to Qt, it is possible that I have overlooked something, does anyone have any advice for me?

Here is the minimal example of my latest project:

mainwindow.h
Qt Code:
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include <QMainWindow>
  5. #include <QPushButton>
  6. #include <QGridLayout>
  7. #include <QProcess>
  8.  
  9. QT_BEGIN_NAMESPACE
  10. namespace Ui { class MainWindow; }
  11. QT_END_NAMESPACE
  12.  
  13. class MainWindow : public QMainWindow
  14. {
  15. Q_OBJECT
  16.  
  17. public:
  18. MainWindow(QWidget *parent = nullptr);
  19. ~MainWindow();
  20.  
  21. private:
  22. Ui::MainWindow *ui;
  23.  
  24. private slots:
  25. void open_program();
  26. };
  27. #endif // MAINWINDOW_H
To copy to clipboard, switch view to plain text mode 

main.cpp
Qt Code:
  1. #include "mainwindow.h"
  2.  
  3. #include <QApplication>
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QApplication a(argc, argv);
  8. MainWindow w;
  9. w.show();
  10. return a.exec();
  11. }
To copy to clipboard, switch view to plain text mode 

mainwindow.cpp
Qt Code:
  1. #include "mainwindow.h"
  2. #include "ui_mainwindow.h"
  3.  
  4. MainWindow::MainWindow(QWidget *parent)
  5. : QMainWindow(parent)
  6. , ui(new Ui::MainWindow)
  7. {
  8. ui->setupUi(this);
  9. QPushButton* but_open = new QPushButton("Open");
  10. QGridLayout *layout = new QGridLayout();
  11. layout -> addWidget(but_open, 0, 0);
  12. ui->centralwidget->setLayout(layout);
  13.  
  14. connect(but_open, SIGNAL(clicked()), this, SLOT(open_program()));
  15.  
  16. }
  17.  
  18. MainWindow::~MainWindow()
  19. {
  20. delete ui;
  21. }
  22.  
  23. void MainWindow::open_program() {
  24. QProcess process;
  25. QString pfad = "I:\\FabTech\\Anlagen-Dokumentation\\85 TEOS 200 mm\\Teos-Trapping\\TEOS-Überwachung\\TEOS-Abscheidungs-Programm\\TEOS_Abscheidung.exe";
  26. process.startDetached(pfad);
  27. }
To copy to clipboard, switch view to plain text mode 

I can also start any number of instances of the program to be called from Windows while the program is running, but not from the new program. When the button is pressed, a window opens for a barely recognizable period of time and then closes again immediately.

Thanks in advance,
Qt_Bob