Does Qt need a modern C++ GUI API?
-
[quote author="Thomas Zander" date="1361353747"]3D sound? interesting, got a link?[/quote]
Use search... http://qt-project.org/doc/qt-5.0/qtmultimedia/audioengineoverview.html
Excellent features that I cannot integrate in my game app on C++ ... -
@hronom; you do realize you can combine QML and C++, right? Doing audio in QML while doing graphics and logic in C++ should be perfectly possible.
Saying you can't use it in your game is wrong, you can use it, the question is if you want to spent time learning QML ;) -
[quote author="Hronom" date="1361353124"]
Qt5 have new features like making 3D sound and this feature available only from QML. Can u show me please how use this feature from C++? I wanna use QtAudioEngine but I cant.
[/quote]:( :( :(
But there are still so a lot of much other things, which are not working in QML.
btw: Is that, what you are looking for: http://qt-project.org/wiki/QtAudio3D ?
-
In math you often have to change to a different domain to find a better solution.
For example to convert a waveform to a fourier domain in order to fetch the frequencies.QML is a better domain, as it were, for many tasks that are of a more declaritive nature. Of which audio-playback is an excellent example.
Its good to learn more languages, it gives you freedom to pick the right one for the job.
-
[quote author="Serenity" date="1361356800"]
:( :( :(But there are still so a lot of much other things, which are not working in QML.
btw: Is that, what you are looking for: http://qt-project.org/wiki/QtAudio3D ?[/quote]
Oh thanks, I'll try that. But its looks like spike, than I have already in Qt5 this features writed on C++.@Thomas Zander; Oh I understand you... I just wanna say one thing, why need divide Qt on two parts?
We have Qt C++ code part that available for C++ apps, and Qt C++ code part that available for QML.
This is normal situation?
Or maybe we can create framework that have Qt C++ part that available for C++ and QML apps. Looks like it be epic win, do you think so?Guys look here: I dont hate QML, I just say one simple thing, and i wanna that guys that creates this beautiful framework heared this thing.
I don't have big skill in C++, but, for the first view of sources of backend QML, i think: why this guys do this divide? Oh I understand may be something technically not compatible with C++ apps, but if not, why you do this?
-
Having Qt do QML as well as C++ are two domains, they have different strenghts and weaknesses. The main reason for QML is because it is really really good at some things. Things that C++ is not really useful for. You'd have to write many classes and many many lines of code to do stuff that in QML takes no time at all.
Stating you really want to write those hundreds of lines of C++ and you dislike you have to write QML instead, sounds a little like you are asking to use the hammer you know so well instead of learning a new tool that is much better suited to the task.
Damn right Qt is divided into those two domains, and its a great thing too since they are for different things and you likely will keep using both of them in apps.
So, in short, because its too painful to use C++ for some things, we invented QML to do it easier. Thats why we did this.
-
@Thomas Zander; So you offers me to that thing: from my code on C++ use QML to speak with C++ QML backend, right?
Next that you can say: "You write game app, right? So why you dont write this app on C++ use QML its easy..." So you already exposed obstacle Qt integration into an existing C++ project.
You say somthing like this "in C++ I wright many lines of code to do stuff that in QML takes no time at all". So you wanna say me go rewrite my game code on QML or shut up?
Next thing you can say “sorry Qt not for you, go choose another tool”? Uh guys and all this for bright future of QML?
Ok, you divide on two parts, but I'm say that you do double work to conatin two way of Qt, instead of conatin one way.
And ONE WAY its -> Qt C++ framework with feature like QML, where all features available on C++ and QML. User can decide what to use, an its be good freedom for users.
I repeat one thing: you ALREADY created new features on C++, so make them available from C++.
User must decide use C++ or QML. -
@
You say somthing like this “in C++ I wright many lines of code to do stuff that in QML takes no time at all”. So you wanna say me go rewrite my game code on QML or shut up?Next thing you can say “sorry Qt not for you, go choose another tool”? Uh guys and all this for bright future of QML?
@You are putting words I did not say in my mouth, please don't do that.
-
[quote author="Thomas Zander" date="1361355691"]@hronom; you do realize you can combine QML and C++, right? Doing audio in QML while doing graphics and logic in C++ should be perfectly possible.
Saying you can't use it in your game is wrong, you can use it, the question is if you want to spent time learning QML ;)[/quote]
From my game app on C++ I need to speak with QML part of my game, that QML part of my game speaks with C++ Qt backend, is this right? Or I'm now putting words in your mouth?One more repeat one thing: you ALREADY created new features on C++, so make them available from C++.
-
@Hronom: Did you try it with QtAudio3d? I don't want to use it, I am only interested, if it works
@Thomas Zander: QML doesn't have really much opertunities as in Qt4. And if it's not easy to do it in QML, it will never work in QML, which means, that QML is a language with limits, but you can implement very fast simple widgets. That's the reason, why I prefer C++. I will learn QML, when I got time for that, but now, I only developping complex desktop applications for Linux, Windows and Mac and need their styles.
-
This post is deleted!