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

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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 24 May 2020, 19:10 last edited by
    #2

    Hi and welcome to devnet,

    Since those are list of strings why not use a QListView to show them ?

    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
    • C Offline
      C Offline
      Chaba
      wrote on 24 May 2020, 19:38 last edited by
      #3

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

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 24 May 2020, 19:39 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

        C 1 Reply Last reply 24 May 2020, 19:49
        0
        • S SGaist
          24 May 2020, 19:39

          In that case a QTableView ?

          C Offline
          C Offline
          Chaba
          wrote on 24 May 2020, 19:49 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
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 25 May 2020, 15:35 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

            C 1 Reply Last reply 25 May 2020, 15:42
            0
            • S SGaist
              25 May 2020, 15:35

              How exactly do you want show these matrices ?

              C Offline
              C Offline
              Chaba
              wrote on 25 May 2020, 15:42 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
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 25 May 2020, 19:09 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
                • C Offline
                  C Offline
                  Chaba
                  wrote on 25 May 2020, 21:09 last edited by
                  #9

                  But gui freezes when appending matrices to qtextedits

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 27 May 2020, 06:08 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

                    C 1 Reply Last reply 29 May 2020, 19:03
                    2
                    • M Offline
                      M Offline
                      mrshabake
                      Banned
                      wrote on 27 May 2020, 06:25 last edited by
                      #11
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • S SGaist
                        27 May 2020, 06:08

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

                        C Offline
                        C Offline
                        Chaba
                        wrote on 29 May 2020, 19:03 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

                        11/12

                        27 May 2020, 06:25

                        • Login

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