Results 1 to 3 of 3

Thread: QLineedit::returnPressed() closes dialog?

  1. #1

    Default QLineedit::returnPressed() closes dialog?

    I got some QLineEdit widgets in a dialog. After pressing the return key when input is finished, my slot is called, but after that the dialog closes . What I want to accomplish is: after pressing the return key and my code is executed the return key event is dropped. (As a result the dialog does not close).

    Any ideas?

  2. #2
    Join Date
    Jan 2006
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Unix/X11 Windows

    Default Re: QLineedit::returnPressed() closes dialog?

    I think ur Dialog closes. because the Dialog's close button has AutoDefault property set to true.
    We can't solve problems by using the same kind of thinking we used when we created them

  3. #3

    Default Re: QLineedit::returnPressed() closes dialog?

    Thanx !!!
    I never would have looked there...

Similar Threads

  1. Issue with Modelless dialog on Mac
    By Satyanarayana Chebrolu in forum Qt Programming
    Replies: 0
    Last Post: 24th February 2009, 10:10
  2. Replies: 9
    Last Post: 13th August 2008, 18:07
  3. Dialog closes on pressing Esc key?
    By vishal.chauhan in forum Qt Programming
    Replies: 6
    Last Post: 3rd July 2008, 08:53
  4. QGraphicsView: Dialog Position Doubt
    By arjunasd in forum Qt Programming
    Replies: 1
    Last Post: 6th August 2007, 17:48
  5. Dialog closes immediately
    By bruccutler in forum Qt Programming
    Replies: 5
    Last Post: 21st February 2007, 23:18


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.