Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QLineEdit is not editable - error
QtWS25 Last Chance

QLineEdit is not editable - error

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 2 Posters 6.0k 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.
  • G Offline
    G Offline
    goosebumps4
    wrote on last edited by
    #1

    I want to use a QLineEdit in order to input some text from the user, in an application designed for symbian. I am currently using a part of the Maps Demo example found in Qt Mobility, from the Qt Creator. I use a layout on top of the view on which the map is placed to display the QLineEdit. The problem is that I cannot input any text from the simulator. I have checked and the QLineEdit variable isn't readOnly. What could be the problem?
    Thank you.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chuck Gao
      wrote on last edited by
      #2

      Can not identify what was happened. Does your QLineEdit have focus? You can try set placeHolder text first, and see when you pressed your lineEdit widget, if there has focus or cursor.

      Chuck

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goosebumps4
        wrote on last edited by
        #3

        I can click on in and select the default text set previous, if that is what you mean.

        Funny thing, is that i tried the same thing in a very simplified scenario: a map, loaded onto a scene, loaded onto a QGraphicsView and in the layout of the QGraphicsView the QLineEdit. The QLineEdit could be modified in this case. Somewhere something is wrong.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goosebumps4
          wrote on last edited by
          #4

          [quote author="Chuck Gao" date="1311239823"]Can not identify what was happened. Does your QLineEdit have focus? You can try set placeHolder text first, and see when you pressed your lineEdit widget, if there has focus or cursor.[/quote]

          There is no focus or cursor ...

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goosebumps4
            wrote on last edited by
            #5

            I have even tried to set focus manually .... but nothing:

            @
            void MapsWidget::showEvent(QShowEvent* e){
            this->activateWindow();
            this->userAnswer->setFocus();
            QWidget::showEvent(e);
            }@

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goosebumps4
              wrote on last edited by
              #6

              I had along with the QLineEdit a QLabel and a QPushButton. When I added all of them on the layout, i should not specify label.setVisible(true), and pushButton.setVisible(true). This was the problem

              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