I saw that genshin impact (made with unity) has qt/qml folder so I suppose the whole game's UI is made with the QT core.
I tried to look up how to add qt to unity but I didn't find anything relevant (apart from the unity scene widget from the qt core but I don't think that's it).
So has anyone got an idea how they achieved it (if they actually did) ?
Thanks in advance.
As far as i'm aware, it's not possible to create UI using Qt core with Unity. So the qt/qml folder you saw was probably for something else and doesn't mean they used Qt.
Related
I am developing a new Qt application and I need to embed in it a third party ActiveX Control; I spent the last days learning about Qt Quick Controls 2.0, but I fear that ActiveX Controls can only be embedded in Qt Widgets applications. Is it right?
It will also be great if you can suggest any tutorial/example about my problem, since the official one seems a little bit too hard for a newbie like me.
Thank you very much!
Can we use Qt Quick (QML) altogether with ActiveX Qt embedded widget
in one app?
Short answer: yes.
Details: we need to embed both Qt Quick and ActiveX in their own widget containers.
Build a widget-based Windows Qt application from the start. Example.
Embed QML UI into widgets with QWidget::createWindowContainer() which is one of ways to do so.
Embed or create an independent QAxWidget to hold ActiveX control in it.
The best way to deal with third-party ActiveX is to import its type-library like Qutlook Example (ActiveQt).
P.S. QML is not preventing you from doing ActiveX in Qt but they are two separate type of UI and don't share same window. They can only be both embedded in other Qt widgets. I was developing such hybrid applications with Qt/QML/ActiveX and there is no complete guide to do so. Maybe a bit too many details plus you need to deal with specifics of ActiveX interfaces which is a separate topic.
Is there anyway that we an use visual studios source code into Qt source code? to develop a application on image processing.
i had a program on visual studio but i don't understand how to use that code in Qt 5.
can anyone please tell me how can we use it
Thank you in advance
actually, it depends how is your project.
if you previous project is C++ and design good. UI just a present layer, it should not be heavy work.
but if your image processing logic are strong related to MFC, you might spend lots of time on your migration.
I am interested to write a GUI based tool which would generate code in return. Something similar to VB GUI interface or Xcode's Interface Builder. I am going to use QT tookkit which is cross platform.
Can you help me to point out some resources which could be helpful to make such tools?
Thanks
Qt creator comes with an integrated UI Designer. The designer can be used stand alone or integrated into Visual Studio as well.
I was told there is a qt oscilloscope example available online, not sure if it's by Qt QDevelop or someone else. Can someone give me a link to this project? I need this to test something I am working on in Qt. I need to generate some data, specifically a sine wave to do some testing with an application I am developing.
http://www.oscilloscope-lib.com/oscilloscope_DLL.zip but it's not based on Qt, though.
Sounds like a Qwt - Qt Widgets for Technical Applications
I am using QtService to write a web page thumbnail rendering service. Is it possible to include sufficient of the Gui libraries to keep QtWebKit happy without running into the restriction on interactive services?
I have the websnap sample from websnap.cpp and this somehow convinces the QWebPage component that a Gui is available without actually displaying the widget. When I try to duplicate the environment in the service it complains that there in no gui for the widget.
I strongly suspect that QtService and QWebPage are fundamentally incompatible but have not yet given up hope that there is a workaround.
I am not even sure what it is that the websnap sample does that keeps QWebPage happy (is it just because its linked with the Gui library?)
I am very new to the Qt library so the answer may be obvious to someone with more experience.
Thanks,
Andy
Althought QtWebKit can work in headless environment (without any visible widgets), it still requires graphics libraries etc to be present and functional. Otherwise, how would it compute font metrics, render the text, and so on? Thus, you always need QtGui.
PS: I wrote the websnap example :)