Choosing between WPF/C# and Qt/C++ -


me , team developing application, involves back-end written in c++ , involves use of libraries such opencv, mil, etc.

now, need develop gui interface program, such gui displays images, , user can interact images , annotate / mark images, , run image processing algorithms written in c++ display results.

for gui, stuck choosing between wpf , qt find wpf easier, , more powerful qt understand wpf not portable linux, not worried much... also, wpf uses directx technology, may have use generate 3-d visualization @ later stage.

please me these points :

  1. can interface wpf directly c++ (and not visual c# ??)
  2. if (point 1) not possible, consider : code in c++ going big, , involving libraries too, can use c# call c++ functions time invested in learning qt lesser making unmanaged non-oo c++ code work wpf ?

(i have sinking feeling i'd have write code interfacing c++ wpf, may equal rewriting half of actual program itself... :-( )

i've used both qt c++ , wpf. prefer wpf user interface framework. qt isn't bad, post 4.0. wouldn't touch earlier versions of qt.

as others have said in comments, wpf better documented, , online community larger. if looking @ styled applications wpf way go. qt's declarative language new step along road, because it's new tends bit buggy. wpf has been around longer, , more mature , richer in features.

however, think real issue in case c++ code base have.

wpf require c++/cli layer (managed c++) in order interface c++ code base. sounds complicated, , require little bit of work, not crazy might sound. , there tons of documentation well. stay away pinvoke.

qt little easier because c++ based, have translation between c++ native types, , qt types (like qstring, qlist etc...) used internally.

another thing consider look-and feel ui. example if thinking nice ribbon (office 2008, 2010) look, not qt. also, there ton of third-party wpf controls, haven't found many qt. in cases handy buy nice set of controls supplement ones microsoft gives default.

over past couple of years don't have requirement have linux ui have been using wpf, regardless of code base. haven't regretted yet.

however, suggest third option. code-jock ui framework based on mfc believe. c++ , activex based. has become quite sophisticated. check out here.

edit: qml has come long way since first looked @ it. haven't had time @ in depth, hear offers interesting features. worth look.

also, few comments have indicated, there more office-like controls such ribbon, , diagram , graphing controls have added qt toolset. these make qt interesting prospect.

i stand said earlier though, programmer find making uis wpf whole lot easier, , more pleased results have ever coded qt.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -