Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt with HTML5 or without HTML5

Tags:

html

jquery

css

qt

I've been programming with Qt libraries for 3 years. All programs have been designed by traditional widgets so far. But now I noticed that you can design your user interface with HTML5+CSS+jQuery. Now these are my Questions:

  1. When should we design our interface with HTML5 and the core with Qt libraries?
  2. What will be the advantages if we use HTML5 in designing user interface instead of traditional widgets?
  3. Would it be reasonable if we design even our ordinary desktop applications user interface with HTML5?

Thanks!

like image 556
s4eed Avatar asked Jun 15 '12 07:06

s4eed


People also ask

Is QML like HTML?

HTML describes how to structure text documents and links on the web. Overtime it was extended with JS and CSS to let you do much more but at it's core it is a text document rendering technology. QML was designed to describe how 2D and 3D spacial elements relate and interact with each other.

Is Qt QML free?

Software engineers can use the basic version available under a free license. To access more features they have to buy the more advanced versions under the commercial license from Qt Company.


1 Answers

  1. There are no rules about "when we should". However there are some caseses when "we would" use it. For example we would use it if we want to make C++ developers focus on core functionality not gui. We could use some webdesigners then to create interface
  2. Main advantage is that C++ developers don't have to focus on UI at all (well, some slight "integration" between HTML ui and C++ core would be required)
  3. Everything depends on experience you want to give to user. If you want to give "native look'n'feel" Qt does most of the work for you with widgets. If you want to give "fancy look'n'feel" then you could use HTML. I don't see anything "unreasonable" in both ways of delivering user interfaces.
like image 53
Kamil Klimek Avatar answered Oct 17 '22 10:10

Kamil Klimek