can I do the same things of qtwidget in qml app ?
-
Hello, everyone
I have three questions
-
In root window, can it receive mouse events or keyboard events without creating mousearea inside?
-
In dialog, I want to create title bar for that. So, then I can drag that dialog around using mouse by clicking on that title bar. How can I do that?
-
I want to use QML for UI, but want to use QtWidget event handlers (connect, signal, slot mechanism) at the same time. Can I do this?
Thank you in advance and have a nice weekend
-
-
- Yes, you can. Either with installEventFilter or by having your own QQuickItem or QQuickWindow subclass where you override the events methods.
- You could do that by adding a DragHandler in the header of the dialog.
- You can use signal slot mechanism in QML. But your question is weird, why do you want to use QtWidget event handlers in QML?
-
- Yes, you can. Either with installEventFilter or by having your own QQuickItem or QQuickWindow subclass where you override the events methods.
- You could do that by adding a DragHandler in the header of the dialog.
- You can use signal slot mechanism in QML. But your question is weird, why do you want to use QtWidget event handlers in QML?
@GrecKo
Dear GrecKo:Thank you so much for your kindness and your answers.
You helped me a lot !
For question no. 3, I am just a beginner to QML, so I want to use signal-slot mechanism under QML's beautiful UI.
Especially QML offers nice 3D rendering together with 2D graphics.
So I want to use QML. But I already knew how to use signal-slot mechanism, I just want to use this for those QML's controls.Have a nice weekend and see you again, GrecKo
Take care -
M morphism has marked this topic as solved on