Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Qt 4 vs Qt 5 to develop application for Windows and OS X? [closed]

I am considering using Qt to port a standalone Windows application to OS X and possibly Linux. I have never used Qt before. I do not know if I should work with Qt 4 or Qt 5.

I would be interested to get the feedback of developers of fairly large applications using Qt 4 and 5. What are the pros/cons for each version?

More info about the project:

The application is a high end tool for digital photography: real time HDR, Tone Mapping, etc, of large photos at 96-bits per pixel.

The application is currently using the following technologies:

  • UI code : C#, C++/CLI, .NET 2.0 WinForm
  • Core algorithms: C++, OpenMP, SSE

I plan to use the Qt framework to redevelop the UI code. I have the following constraints:

  • Supported OS: Windows XP, Vista, 7 and 8; OS X; (Linux)
  • Two builds: 32 and 64-bit
  • Application must be able to run on VMs (with little or no OpenGL support)
  • Execution speed / real time aspects are essential
  • Main development environment: Visual Studio on Windows 7 64-bit

Thanks!

like image 922
AntoineC Avatar asked Apr 29 '13 10:04

AntoineC


People also ask

How to deploy Qt library in Windows?

Qt for Windows - Deployment 1 The Windows Deployment Tool. The Windows deployment tool windeployqt is designed to automate the process of creating a deployable folder containing the Qt -related dependencies (libraries, QML imports, plugins, and ... 2 Static Linking. ... 3 Shared Libraries. ... 4 Application Dependencies. ...

How to build a Qt Project with Microsoft tools?

Using Microsoft Tools. To build the Qt project as a standalone executable file run qmake and nmake. After that you should execute mt.exe to embed a manifest inside the application to avoid error such as missing MSVCP90.dll when the application is started on other computers. Please note that the names of the manifest and ...

What is a standalone executable file of a Qt application?

The goal of this article is to show how to build a standalone executable file of a Qt application for Microsoft Windows. This is an executable file that has no dependencies (aka does not require any dynamic linking to libraries).

What is Qt vs tools?

The Qt VS Tools allows programmers to create, build, debug and run Qt applications from within non-Express versions of Microsoft Visual Studio 2013 and later.


2 Answers

Based just on your platform constraints you probably want to use Qt 5. Windows 7 64-bit is a tier 1 platform in Qt 5. Windows 8 isn't even a tier 2 platform in Qt 4. Qt 5 has better support for High DPI displays (important to Mac users with Retina displays).

  • Qt 4 Supported Platforms
  • Qt 5 Supported Platforms
like image 176
Linville Avatar answered Oct 17 '22 13:10

Linville


If you're trying to avoid OpenGL then Qt 5 isn't going to be a good fit as they moved towards using it as a dependency for QML widgets and the scene graph. That's not to say you can't use it at all, but it's certainly something to consider if you've got an aversion to OpenGL.

Qt 4.8 is perfectly mature, the code base is pretty well covered at this stage, so might be a better fit as the drawing libraries aren't coupled onto OpenGL.

like image 1
Nicholas Smith Avatar answered Oct 17 '22 11:10

Nicholas Smith