On 28 Mar 2013, at 12:53 PM, qt wrote:

> hi all,
>  i want to put a QWidget on QTableView, the QWidget is moveable, resizable.
> like the excel, sometimes you could insert a chart on a excel.

Well if the widget will belong to just one cell at a time, you can maybe use 
setIndexWidget.  Otherwise you could try to have the widget floating over the 
table: don't put it in a layout manager or have them related to each other, 
just manage the geometry manually.  (The mouse event handler can implement 
dragging.)  But of course the widget on top will get the mouse events whenever 
you mouse over it, and having any kind of snap behavior or trying to relate its 
position to which cells it covers, will be extra work.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to