CopperSpice Overview
|
QtCreator is an integrated development environment which can be used to develop, compile, link, deploy, and run a C++ application using CopperSpice. The UI Designer is part of the IDE, allowing the developer to drag and drop widgets or controls on a window to create the graphical user interface for an application.
In order to compile and link an application, a kit must first be created and then configured. The kit contains information about the toolchain and where the compiler, linker, and debugger programs are located. These steps pertain to building with the CMake build system.
Open Qt Creator and then select Tools, Options. From the Kits tab click the Add button. We suggest you call your kit CopperSpice and set this as the default. This kit will be used for every project that is built with the CopperSpice libraries. The following is a list of the typical parameters.
Key | Value |
---|---|
Name | CopperSpice |
Device Type | Desktop |
Device | Local PC |
Compiler C | MinGW |
Compiler C++ | MinGW |
Debugger | None |
Qt version | None |
C:\CopperSpice\cmake\copperspice
Set up a new location for the project files.
Use the following steps to create and configure a new project in Qt Creator.
After the project has been created a very basic CMakeLists.txt will automatically be generated. This file should be replaced by a proper build file which uses at least CMake 3.18 and links with the CopperSpice libraries.
Refer to the following link for information on how to configure the CMake build files: CMake Project Files (CopperSpice)
From here you add your source files then build and run your application/
If your application is designed to run in a terminal window you will need to check the box for "Run in Terminal" in Qt Creator. Select Projects, Run, and the checkbox will be located under the Run section.
These are a few extra settings you may need to set up for installing and deployment.
C:\YourProject\deploy
Click the "Apply Configuration Changes"
Ensure Install is checked
Use the following steps to create a UI file where widgets and controls can be added to develop a GUI.