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. QLineEdit Question
Qt 6.11 is out! See what's new in the release blog

QLineEdit Question

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

    I found that QLineEdit using "Enter" will become strange.
    e.g
    have tow Controls , QLineEdit and QPushButton
    in QPushButton's slot add code:
    printf("question\r\n"); //add include: #include "stdio.h"

    When the focus in “Enter”, will trigger a button events, print output “question”

    i use os is ubuntu 10 ,qt version is 4.8

    Why???

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

      ps:first put control QlineEdit

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cardinal
        wrote on last edited by
        #3

        solve
        set Properties autoDefault false

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

          Please mark the thread as solved :)

          http://www.goblincoding.com

          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