Seite 1 von 1

QTService in Visual Studio 2005 einbinden

Verfasst: 9. Mai 2006 09:55
von sanmil1982
Folgendes Problem.
Ich benutze Visual Studio 2005 und QT 4.1.2 und möchte nun gerne den QTService(2.1) benutzen. Doch leider funktioniert das nicht so richtig. Die Installation Anleitung des Packages verklickert mir irgendwas von .pro file.
Aber wenn ich mich nicht irre benutzt doch Visual Studio keine .pro files.
wäre nett wenn mir einer Helfen könnte
  • Using a component in your project
    ---------------------------------

    The directory your-install-dir/src includes all the source code for the
    component. To use this component in your project:

    1. Add the following line

    include(your-install-dir/src/some-package.pri)

    to the project's .pro file.

    2. Run qmake on the project's .pro file.

    This adds the package's sources and headers to the SOURCES and HEADERS
    qmake variables respectively, and update INCLUDEPATH to contain the
    package's src directory. Additionally, the .pri file may include some
    dependencies needed by the package.

    To include a header file from the package in your sources, you can now
    simply use:

    #include <some-package.h>

Verfasst: 9. Mai 2006 14:53
von Christian81
Man muss das vcproj mit qmake erstellen...

http://doc.trolltech.com/4.1/qmake-manual.html

Verfasst: 9. Mai 2006 15:48
von sanmil1982
Musste erst mit qmake ein .pro file erstellen und in der profile die unix header und cpp's entfernen. Dann mit "qmake -tp vc" das Visual Studio project generieren.

danke für die Hilfe
:D