Results 1 to 2 of 2

Thread: editingFinished of QLineEdit

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default editingFinished of QLineEdit

    I want to do the fllowing things with QLineEdit,but error occur.
    step 1.I create a QLineEdit and 10 QLabel.
    step 2.I connect singal editingFinished of QLineEdit with function dd;
    step 3.In function dd,I do the following things:
    A)delete the 10 QLabel;
    B)recreate c QLabel;(c is the number input by QLineEdit)
    When I run my program,the following things occur:
    When I input a number,for example,5 into QLineEdit ,and click any place except the 10 QLabel,the program is ok,but When click any QLabel,the program will break down.
    I think that when I click any QLabel,the program has deleted it,so the program break down,but I do not know how to do ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: editingFinished of QLineEdit

    Please provide code or something. We're not true-seers.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 10
    Last Post: 12th February 2009, 07:23
  2. QLineEdit actions in Delegate
    By mclark in forum Qt Programming
    Replies: 1
    Last Post: 15th January 2009, 21:34
  3. QLineEdit
    By rick_st3 in forum Newbie
    Replies: 1
    Last Post: 14th June 2008, 09:05
  4. Pointer Question related to QLineEdit
    By ChrisReath in forum Qt Programming
    Replies: 1
    Last Post: 23rd May 2008, 15:13
  5. QValidator, regular expressions and QLineEdit
    By hvengel in forum Qt Programming
    Replies: 1
    Last Post: 8th August 2007, 01:25

Bookmarks

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.