Results 1 to 10 of 10

Thread: Programming in Windows

  1. #1
    Join Date
    Jan 2006
    Posts
    75
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Programming in Windows

    If I want to use a class that is a part of System.IO (specifically FileSystemWatcher), how do I compile such a program in QT?

    I'm not experienced at all in compiling C++ programs under windows other than to use QT so I apologize for my ignorance.

  2. #2
    Join Date
    Jan 2006
    Posts
    75
    Thanks
    3
    Thanked 5 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Programming in Windows

    If you decide to use VC++.NET, why bother using Qt?

    Qt already has everything you need to build world class application, please switch your work from VC++.NET to Qt, thanks.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Programming in Windows

    Naaaa... it's not like that. You can use one product together with the other if you need it. Qt certainly doesn't have everything. AFAIK Qt works well with .NET although the class mentioned is probably available as a WinAPI call too. I don't see any sense in having dependencies to .NET if you only want to use a single call out of it. I suggest you try to do it with plain WinAPI.

  4. The following user says thank you to wysota for this useful post:

    kroenecker (21st June 2006)

  5. #4
    Join Date
    Jan 2006
    Posts
    75
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming in Windows

    If it is a winApi call, do you think you could point me towards a tutorial that will show me how to compile in that functionality? Or could you give me a brief example?

  6. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Programming in Windows

    I can only point you to msdn.windows.com. IMHO WinAPI is the worst designed API ever, so I don't waste my time learning it and I don't know any tutorials on the problem. I suggest you search msdn for queries like "watching files", "file monitoring" or simmilar.

  7. #6
    Join Date
    Jan 2006
    Location
    South Carolina, USA
    Posts
    34
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming in Windows

    If I understand what you are looking for this should point you in the right direction. I don't think Qt has a class specifically to notify you upon a change in a file or directory. None that I could find anyway. This link is for WinAPI which would at least prevent you from having to use .NET for one call.

    http://msdn.microsoft.com/library/de...ifications.asp

  8. The following user says thank you to michael for this useful post:

    kroenecker (29th June 2006)

  9. #7
    Join Date
    Jan 2006
    Location
    South Carolina, USA
    Posts
    34
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming in Windows

    Well on a bright note Qt will include this functionality in Qt 4.2 when it is finished...

    http://doc.trolltech.com/4.2/qfilesystemwatcher.html

  10. #8
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Programming in Windows

    Quote Originally Posted by ball
    Qt already has everything you need to build world class application, please switch your work from VC++.NET to Qt, thanks.
    Sometimes you don't have a choice. Sometimes management makes you use .NET; sometimes you have a "legacy" .NET app that needs a GUI front end; sometimes you need a portable GUI (and .NET ain't it despite Bill's claims to the contrary); and sometimes you just want to be productive and use .NET instead of MFC or Win32 for system level code, while being productive with Qt elsewhere.

  11. #9
    Join Date
    Jan 2006
    Posts
    75
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming in Windows

    Thanks for the commentary all I'm thrilled (being the geek that I am) to see that this functionality will be available with the next release!

  12. #10
    Join Date
    Jan 2006
    Posts
    75
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Programming in Windows

    Regarding use of windows at work. I do work in a company that heavily uses .NET. Actually it's all that they use so I'm a bit of a lone ranger when it comes to using QT at my workplace. They let me develop internal apps with it, however, so I'm quite happy. And I'm not opposed to using visual studio. I do, however, firmly believe that only using VS and other microsoft tools results in poor programming practices since you are never given the opportunity to exercise, well, any thought whatsoever.

Similar Threads

  1. Draging a non-existing file to the Windows Desktop
    By klaus1111 in forum Qt Programming
    Replies: 13
    Last Post: 20th September 2007, 11:47
  2. MDI windows without QWorkspace
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 16th June 2006, 17:15
  3. Thread problem with windows
    By vratojr in forum Qt Programming
    Replies: 17
    Last Post: 16th June 2006, 08:34
  4. Application plugin on windows
    By Eyee in forum Qt Programming
    Replies: 2
    Last Post: 22nd March 2006, 17:36
  5. Installing Qt 4.1 (open source) on Windows XP
    By katrina in forum Installation and Deployment
    Replies: 8
    Last Post: 19th February 2006, 12:26

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.