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. A severe delay occurs when the QScrollBar is dragged by the user or received a wheel event.

A severe delay occurs when the QScrollBar is dragged by the user or received a wheel event.

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 462 Views 2 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.
  • K Offline
    K Offline
    keyboard_hellchang
    wrote on last edited by keyboard_hellchang
    #1

    When you output a string to QPlaintextedit and then you arrived the vertical range of QPlaintextedit, a scroll bar is created.
    In that state, when the user drags the scroll bar, it stops for 1 to 2 seconds and the scroll bar follows the mouse.

    How do we solve this?

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

      Hi and welcome to devnet,

      Which version of Qt ?
      On which OS ?
      On which device ?

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

      K 2 Replies Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Which version of Qt ?
        On which OS ?
        On which device ?

        K Offline
        K Offline
        keyboard_hellchang
        wrote on last edited by keyboard_hellchang
        #3

        @SGaist First, I'm sorry I didn't speak English well. The qt version is 4.8.7! OS is centos7. The process of manufacturing UI tools in PC includes dbus communication between applications on the core program and PC, and socket communication with embedded boards connected to the core program and PC. QScrollBar not only freezes, but all UI objects are frozen in some sequence processes.

        I tried qApp->processevent().
        I also cut off the dbus.

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi and welcome to devnet,

          Which version of Qt ?
          On which OS ?
          On which device ?

          K Offline
          K Offline
          keyboard_hellchang
          wrote on last edited by
          #4

          @SGaist AH!!! I solve this problem!
          I was using sleep () in the middle without knowing it.

          Thank you for your interest!

          JonBJ 1 Reply Last reply
          2
          • K keyboard_hellchang

            @SGaist AH!!! I solve this problem!
            I was using sleep () in the middle without knowing it.

            Thank you for your interest!

            JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by
            #5

            @keyboard_hellchang
            If you use sleep() anywhere in your code you deserve what you get, so don't, ever. Not to mention, nobody can possibly know that you have.

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

              Since you have it working now, please mark your thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)

              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

              • Login

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