Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to read file (or multiple line string ) from python function to QML text Area?
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlpyqt5python3signals&slots
1 Posts 1 Posters 612 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rohn
    wrote on last edited by Rohn
    #1

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

    @test.python

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved