Results 1 to 12 of 12

Thread: Qt4 integration with VS2008 Express how-to interest?

  1. #1
    Join Date
    Nov 2006
    Posts
    86
    Thanks
    6
    Thanked 14 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Qt4 integration with VS2008 Express how-to interest?

    Hello all,

    I've been developing an application with Qt4 open-source edition and Visual Studio 2005/2008 Express editions. I'm an open-source developer and I've found that there really isn't a whole lot that we freebee users can use for easy Qt integration with Visual Studio when it comes to the build process. Seems like the choices are:

    1) Re-run Qmake to re-create a .pro file each and every time a new file is added (qmake managed)
    2) Create your own custom build steps to handle running Uic and Moc
    3) Grab a bootlegged copy of Qt Integration

    Here's my question to the Qt-Windows-VS users in the form:

    Would any of you find it useful if I wrote a how-to guide and included the custom build steps and such that I used to create my own free Visual Studio integration?

    I'd also post my build steps and build scripts for ease of helping first time users get up and running with freely available dev tools. With what I have now, Ui files are automatically handled. Moc files are automatically handled also based upon if a header file needs it or not.

    I'd be interested in your opinions. Am I off my rocker here? Wasting my time? Do you know of a better way? Do you think its a good idea?

    Let me know. Post!
    Paul

  2. #2
    Join Date
    Jan 2006
    Posts
    369
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 integration with VS2008 Express how-to interest?

    ... you forgot the part about eating dead kittens ...

    Don't you think that what you are describing is ... wrong?

  3. #3
    Join Date
    Nov 2006
    Posts
    86
    Thanks
    6
    Thanked 14 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt4 integration with VS2008 Express how-to interest?

    Wrong how?

  4. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 integration with VS2008 Express how-to interest?

    3) Grab a bootlegged copy of Qt Integration
    I don't know about VS 2008 but all previous VS Express editions do not support extensions(plugins), so it won't do any good even if you get your hands on a cracked integration version.

    ... you forgot the part about eating dead kittens ...
    Now that's just sick... Since it is Christmas, we will eat dead pigs.

    2) Create your own custom build steps to handle running Uic and Moc
    Don't you have to do that for every ui file and for every header that needs to be moc'ed?

  5. #5
    Join Date
    Nov 2006
    Posts
    86
    Thanks
    6
    Thanked 14 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt4 integration with VS2008 Express how-to interest?

    Quote Originally Posted by marcel View Post
    I don't know about VS 2008 but all previous VS Express editions do not support extensions(plugins), so it won't do any good even if you get your hands on a cracked integration version.

    Now that's just sick... Since it is Christmas, we will eat dead pigs.

    Don't you have to do that for every ui file and for every header that needs to be moc'ed?
    Mmm! Can't wait to chow down on some good honey baked ham! The neat thing is that the way I am currently doing it is through a VS Build Rule File. Inside it you can specify what to run for different file types. So once that is setup, you tell your project to use that rule file and when it encounters either a .ui file or a .h file, it follows the appropriate rule in the rule file. So you don't need to type in a custom build rule for each and every .ui or .h file.

    I have that up and running quite nicely ;p It's really slick, you just add Ui files and such as you normally do to the VS project and build. The only manual step needed is including the generated files in the project.

    Paul

  6. #6
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 integration with VS2008 Express how-to interest?

    The neat thing is that the way I am currently doing it is through a VS Build Rule File. Inside it you can specify what to run for different file types. So once that is setup, you tell your project to use that rule file and when it encounters either a .ui file or a .h file, it follows the appropriate rule in the rule file. So you don't need to type in a custom build rule for each and every .ui or .h file.
    In this case it would really be nice to have something like that. Although I use Eclipse for most of my programming, it is really nice to know that I can use VS with Qt Open Source without too much overhead.

  7. #7
    Join Date
    Nov 2007
    Posts
    89
    Thanked 21 Times in 18 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt4 integration with VS2008 Express how-to interest?

    I use qt4 with msvc2005/8 express this way:
    http://qtnode.net/wiki?title=Qt4_wit...tudio_Projects

    It works well, if only I could understand how make a project template with nmake settings already setted up, it would be perfect.

  8. #8
    Join Date
    Jan 2006
    Posts
    369
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 integration with VS2008 Express how-to interest?

    Quote Originally Posted by marcel View Post
    Now that's just sick... Since it is Christmas, we will eat dead pigs.
    Some of are are jewish, so this Christmas stuff... like what are you talking about?
    Lets not get into pigs please

    Now, in this thread there is a link to a qtnode page which described how to use VisualStudio (Express) to compile Qt4 applications. Can any one comment on the speed of the compilation compared to mingw? executable size, speed?

    I know magland is using a pure command line to build his projects under windows (using qmake/nmake/cl). But can anyone comment on the technique described there (using a custom build). Can you debug? F4 jumps to errors/warnings?

  9. #9
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 integration with VS2008 Express how-to interest?

    Now, in this thread there is a link to a qtnode page which described how to use VisualStudio (Express) to compile Qt4 applications. Can any one comment on the speed of the compilation compared to mingw? executable size, speed?
    Well, Ms compilers are known to be faster than GNU compilers. That's a fact.
    I don't know about optimizations and sizes, never compared them.

    But can anyone comment on the technique described there (using a custom build). Can you debug? F4 jumps to errors/warnings?
    The build method has nothing to do with it. What you are asking about is IDE related stuff.
    As long as you successfully build your project inside the IDE you can also debug it and use all IDE features.

  10. #10
    Join Date
    Nov 2006
    Posts
    86
    Thanks
    6
    Thanked 14 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt4 integration with VS2008 Express how-to interest?

    Would any of you like to play "guinea pig" and test out a how-to based upon my build rule file? I think I'll try writing it up tonight or tomorrow. I'd like to make sure that stuff works ok on other systems besides mine, you know crazy quirks and such.

    Paul

  11. #11
    Join Date
    Nov 2006
    Posts
    86
    Thanks
    6
    Thanked 14 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt4 integration with VS2008 Express how-to interest?

    Well, I finished up my how-to and have my build setup ready for the masses. Just one question, where should I post this thing? Its about ~60KB zipped and includes the how-to, my autoMoc and autoUic programs, the VS .rules file and a 2008 project example. The how-to shows the user how to setup a project from start to finish.

    Paul

  12. The following user says thank you to thomaspu for this useful post:

    elcuco (26th December 2007)

  13. #12
    Join Date
    Mar 2007
    Posts
    9
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt4 integration with VS2008 Express how-to interest?

    Hi Thomaspu..
    Can you please post the project files which integrate qt with visual studio?... you can email the file over to me at

    su#$nil d$o%t nandihalli a#$t g#mai#l dot c#o#m

    Please ignore all the special characters when you reply...
    Thanks

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.