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:
Frame *frame = new Frame(this);
ui->listWidget->addItem(item);
ui->listWidget->setItemWidget(item,frame);
Frame *frame = new Frame(this);
QListWidgetItem *item = new QListWidgetItem();
ui->listWidget->addItem(item);
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.
Bookmarks