How to read file (or multiple line string ) from python function to QML text Area?

  • I want read a file from python function to the QML application in Text area. How I can proceed?


    def filter_file():
    with open("file_path", "r") as file:
    for line in file:
    update_QML_file_text_Area(line) // function for updating text Area in QML file

    So how can I create function which update the text Area from python function to QML application? Please let me what I need to do. If any sample example you have ...please share ...It will be very helpful......thank you

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.