-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View doesn't work in a QQuickWidget #10
Comments
Hello @pm-energid, thanks for your interest and experience! I heard you. I had some experience in the experimental branch on my server - the last 4 commits (the code worked once, but it's already out of date). It's even a little funny. This project arose to get away from the Widgets... I will try to study this issue in the near future and maybe find a solution. |
I agree that the project should help moving away from Qwidgets, but for
existing applications it's usually not easy to convert to Qt quick in a
single phase. For example, the application I'm working on is quite large
and it may take almost a year's effort to port everything to Qt Quick. So,
I plan to integrate and port UI components step-by-step.
Another thing I forgot to mention in my other email was that the project
code is missing a license file. I guess it's LGPL (based on the entry at
qtproject site) and LGPL works for us too. It would be great if you start
including the license in the code root folder alongside cmakelists.txt
file. This will maintain the license.
Regards,
Piyoosh
…On 03-Apr-2017 10:23 PM, "Konstantin Podsvirov" ***@***.***> wrote:
Hello @pm-energid <https://github.com/pm-energid>, thanks for your
interest and experience!
I heard you. I had some experience in the experimental branch on my server
<http://git.podsvirov.pro/?p=openscenegraph/osgqtquick.git;a=shortlog;h=refs/heads/topic-school>
- the last 4 commits (the code worked once, but it's already out of date).
It's even a little funny. This project arose to get away from the
Widgets...
I will try to study this issue in the near future and maybe find a
solution.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANcM5Umy4kYe1kcxoSdmCIyjgzzmAnqzks5rsSP2gaJpZM4MxdXR>
.
|
I found that it's possible to create a container widget with a QQuickView-like window embedded inside it. See http://www.ics.com/blog/combining-qt-widgets-and-qml-qwidgetcreatewindowcontainer for details. However, I'm trying to look into use of QQuickWidget that is already provided by Qt to host QML engine in a QWidget environment. It should have better interaction support (less limitations) than the method described in this blog. |
@pm-energid, can you provide code example and your environment description to restore your issue. |
Ok. I'm running Qt 5.6.1 on Windows 10 64-bit. I'm building 32-bit binaries (MSVC 2013 - x86). My Qt build is custom, but it shouldn't affect it as we don't modify anything related. Here is the sample code that crashes:
view.qml:
Error messages:
If I change the type of m_quickWidget from QQuickWidget to QQuickView and write:
in place of:
then it renders fine. |
Hello @pm-energid, thanks for your code example. |
Hi Konstantin,
For some reason, windows and basic loop types aren't working properly on my
system. I get just a black view and even other qml items don't render
correctly as desired. I'll try to get some snapshots if possible.
Thanks,
Piyoosh
…On 06-Apr-2017 2:04 AM, "Konstantin Podsvirov" ***@***.***> wrote:
Hello @pm-energid <https://github.com/pm-energid>, thanks for your code
example.
In my experience osgQtQuick scripts can be run and don't crash in
QQuickWidget when QSG_RENDER_LOOP environment variable is set to *basic*
or *windows* (but print some warnings and it does not work smoothly).
With QSG_RENDER_LOOP is *threaded* it's crash when start.
There is no final solution, but there is a ground for reflection.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANcM5YsU3FvkrPBuJzHiti9pbmEcmJolks5rs_pygaJpZM4MxdXR>
.
|
MOC running on non-QObject headers Closes podsvirov#10 See merge request energid/osgqtquick!9
Hi,
I'm unable to add a view to a QML file shown in a QQuickWidget. It either crashes the application (by default, as it detects the renderloop type to be threaded), or it cannot render properly. I've tested only on windows. I guess the reason is because QQuickWidget has a different rendering loop than the ones supported by OsgQtQuick. In their implementation, threaded renderloop is actually disabled. It'd be wonderful if the support for QQuickWidget can be added.
Thanks,
Piyoosh
The text was updated successfully, but these errors were encountered: