:-1: error: You need to set an executable in the custom run configuration.
-
wrote on 11 Oct 2022, 16:08 last edited by
Qt Creator 8.0.1
Qt 6.3.1 (MSVC 2019, x86_64)
revision 9c963ce8ae
Built on Aug 11 2022 01:13:43
Windows 11
C++
Desktop application
Small Business LicenseIn Qt Creator:
Create Project -> Other Project -> Qt Custom Designer WidgetI'm following a video step by step, and when running I'm getting the following error:
:-1: error: You need to set an executable in the custom run configuration.
An internet search hasn't really turned up an answer.
-
wrote on 11 Oct 2022, 16:19 last edited by cristian-adam 10 Nov 2022, 16:20
The end result of such a Qt Custom Designer Widget is a library / plugin that would need an executable to load it.
The documentation would be here https://doc.qt.io/qt-6/designer-using-custom-widgets.html
I assume you'll have to start
designer.exe
with your plugin copied in the right place.For example:
c:\Qt\6.3.1\msvc2019_64\bin\designer.exe
loads plugins fromc:\Qt\6.3.1\msvc2019_64\plugins\designer
.Ideally you would use a link for this, but on Windows things are not as simple 😀
-
wrote on 11 Oct 2022, 16:46 last edited by
The dll is located in: C:\Qt\6.3.2\mingw_64\plugins\designer
I assume that's the correct location. Is there a way I can check?
-
wrote on 11 Oct 2022, 16:51 last edited by
You can start
c:\Qt\6.3.2\mingw_64\bin\designer.exe
and then go to Help -> About Plugins in the application menu.You can then copy the dll your project created there and try again and see if the plugin shows up in the dialog.
-
wrote on 11 Oct 2022, 17:25 last edited by
c:\Qt\6.3.2\mingw_64\bin\designer.exe Help->About Plugins shows the dll, and it's listed in the Widgets Box. But in Qt Creator it's not listed.
-
c:\Qt\6.3.2\mingw_64\bin\designer.exe Help->About Plugins shows the dll, and it's listed in the Widgets Box. But in Qt Creator it's not listed.
wrote on 11 Oct 2022, 22:12 last edited by@Bob-K said in :-1: error: You need to set an executable in the custom run configuration.:
c:\Qt\6.3.2\mingw_64\bin\designer.exe Help->About Plugins shows the dll, and it's listed in the Widgets Box. But in Qt Creator it's not listed.
Qt Creator has it's own designer plugins directory. I have it under
c:\Qt\QtCreator-8.0.1\bin\plugins\designer
. -
wrote on 12 Oct 2022, 08:12 last edited by
By the way, your Qt and designer were built with MinGW, while Qt Creator with MSVC.
If you want to have the plugin running in Qt Creator, you will have to build it with MSVC.For being able to build and debug open-source projects with MSVC it's enough to install the "Build Tools" package, like:
$ choco install visualstudio2019buildtools $ choco install windows-sdk-11-version-21H2-all
See Updates to Visual Studio Build Tools license for C and C++ Open-Source projects.
But, if you cannot use MSVC at all, you can get a MinGW Qt Creator build from GitHub Releases, where we use GitHub Actions to build Qt Creator, and there we have a MinGW job.
-
wrote on 12 Oct 2022, 15:26 last edited by
Do I need to remove Qt Creator before installing the MinGW Qt Creator?
1/8