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. QtQuick 2.0 TextEdit, TextArea, both are very-very slow on high-end PC
Forum Updated to NodeBB v4.3 + New Features

QtQuick 2.0 TextEdit, TextArea, both are very-very slow on high-end PC

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

    I have a very-very simple code:

    import QtQuick 2.6
    import QtQuick.Controls 1.5
    import QtQuick.Dialogs 1.2
    
    ApplicationWindow {
        visible: true
        width: 640
        height: 480
        title: qsTr("Hello World")
    
        menuBar: MenuBar {
            Menu {
                title: qsTr("File")
                MenuItem {
                    text: qsTr("&Open")
                    onTriggered: console.log("Open action triggered");
                }
                MenuItem {
                    text: qsTr("Exit")
                    onTriggered: Qt.quit();
                }
            }
        }
    
        TextArea {
            anchors.fill: parent
        }
    }
    

    If I paste a file of 6000 lines in the TextArea it is works very-very slow and laggy. However, the text scrolls quite fast, the interacting with it (selecting, writing, deleting) works very-very and very slow and freezy.
    What can I do to increase performance? For example, QPlainTextEdit in c++ works much better.

    Qt 5.6, Archlinux x64, i7 4790, 32gb ram.

    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