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?
Forum Updated to NodeBB v4.3 + New Features

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 636 Views 1 Watching
  • 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 10 Jun 2018, 11:31 last edited by Rohn 6 Oct 2018, 11:32
    #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

    1/1

    10 Jun 2018, 11:31

    • Login

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