[PyQt] Error with QtQuick.Dialogs

Charlie Gentil ceg at redaction-developpez.com
Thu Feb 20 14:43:54 GMT 2014


Hi,

I have the following error :
*"Qt Warning - invalid keysym: dead_actute" *


*My Python code : *
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from PyQt5.QtCore import QObject, QUrl, Qt
from PyQt5.QtWidgets import QApplication
from PyQt5.QtQml import QQmlApplicationEngine


if /__name__/ == "__main__":
    app = QApplication(sys.argv)
    engine = QQmlApplicationEngine()
    ctx = engine.rootContext()
    ctx.setContextProperty("mainAppPy", engine)

    engine.load('Test.qml')

    win = engine.rootObjects()[0]
    win.show()
    sys.exit(app.exec_())




*My QML code :*
import QtQuick 2.2
import QtQuick.Window 2.0
import QtQuick.Controls 1.1
import QtQuick.Dialogs 1.1



ApplicationWindow {
    title: /qsTr/("Test Invoke")

    width: 200
    height: 100

    
    Button{
        y : 70
        text : "About"
        onClicked: /msg/.visible = true

    }

    MessageDialog {
        id : /msg/
        title: "About"
        visible : false
        icon: StandardIcon.Information
        text: /qsTr/("Test")
    }
}


NOTE : If I use qmlscene, I have not a problem.

Have you a idea ?

Thanks

Charlie

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140220/a5295c59/attachment-0001.html>


More information about the PyQt mailing list