Results 1 to 2 of 2

Thread: problem of subclass QTableItem

  1. #1
    Join Date
    Oct 2006
    Posts
    20
    Thanks
    2

    Default problem of subclass QTableItem

    Hello,everyone!When i inherited QTableItem,I can't display the text from QLineEdit . I used QLineEdit as the editor .Can you tell me how to do it ? Thank you very much!!

  2. #2
    Join Date
    Oct 2006
    Posts
    20
    Thanks
    2

    Default Re: problem of subclass QTableItem

    I had reimplement setText() and Text() . There are the codes:
    void TableItem::setText(QString s){
    QTableItem::setText(s);
    }
    QString TableItem::text(){
    return QTableItem::text();
    }

Similar Threads

  1. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54
  2. Problem in SubClassing QTableItem.
    By sumsin in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2006, 10:21
  3. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  4. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  5. Replies: 16
    Last Post: 7th March 2006, 15: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.