PDA

View Full Version : a widget have the Item function in QTable



cp
22nd July 2013, 16:41
Hi,everyone
I want to create a widget implement QFrame.It is a rectangle that can play like a rectangle item in the QTable .This widget can double click the mouse to enter the editor mode.We can input some words into the widget like the QTextEdit play.How can I achieve it?
Need help!!
Thanks in advance!

ChrisW67
22nd July 2013, 21:47
If you want the behaviour of a QTextEdit then use a QTextEdit as the editor (use a QStyledItemDelegate)