PDA

View Full Version : doubt in Qinputdialog



iswaryasenthilkumar
22nd May 2015, 12:20
QString text = QInputDialog::getText(this, tr("select photots"),
tr("select the photos to display Min=5s Max=60s"), QLineEdit::Normal,
"10", &ok);

i have doubt in above code..it executing properly..my doubt,,i need to split the label text in two line
present output:
"select the photots to display Min=5s Max=60s
i need output is:
"select the photos to display"
"Min=5s Max=60s"
what changes i have to make?? please give some suggestion for this:(
Thanks in advance:)

Ginsengelf
22nd May 2015, 12:25
Hi, just add a line break (\n) where you like it.

Ginsengelf