Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11893

Query related to QinputDialog

    XMLWordPrintable

Details

    Description

      Hi,

      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, the appeared popup listview is 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, i don't no how to customize, is there any way to customize or not?.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ramesh ramesh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified