Hello,

I'm trying to write an application for symbiam with QT Creator.

I want to fill a Qlistwidget with
custom frames. I use this code:

Qt Code:
  1. Frame *frame = new Frame(this);
  2.  
  3.  
  4.  
  5.  
  6. ui->listWidget->addItem(item);
  7. ui->listWidget->setItemWidget(item,frame);
To copy to clipboard, switch view to plain text mode 


Frame is a Qframe that I fill with 3 labels.

The problem is that I don't know how to adjust the size of the QlistWidgetItem and frame to the size of the labels.
the text it's cut because the frame and listitem don't grow.
It is the only way that I found to do this.

And finally another question. How I resize the application to fit the screen?
ui->layoutWidget->showFullScreen(); ui->layoutWidget->showMaximized(); dosn't run.

Thank you very much.