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. [Solved] cursor problems in QTextEdit
Forum Updated to NodeBB v4.3 + New Features

[Solved] cursor problems in QTextEdit

Scheduled Pinned Locked Moved General and Desktop
11 Posts 5 Posters 6.1k 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.
  • G Offline
    G Offline
    goetz
    wrote on last edited by
    #2

    I don't understand. Can you describe you problem more clearly?

    http://www.catb.org/~esr/faqs/smart-questions.html

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mohsen
      wrote on last edited by
      #3

      maybe you need ui->lineEdit->update();

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #4

        How is this question different from the one you asked "here":http://developer.qt.nokia.com/forums/viewthread/3177/?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mohsen
          wrote on last edited by
          #5

          haha Andre you're so funny! are you monitor?

          1 Reply Last reply
          0
          • L Offline
            L Offline
            linoux
            wrote on last edited by
            #6

            The problem is when i try to drop something out of the editing zone, my cursor is stuck, it's not flashing anymore except if i do another drag and drop in the editing area

            1 Reply Last reply
            0
            • L Offline
              L Offline
              linoux
              wrote on last edited by
              #7

              I tried the update() nothing changed. @Andre this question came while trying to solve the other problem but it's not the same. At this point the other question is solved but a new problem shows.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #8

                Hm, do you have a small example that demonstrates the false behavior? This way we could look into the issue more thoroughly.

                As a first question: what's the difference between isInEditionZone() with and without parameter?

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andre
                  wrote on last edited by
                  #9

                  Indeed. It is a bit hard to fix if we have no insight into your code. It would be ideal if your code would be in the form of a small, self contained, compilable example as suggested by Volker.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    linoux
                    wrote on last edited by
                    #10

                    Solved by using the dragMoveEvent to define the dropzones. Thanks everyone.

                    1 Reply Last reply
                    0
                    • I Offline
                      I Offline
                      ihaveajob
                      wrote on last edited by
                      #11

                      Just to make the solution obvious to future readers, what you have to do is simply redefine mouseMoveEvent to accept the event, like in the "Drop Site example":http://harmattan-dev.nokia.com/docs/platform-api-reference/xml/daily-docs/libqt4/draganddrop-dropsite-droparea-cpp.html:

                      @
                      void DropArea::dragMoveEvent(QDragMoveEvent *event)
                      {
                      event->acceptProposedAction();
                      }@

                      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