Results 1 to 7 of 7

Thread: Set up the Qt4.3.2 with Visual Studio 2005

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Set up the Qt4.3.2 with Visual Studio 2005

    Very good!
    It would be a good idea if you'd post it in the wiki.

  2. #2
    Join Date
    Nov 2006
    Location
    Shrewsbury, UK
    Posts
    97
    Thanks
    3
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Set up the Qt4.3.2 with Visual Studio 2005

    ..or just write the code (.cpp, .h, .ui) in a folder and run
    qmake -project
    qmake -tp vc

    and open the resulting .vcproj file with VS2005

    Pete

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Set up the Qt4.3.2 with Visual Studio 2005

    Well, I just installed MSVC 2005 express, and compiled Qt 4.3.2 OS, all went smoothly (followed advice on this forum, wiki).
    However, all though I manage to create a .vcproj project with:
    qmake -project
    qmake -tp vc
    it doesn't moc, it only compiles "normally".

    Am I right to assume that moc *should* be supported if all is correctly setup, or do open source users need to do this manually and add the mocs to the project?
    (not Qt options in "tools->options".)

    If this should be supported (I guess through the makefile), any idea what I might have been doing wrong?(points that I should check)
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Set up the Qt4.3.2 with Visual Studio 2005

    got it.
    I forgot to add Q_OBJECT in my test classes....
    So qmake didn't generate the moc rule.
    Being impatient is not good...
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  5. #5
    Join Date
    Oct 2007
    Posts
    27
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Set up the Qt4.3.2 with Visual Studio 2005

    Hello,

    I did all that stuff except moc, but I do this manually with qmake -project and qmake -tp vc. I have a linking problem. Linker could not find included libraries (qtmain.lib QtGui4.lib QtCore4.lib) because I don't have it in my qt\4.2.0\lib folder. I have *.a libraries. How can I make *.lib libraries for my Qt?

    Thanks

  6. #6
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Set up the Qt4.3.2 with Visual Studio 2005

    You have to compile Qt for msvc because there're no binary packages for msvc available. You downloaded the binary package for mingw.

    Search the forum archives - this was discussed very very often!

Similar Threads

  1. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  2. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  3. Qt-4.2.2 qmake won't compile under visual studio 2005 on vista
    By moowy in forum Installation and Deployment
    Replies: 7
    Last Post: 13th January 2007, 21:06
  4. Qt 4.1.0 on Visual Studio 2005
    By nErnie in forum Installation and Deployment
    Replies: 8
    Last Post: 6th July 2006, 00:56
  5. Qt Designer & Visual Studio 2005
    By pSiCho in forum Qt Tools
    Replies: 6
    Last Post: 9th February 2006, 13:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.