Qt5 is released.

Other talk that doesn't fit elsewhere.
This is for General Discussion, not General chat.
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Qt5 is released.

Post by NoQ »

User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

Re: Qt5 is released.

Post by Goth Zagog-Thou »

This will make Emdek happy. :)

Me too, actually, I've been waiting for this. Now I can sink my teeth into QT and learn how to make it go.
User avatar
Rman Virgil
Professional
Professional
Posts: 3812
Joined: 25 Sep 2006, 01:06
Location: USA

Re: Qt5 is released.

Post by Rman Virgil »

.

If it's used to replace the old UI widget scheme...

.
.

Impact = C x (R + E + A + T + E)

Contrast
Reach
Exposure
Articulation
Trust
Echo
.
User avatar
bendib
Regular
Regular
Posts: 1016
Joined: 29 Aug 2010, 05:22
Location: Imeuta

Re: Qt5 is released.

Post by bendib »

I am very happy. Very happy.
Also known as Subsentient.
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: Qt5 is released.

Post by aubergine »

So, who's gonna replace the WZ menu system with a webkit browser?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland

Re: Qt5 is released.

Post by Emdek »

Goth Zagog-Thou, I will wait for 5.1 or 5.2. ;-)
aubergine, that is overshoot, if it should be done with Qt at all (so require at least OpenGL 2.0 for 5.x) then it should be done in QML and only use embedded WebKit element when needed. This is more efficient way. ;-)
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: Qt5 is released.

Post by aubergine »

The front-end menus (like "main menu", "options menu", "game setup", etc) don't need to be efficient. In fact, the current GUI system used for the menus is massively inefficient, driving my CPU temp to 88º C (from usual 77º C when, for example, watching videos on youtube) just by having Warzone open at the main menu. My CPU temp drops to 87º C when I start a game in the 3D environment.

Regardless, the desire to have WebKit for the front-end menu UI (not the in-game UI) is not driven by efficiency requirements, it's driven by the desire to make the menus highly moddable using HTML/JS/CSS. A few JS API functions would need exposing to the browser environment (see here) and then modders could set to work overhauling the menu systems.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Rman Virgil
Professional
Professional
Posts: 3812
Joined: 25 Sep 2006, 01:06
Location: USA

Re: Qt5 is released.

Post by Rman Virgil »

aubergine wrote:.......and then modders could set to work overhauling the menu systems.
Part of my last WZ dream is to be able to do this with the unit command UI.... especially with the Commander UI.... but thats a bit deeper than the front end and, alas, a ways down the road....

.
.

Impact = C x (R + E + A + T + E)

Contrast
Reach
Exposure
Articulation
Trust
Echo
.
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland

Re: Qt5 is released.

Post by Emdek »

aubergine, I believe that the same result can be achieved using QML, which uses JavaScript anyway.
It would be better to have an API to manipulate existing items and add new (in all cases, no matter which technology would be used) or in case of QML also allow to completely replace each page by custom definitions (which could include WebView so it could load HTML if it would be really needed ;-)).
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: Qt5 is released.

Post by aubergine »

How do you apply CSS to QML? And what benefit does QML give over HTML/CSS/JS? (for the front-end menus, like main menu, options menu, single player menu, etc)?

I can see QML being perfect for in-game UI, but for the front end menus (not in-game menus) it seems like making life difficult just for the sake of making life difficult?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Qt5 is released.

Post by Per »

QML is CSS/JS.
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland

Re: Qt5 is released.

Post by Emdek »

aubergine, let mu put that in another way, how many non standard items we need to add there in typical mod?
I guess that in most cases none.
And if someone needs a lot of non standard items then there is option to simply replace whole scene by single WebView and do everything in HTML by loading custom QML file.
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: Qt5 is released.

Post by aubergine »

Ok, that makes sense. I'll need to learn more about QML - any good beginners guides out there?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland

Re: Qt5 is released.

Post by Emdek »

aubergine, official documentation is usually best choice to start. ;-)
For example:
http://qt-project.org/doc/qt-5.0/qtquic ... index.html
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.