Skip to content

WindowsSetup

Dražen Šoronda edited this page Jun 8, 2018 · 1 revision

Windows Setup instructions

  • Download Qt Windows Ming 32bit version.

  • Install Qt (ie c:\Qt or D:\Qt)

  • Add Qt installation path to User Environment PATH : ie. d:\Qt\Qt5.7.0\5.7\mingw53_32\bin This is required so that Visual studio can see Qt libraries on project run. Important, if you get error : 'Cant find Qt5Widget.dll ...' then you have too many items in PATH and .NET application is having problems finding Qt native dlls. Put Qt path in front of others in System Environment variables PATH. It should look like : d:\Qt\Qt5.7.0\5.7\mingw53_32\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;......
    NOTE: This still doesn't fix 'Cant find Qt5Widget.dll ...' when using XamarinStudio/MonoDevelop. :(

  • Download QtSharp binary build (do not use Nuget package, it's pretty outdated) and unzip it in some folder ( I used 'd:\work\qtsharp' and project is referencing assemblies from there).

  • Clone or download QtSharpDemos and update QtSharp assembly references ( 'd:\work\qtsharp' in my case)

  • Copy missing DLLs from QtShap build (ie. for 'QtCore.Sharp.dll' also copy 'QtCore-inlines.dll' from 'd:\work\qtsharp' into build directory (ie 'bin\Debug' or \bin\Release') for every referenced QtSharp file.

  • Build and have fun

Note : Currently all demo examples are in folder GuiExample and referenced in Program.Main. This may change as project evolves.

Most examples are based on great Zetcode Qyoto example.

Clone this wiki locally