Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Unresponsive GUI while append text to QTextedit
QtWS25 Last Chance

Unresponsive GUI while append text to QTextedit

Scheduled Pinned Locked Moved Unsolved General and Desktop
unresponsiveqtexteditc++ qt
12 Posts 3 Posters 1.4k 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.
  • ChabaC Offline
    ChabaC Offline
    Chaba
    wrote on last edited by
    #3

    Because these stringlists set a N x M matrix. I want to show matrices.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      In that case a QTableView ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      ChabaC 1 Reply Last reply
      0
      • SGaistS SGaist

        In that case a QTableView ?

        ChabaC Offline
        ChabaC Offline
        Chaba
        wrote on last edited by
        #5

        @SGaist What is benefit of using QTableView here? There will be more than 1 matrix in the result. So user can select them from treewidget. I can change widget if they help me. If you are available, can you run my project to understand me better please.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #6

          How exactly do you want show these matrices ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          ChabaC 1 Reply Last reply
          0
          • SGaistS SGaist

            How exactly do you want show these matrices ?

            ChabaC Offline
            ChabaC Offline
            Chaba
            wrote on last edited by
            #7

            @SGaist In fact, the codes I have given are simplified versions of the project. In real project codes, there are slow operations at other thread. Slow operation iteration counts changing depending on user inputs. I call these operations as periods. Each periods have a result of matrix. In the main window result screen there should be period list and when user clicking one of these periods, the result of that period should be shown as matrix.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #8

              Well, storing and rendering are two different things.

              Nothing stops you from having one matrix per cell.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • ChabaC Offline
                ChabaC Offline
                Chaba
                wrote on last edited by
                #9

                But gui freezes when appending matrices to qtextedits

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  How fast are you are you appending them ?
                  How big is your text ?
                  From how many sources do you do that ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  ChabaC 1 Reply Last reply
                  2
                  • mrshabakeM Offline
                    mrshabakeM Offline
                    mrshabake
                    Banned
                    wrote on last edited by
                    #11
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • SGaistS SGaist

                      How fast are you are you appending them ?
                      How big is your text ?
                      From how many sources do you do that ?

                      ChabaC Offline
                      ChabaC Offline
                      Chaba
                      wrote on last edited by Chaba
                      #12

                      @SGaist

                      • My data is ready to append. So i append them directly.
                      • There are 10-100 QTextEdits. I append 100-200 line to each of QTextEdits. Lines have arround 300 characters.
                      • I have one vector of vectors source.

                      By the way, i moved my data source to a different thread. Then emitted signals to append with BlockingQueuedConnection. Gui is responsive now. But its not smooth. I dont know using blockingqueuedconnection instead of queuedconnection is the right way but my gui is responsive while appending strings now.

                      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