Qt Bridge — C
Pre-requisites
- Microsoft Visual Studio 2022
- Qt 6.10 built from source
- See instructions in: Build Qt 6 (subset) from source
Visual Studio IDE
Tools and installation package
- Open
qtdotnet.slnsolution in Visual Studio - Build tools and installation package
- Select menu option: Build > Build Solution
- Or press
Ctrl+Shift+B
Auto-tests
- View available tests
- Select menu option: View > Test Explorer
- Or press:
Ctrl+E,T
- Run tests
- Select menu option: Test > Run All Tests
- Or press:
Ctrl+R,A
Examples
- Open
examples.slnsolution in Visual Studio - Build example projects
- Select menu option: Build > Build Solution
- Or press
Ctrl+Shift+B
Run example app
- In the Solution Explorer, right-click an example project
- Select context menu option: Debug > Start New Instance
Command Prompt
Tools and installation package
- Open a Command Prompt
- Windows Start menu > Command Prompt
- Or press
⊞ Win+R, then typecmdand pressEnter
cdto solution dir- Build tools and installation package
> dotnet build
Auto-tests
- Stay in the solution dir
- Run tests
> dotnet test
Examples
cdto the examples sub-dir> cd examples
- Build example projects
> dotnet build
Run example app
cdto example project sub-dir- E.g.:
> cd Primes
- E.g.:
- Run example app
> dotnet run
