Results 1 to 2 of 2

Thread: a widget have the Item function in QTable

  1. #1
    Join Date
    Jul 2013
    Posts
    9
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Smile a widget have the Item function in QTable

    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!

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: a widget have the Item function in QTable

    If you want the behaviour of a QTextEdit then use a QTextEdit as the editor (use a QStyledItemDelegate)

Similar Threads

  1. how to get complete row from qtable widget?
    By aurora in forum Qt Programming
    Replies: 2
    Last Post: 10th January 2012, 10:20
  2. QTable Widget
    By kavinsiva in forum Newbie
    Replies: 5
    Last Post: 23rd October 2009, 13:50
  3. QTable Widget
    By csvivek in forum Qt Programming
    Replies: 2
    Last Post: 12th May 2008, 13:37
  4. Can Qtable Item be a comboBox?
    By iGoo in forum Qt Programming
    Replies: 2
    Last Post: 4th August 2006, 09:58

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.