[Qt-interest] Question: ¿How i can pass QListWidget like an argument and modify items?

Jonathan Finlay jmfinlayp at gmail.com
Thu Feb 25 23:49:34 CET 2010


Hi,

I like pass QListWidget like an argument:

dialog->connect(moduloLineEdit,SIGNAL(textChanged(QString)),this,SLOT(poblar_formulario(
listWidget, moduloLineEdit->text() )));

And in the function poblar_formulario(QListWidget, QString)
change/add/remove QListWidgetItems.

The dialog is create in a function of MainWindow.


-- 
Jonathan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100225/724999dd/attachment.html 


More information about the Qt-interest-old mailing list