Java to Qt code convert

Posted by user289175 on Stack Overflow See other posts from Stack Overflow or by user289175
Published on 2010-03-08T21:46:48Z Indexed on 2010/03/08 21:51 UTC
Read the original article Hit count: 396

Filed under:

Hello,

I'm teaching my self Qt; in the same time I don't want to lose my Java skills in Qt. I stacked in some codes to do it in Qt, I tried many times as well as search in the net.

Code # 1

Object[] names = jList1.getSelectedValues();
String msg = "";
for (Object o : names)
msg += o;

Code # 2

DefaultListModel model;
model = new DefaultListModel();
jList1.setModel(model);

Code # 3

if(!jList1.isSelectionEmpty())
I didn't find Empty method :-(

I'm going to do some Qt's video tutorials on youtube, but before that I need to solve the above codes. If any programmer can help I will be thankful;

Thanks in advance

At the end I would like to thanks the experts who are spent thier value times to help others

© Stack Overflow or respective owner

Related posts about qt