Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. :-1: error: You need to set an executable in the custom run configuration.
Forum Updated to NodeBB v4.3 + New Features

:-1: error: You need to set an executable in the custom run configuration.

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 10.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bob K.
    wrote on last edited by
    #1

    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 License

    In Qt Creator:
    Create Project -> Other Project -> Qt Custom Designer Widget

    I'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.

    1 Reply Last reply
    1
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by cristian-adam
      #2

      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 from c:\Qt\6.3.1\msvc2019_64\plugins\designer.

      Ideally you would use a link for this, but on Windows things are not as simple 😀

      1 Reply Last reply
      1
      • B Offline
        B Offline
        Bob K.
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            Bob K.
            wrote on last edited by
            #5

            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.

            cristian-adamC 1 Reply Last reply
            0
            • B Bob K.

              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.

              cristian-adamC Offline
              cristian-adamC Offline
              cristian-adam
              wrote on last edited by
              #6

              @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.

              1 Reply Last reply
              1
              • cristian-adamC Offline
                cristian-adamC Offline
                cristian-adam
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  Bob K.
                  wrote on last edited by
                  #8

                  Do I need to remove Qt Creator before installing the MinGW Qt Creator?

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved