How do i use Qt in my Visual Studio 2015 projects?

前端 未结 4 1053
我寻月下人不归
我寻月下人不归 2020-11-29 03:12

We have large project that used .NET Framework for showing forms/windows. Recently i decided to deprecate CLR dependency and move to Qt.

While learning Qt, we\'ve m

4条回答
  •  抹茶落季
    2020-11-29 03:57

    The Qt Windows could be added to the current project by copying all relating necessary files from the Qt stand-alone project to the current project. Specifically, the following steps must be conducted carefully.

    1. Create an example project of Qt inside a Visual C++ project by using a Qt Plugin Program. The windows must be designed inside this project carefully before adding to the existing project.
    2. Inside the existing project, add carefully the file heloqt.cpp, helloqt.h, ui_helloqt.h, qrc_helloqt.cpp, moc_helloqt.cpp in case of the Qt Project having the name of helloqt.
    3. Add some configurations of Additional include directories and Additional library directories and Additional Dependencies into the existing project.
    4. Compile and add some required *.dll files for running the program.

    I have to do that because I want to use a graphic user interface in my big project, and this project is too big to be added into the Qt project inside the Visual C++ Studio.

提交回复
热议问题