Results 1 to 4 of 4

Thread: Default delegate displays empty QLineEdit?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Default delegate displays empty QLineEdit?

    does index.data(Qt:isplayRole).toString() return something?
    what you will see in console if you execute this code?
    Qt Code:
    1. ...
    2. qDebug() << index.data(Qt::DisplayRole).toString();
    3. qDebug() << index.data(Qt::EditRole).toString();
    4. ...
    To copy to clipboard, switch view to plain text mode 
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  2. The following user says thank you to spirit for this useful post:

    andy.fillebrown (16th April 2009)

Similar Threads

  1. QLineEdit actions in Delegate
    By mclark in forum Qt Programming
    Replies: 1
    Last Post: 15th January 2009, 21:34
  2. Pointer Question related to QLineEdit
    By ChrisReath in forum Qt Programming
    Replies: 1
    Last Post: 23rd May 2008, 15:13

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.