Question: I have an input dialog (Qt) with three options in a combobox. I would like a different action be launched on the Ok depending on the item which was selected in the combobox. For now, I have

```
QInputDialog qDialog ;

QStringList items;
items << QString("Choice 1");
items << QString("Choice 2");
items << QString("Choice 3");

qDialog.setOptions(QInputDialog::UseListViewForComboBoxItems);
qDialog.setComboBoxItems(items);
qDialog.setWindowTitle("Choose action");

QObject::connect(&qDialog, SIGNAL(textValueChanged(const QString &)), 
           this, SLOT(onCompute(const QString &)));

qDialog.exec();

```

The slot `oncompute` performs a different action depending on the selected item in the combobox... but this is called when the user selects a new item in the box, not on click on ok.

How can i retrieve the item selected on the combo box and perform action on click on Ok ?

Answer: 
Try to add Pods.debug into your project -> Info -> Configurations -> Debug, and Pods.release into Release section. I solve my missing 'RestKit.h' problem by this setting.
![enter image description here](https://i.stack.imgur.com/KZUco.png)
Try to write your podfile in that way:

```
source 'https://github.com/CocoaPods/Specs.git'
link_with  ['PocketLobbyiOS', 'PocketLobbyiOSTests']
platform :ios, '6.0'

pod 'MWPhotoBrowser', :git => 'https://github.com/floriankrueger/MWPhotoBrowser.git', :tag => '1.4.1'
pod 'TestFlightSDK', '~> 3.0.2'
pod 'RestKit', '~> 0.23.1'
pod 'RestKit/ObjectMapping'
pod 'RestKit/Search'
pod 'RestKit/Testing'
pod 'PKRevealController', '~> 2.0.6'
pod 'Mapbox', :git => 'https://github.com/mapbox/mapbox-ios-sdk.git', :tag => '1.2.0'
pod 'MagicalRecord/Shorthand', '~> 2.2'
pod 'DDPageControl', '~> 0.1'
pod 'MWPhotoBrowser'
pod 'Reachability', '~> 3.1.1'
pod 'Mixpanel', '~> 2.4.0'
pod 'OHAttributedLabel', '~> 3.5.4'

# ignore all warnings from all pods
inhibit_all_warnings!

post_install do |installer_representation|
    installer_representation.project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
        end
    end
end

```

Install pod, and at your project Build Setting->Other Linker Flags, add $(inherited).