On Mon, Nov 26, 2012 at 6:16 PM, Rodrigo Lovera <span dir="ltr"><<a href="mailto:lobo.theslayer@gmail.com" target="_blank">lobo.theslayer@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br>I already know how to setup vtk/qt using the qvtkwidget and got it to work the text display, well i'm using a pushButton in Qt to activate a text widget which will appear on my qvtkwidget as well as my volume rendering. My point now is how can I do to interactively write a commentary or some annotation on it.<br>
<br>I mean, I'm working with medical images and is kind of required to add some labels or commentaries in some views. Is there any direct way to add the textwidget and start typing whatever you want on the qvtkwidget?? or maybe a way to get the text of an texteditbox from qt??? I'm really stucked at this point. <br>
<br><br>Rodrigo</blockquote><div><br></div><div>You should use a QLineEdit and connect it's textChanged() signal to a slot that updates the vtkTextWidget and re-renders the scene:</div><div><br></div><div><a href="http://doc.qt.digia.com/qt/qlineedit.html#textChanged">http://doc.qt.digia.com/qt/qlineedit.html#textChanged</a></div>
<br>David</div>