Results 1 to 6 of 6

Thread: QTableView and Date

  1. #1
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTableView and Date

    Sorry for the simple question, but I cannot find an answer.
    How can I force the input of a cell of QQTableView to be of type Qt:TextData?
    G

  2. #2
    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: QTableView and Date


  3. #3
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableView and Date

    Thank you, but I cannot understand.
    May you give some hint how to iser the QItemDelegate inside the cell?
    G

  4. #4
    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: QTableView and Date

    an example of using delegates

  5. #5
    Join Date
    May 2008
    Posts
    276
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableView and Date

    but for simple delegate, like QDate, there are not default delegates?
    G

  6. #6
    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: QTableView and Date

    you have to write your own delegate. you can write it using the example which I specified in the last post. don't be afraid, try to write by yourself and read the documentation, it's not to hard.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. qtableview selectrow(s)
    By JeanC in forum Qt Programming
    Replies: 1
    Last Post: 9th May 2008, 10:01
  2. Replies: 7
    Last Post: 17th November 2007, 11:33
  3. QTableView & QDate
    By Shaitan in forum Qt Programming
    Replies: 3
    Last Post: 18th July 2007, 10:06
  4. Working with Date type in database applications
    By kolach in forum Qt Programming
    Replies: 13
    Last Post: 25th January 2006, 14:20

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.