[Qt-interest] Query regarding the QinputDialog,

Malyushytsky, Alex alex at wai.com
Fri Jul 2 01:13:27 CEST 2010


Your yellow text hurts my eyes not mentioning that posting HTML is not recommended to post HTML on the mailing list.
If you need customization I would suggest not to use QInputDialog.
Creating ui file is not difficult and give you easy access to the controls.

Regards,
    Alex





From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Ramesh
Sent: Thursday, July 01, 2010 6:48 AM
To: qt-interest at trolltech.com; qt-embedded-interest at trolltech.com; QtS60-feedback at trolltech.com
Subject: [Qt-interest] Query regarding the QinputDialog,

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.



---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”




More information about the Qt-interest-old mailing list