Hi, I want to do the following dialog:
now I have done a function which create an entry item, but I don't know how return "widget" or "layout" to allow to add them to a QGridLayut...
Qt Code:
??? GestioneClienteDialog::creaItemCliente(Domain::Persona c) { ??? widget = new ???; // widget or layout? what type? and how? piva->setVisible(false); piva->setText(c.piva()); ragionesociale->setText(c.ragionesociale()); cognome->setText(c.cognome()); nome->setText(c.nome()); indirizzo->setText(c.indirizzo()); citta->setText(c.citta()); boxDati->addWidget(cognome); boxDati->addWidget(nome); boxDati->addWidget(indirizzo); boxDati->addWidget(citta); boxContenitore->addWidget(ragionesociale); boxContenitore->addLayout(boxDati); boxEsterno->addWidget(radio); boxEsterno->addLayout(boxContenitore); widget->addWHAT(boxEsterno); return widget; }To copy to clipboard, switch view to plain text mode
Thank you...
Bookmarks