Hallo,
wie kann ich in einer QScrollarea mehrere Widgets darstellen? Zum Beispiel wie beim Acrobat oder in Word mehrere Seiten. Ist zufällig ein Beispiel dazu bekannt?
QScrollarea
Re: QScrollarea
Whitefurrows hat geschrieben:Hallo,
wie kann ich in einer QScrollarea mehrere Widgets darstellen? Zum Beispiel wie beim Acrobat oder in Word mehrere Seiten. Ist zufällig ein Beispiel dazu bekannt?
ich habe es so.... gemacht ...
Code: Alles auswählen
void Image_Base::Load_Connector()
{
scroll = new QScrollArea(this);
scroll->setBackgroundRole(QPalette::Dark);
scroll->setMinimumWidth(500);
wrapper = new QWidget(this);
flow = new FlowLayout(wrapper);
comio = new Comandi();
comio->SetName(nomefilmopersona);
connect(comio , SIGNAL(NewIImage(QString,QString)), this, SLOT(AppendImage(QString,QString) ) );
connect(comio , SIGNAL(SaveFakes()), this, SLOT(ReSaveOnDb() ) );
flow ->addWidget(comio);
wrapper->setLayout(flow);
scroll->setWidget(wrapper);
connect(curl , SIGNAL(OneFilePutEnd(bool) ), this, SLOT(SenderOnePutBack(bool) ) );
connect(curl , SIGNAL(ErrorCurl(QString) ), this, SLOT(CurlMistake(QString) ) );
connect(curl, SIGNAL(NextGrabList(int)), this, SLOT(ImageLoadPosition(int)));
////////////connect(curl, SIGNAL(ErrorCurl(QString)), this, SLOT(SegnalaErrore(QString)));
}
bei jedem insert mache ich einfach scroll->setMinimumHeight(500 + hoehvon neu....);
beim delete minus....
die class FlowLayout ist im demo oder example von qt 4.1
.........................
speack português italiano deutsch english castellà qt
speack português italiano deutsch english castellà qt
-
Whitefurrows
- Beiträge: 138
- Registriert: 1. Mai 2006 19:50