Important: Please read the Qt Code of Conduct -

[Tutorial] How to Set Up Panda3D in Qt Creator IDE on Windows 10

  • Install:

    1. Panda3D-SDK-1.10.7 x86:

    2. Qt 5.15.1 for MSVC 2019 32-bit:

    alt text

    1. MSVC v142 - VS 2019 C++ x64/x86 build tools. Use Visual Studio Installer:

    alt text

    1. Windows Software Development Kit - Windows 10.0.19041.1 from here:

    alt text

    Add the "C:\Panda3D-1.10.7\bin" path to the Path variable. Create an empty project in Qt Creator IDE:

    alt text

    Select "Desktop Qt 5.15.1 MSVC2019 32 bit":

    alt text

    Add these settings to the ".pro" file:

    INCLUDEPATH += "C:\Panda3D-1.10.7\include"
    LIBS += -L"C:\Panda3D-1.10.7\lib"
    LIBS += -llibp3framework -llibpanda -llibpandaexpress -llibp3dtool -llibp3dtoolconfig -llibp3direct

    Create the "main.cpp" file. Copy the first example from the manual: Creating a New Panda3D Application


    #include "pandaFramework.h"
    #include "pandaSystem.h"
    int main(int argc, char *argv[]) {
      // Open a new window framework
      PandaFramework framework;
      framework.open_framework(argc, argv);
      // Set the window title and open the window
      framework.set_window_title("My Panda3D Window");
      WindowFramework *window = framework.open_window();
      // Here is room for your own code
      // Do the main loop, equal to run() in python
      return (0);

    Switch Qt Creator to “Release”:

    alt text

    Run the project.

Log in to reply