Results 1 to 3 of 3

Thread: Validating QTable's cell

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Location
    Chennai
    Posts
    36
    Qt products
    Qt3
    Platforms
    Unix/X11
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default Validating QTable's cell

    I want to validate float values in a particular QTable's cell, so I created a custom table item a set it to the particular cell. I am able to get the line edit of the cell using the createEditor(), and able to validate the values. But When ever I have click that particular cell the previous existing values are reset to NULL, I want to keep the old values present in the cell. I have attached the sample code I have used, I also find out the problem in my code, the problem is I am creating new line edit object inside the createEditor() (tableitem.h), which is the problem. But if I do not create a new object how I can achieve my requirement for validating a cell. Please help me ..
    Attached Files Attached Files

Similar Threads

  1. Problems with QString
    By cyberboy in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2008, 09:18
  2. Word wrapping in a QTableWidget cell
    By jcooperddtd in forum Qt Programming
    Replies: 3
    Last Post: 1st May 2007, 04:57

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.