[Qt-interest] Query regarding the QinputDialog,
Ramesh
ramesh.bs at robosoftin.com
Thu Jul 1 15:47:53 CEST 2010
Hellow to all,
i want to use the QinputDialog in my Qt application, using the QinputDialog
i am showing the popup listview, the code which i have used to show the
popup dialog is,
QInputDialog inputdialog;
QStringList items;
items << "apple" << "grape"<<"orange";
bool val =
QObject::connect(&inputdialog,SIGNAL(textValueSelected(const QString
&)),this,SLOT(selText(const QString &)));
inputdialog.setLabelText(tr("Choolse the fruites"));
inputdialog.setOptions(QInputDialog::UseListViewForComboBoxItems);
inputdialog.setComboBoxItems(items);
inputdialog.exec();
inputdialog.close();
My problem is, popup dialog appears, but its not elegant, it looks a bit of
ugly i.e popup list item size is fixed(height of cell),i cant even change
the fonts displaying fruits, i dont no how to customize it? is there any way
to customize or not?
Thanks in advance
Ramesh
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100701/7a23daa6/attachment.html
More information about the Qt-interest-old
mailing list