Results 1 to 13 of 13

Thread: Q Line edit problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Nov 2012
    Posts
    47
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Q Line edit problem

    weird thing is if i go to file explorer and delete the text file, (left.txt) and press the button to save. It works. It save the current value
    but if i just save or even use QFile to remove and Resize the text file to 0 it wont work.

    And if I save and the text file exist ( means i didn't delete the text file), the data/text in text file will be changed, not to current value but to DEFAULT value

    #so it seems is bcause i run mainwindow function from another class that caused this

    Qt Code:
    1. MainWindow main1;
    2. main1.Save1();
    3. // What to do??
    To copy to clipboard, switch view to plain text mode 
    Last edited by ttimt; 14th January 2014 at 09:10.

Similar Threads

  1. Problem>QT and Mini2440: Get text from Line edit
    By mrquicuong in forum Newbie
    Replies: 1
    Last Post: 26th November 2011, 13:26
  2. line edit mask problem
    By sudhansu in forum Qt Programming
    Replies: 3
    Last Post: 31st March 2010, 13:17
  3. Assert problem in line edit
    By grsandeep85 in forum Qt Programming
    Replies: 19
    Last Post: 28th July 2009, 05:30
  4. Problem updating Line edit from a thread
    By raghvendramisra in forum Qt Programming
    Replies: 5
    Last Post: 3rd December 2007, 05:05
  5. Line Edit Controll problem
    By mansoorulhaq in forum Qt Programming
    Replies: 5
    Last Post: 31st October 2007, 08:33

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
  •  
Qt is a trademark of The Qt Company.