on event function implementation black screen
-
Hello,
im trying to figure out how to combine qtwidgets and qml in one program. For that i have a simple program consisting of two qwidgets. One of these widgets is getting promoted to a custom class thats inheriting from QQuickWidget.
In my mainwindow i set the source with ui->widget->setSource(QUrl(source)) which works fine. The problem i'm having is when i try to implement the event function inside the class that inherits QQuickWidget. After defining the method and recompiling i'm getting a black screen instead of the loaded qml.
I need the event method since i want to do drag and drop from the other qwidget and i havent managed to catch the d&d event any other way yet. This post had a similar issue which is why i implemented it that way.
Can anyone tell me how to fix the black screen or point me in a different direction how to solve the drag and drop problem? I already tried using DropArea inside my qml
Thanks in advance
-
Hello,
im trying to figure out how to combine qtwidgets and qml in one program. For that i have a simple program consisting of two qwidgets. One of these widgets is getting promoted to a custom class thats inheriting from QQuickWidget.
In my mainwindow i set the source with ui->widget->setSource(QUrl(source)) which works fine. The problem i'm having is when i try to implement the event function inside the class that inherits QQuickWidget. After defining the method and recompiling i'm getting a black screen instead of the loaded qml.
I need the event method since i want to do drag and drop from the other qwidget and i havent managed to catch the d&d event any other way yet. This post had a similar issue which is why i implemented it that way.
Can anyone tell me how to fix the black screen or point me in a different direction how to solve the drag and drop problem? I already tried using DropArea inside my qml
Thanks in advance
-