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. Append text Gui freezed

Append text Gui freezed

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qml
1 Posts 1 Posters 156 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.
  • A Offline
    A Offline
    Alshathry
    wrote on last edited by Alshathry
    #1

    Hi there ,append text from python to qml textarea freezing Gui , please how to fix that

    
        import QtQuick 2.15
        import QtQuick.Window 2.15
        import QtQuick.Controls 2.15
        Window {
            width: 640
            height: 480
            visible: true
            title: qsTr("Hello World")
            Flickable  {
                id: scrollView
                x: 13
                y: 38
                width: 647
                height: 168
                contentWidth: text1.width; contentHeight: text1.height
                visible: true
                flickableDirection: Flickable.VerticalFlick
                clip: true
                ScrollBar.vertical: ScrollBar{}
                ScrollBar.horizontal: ScrollBar{}
                TextArea {
                    id: text1
                    opacity: 1
                    visible: true
                    color: "#000000"
                    font.pixelSize: 16
                    verticalAlignment: Text.AlignVCenter
                    font.preferShaping: false
                    font.kerning: false
                    font.styleName: "Courier New"
                    font.weight: Font.Medium
                    font.bold: true
                    readOnly: true
                    clip: true
                    font.family: "Courier New"
                }
            }    
            Connections {
                target: con
                
                function onSetTx(filer){
                   text1.append(filer)
                   
                }
            }    
        
        }    
    
    
    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