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. I-beam remnants in QLineEdit after clear() function
QtWS25 Last Chance

I-beam remnants in QLineEdit after clear() function

Scheduled Pinned Locked Moved General and Desktop
6 Posts 1 Posters 4.3k 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.
  • C Offline
    C Offline
    CraigH
    wrote on last edited by
    #1

    I am having problems with I-beam remnants in QLineEdit widgets. I have several QLineEdit's in a main window. If they have any text in them when I use the clear() function (on each of them sequentially), I am left with an unblinking I-beam at the beginning of the box for each of them. One tip which I have already tried, is to sequentially setFocus through all of them. This worked for one program, but not for the current program. If I manually sequence through the widgets, the I-beam blinks, then disappears when moving on to the next one. This works for both tab and mouse use. Each LineEdit is part of a separate GroupBox, and the whole main window was made with Qt 4 Designer.
    I am using Qt 4.6.2 under ubuntu 10.4.

    Does anyone have a suggestion, or a permanent fix?

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      On win32, Qt 4.7beta2, the behavior I find is different. If I repeat the above steps, the I-beam vanishes from all QLineEdits. I did not setFocus on any particular QLineEdit, but sequentially cleared them

      1 Reply Last reply
      0
      • ? This user is from outside of this forum
        ? This user is from outside of this forum
        Guest
        wrote on last edited by
        #3

        Hey, just found that if I setFocus to any particular QLineEdit say ledit2, and then clear all of the QLineEdits, the focus still remains on ledit2. So no need for setFocus on each LineEdit. Hope this helps.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          CraigH
          wrote on last edited by
          #4

          It looks like this is a linux code bug. When I compile and run the same program under windows, it works fine, just like you say.

          1 Reply Last reply
          0
          • ? This user is from outside of this forum
            ? This user is from outside of this forum
            Guest
            wrote on last edited by
            #5

            then please do log a bug for this

            1 Reply Last reply
            0
            • C Offline
              C Offline
              CraigH
              wrote on last edited by
              #6

              Bug report has been generated. Here is the link: http://bugreports.qt.nokia.com/browse/QTBUG-12737

              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