After click on image I want to open 2 option.
There are multiple options to go around this such:
1- displayactionsheet
2- Opening a model with Selection and sending the selection back
3- use Rg.plugins.popup to create a popup anywhere you want on the page,..
4- SlideOverKit
Those are alternative solutions. The closest thing to what you want is the popup plugin and SlideOverKit
Related
I have a project including 3 UI files: win_main.ui, win_table.ui and win_table2.ui.
I want to show one of them inside of win_main.ui, and with a button, change them.
I mean, there is a Box containing win_table.ui, and when I clicked the button, the box will change to win_table2.ui.
Example
I tried using QWidget, QQuickWidget, but they didn't worked.
Is it possible ? If yes, how ?
Try using a QTabWidget. You can flip between tables using tabs.
If there is a specific reason why you wouldn't want win_table2.ui showing before a button is pressed, you can disable that tab programmatically until it is ready. You can also flip between which tab is currently showing using code as well.
I am trying to make a UIButton for the user where he will be able to choose between 5 different options. I have in mind something like an one line UIButton where one option will be preselected and when the user presses the button the 5 options would be displayed for the user to choose. In the objects library the closest i can find to that is the picker view , but its too big for my screen and it displays all the options , as i only want one to be displayed in the beginning and when the user hits the button all the options so that he can pick a different one if he likes. Is there a UIButton like this on Xcode that i am missing or should i customize a picker view or something?
Thank you in advance for reading my post :D
You can customize picker view like following
http://code4app.net/ios/Customized-Picker-View/4f72e7446803faa901000002
But I suggest that you use custom view which contains custom table view
and that view is shown as like picker view,means all properties like size,animation,position etc
all are in your control
If you want to customize table view like that
then follow the link
http://code4app.net/ios/3D-Tableview/4fc0da756803fae46f000000
I have been unable to work out how to edit build settings using the pop-up shown below.
I can enter multiple lines in the pop-up by clicking the '+'. My questions are :-
What is the checkbox next to the setting used for?
Once I have entered one or more settings in the pop-up, how do I make them transfer to the setting I am editing. There isn't a 'Save' button, and clicking off the pop-up closes it but doesn't seem to save the entered data.
Thanks
To delete, check the checkbox and click "-".
To make a new one, click "+".
To save, click "Done".
Welcome to the Wonderful World of Apple UX.
I want to create an application in which i will create a button and by pressing that button as list of options will open and i can choose one of them.for example i will create a button named "searching algorithm" and by clicking this button a list will open at same place which display two options as linear search and binary search.can anyone give me an idea how to do that?
You want a QComboBox:
The QComboBox widget is a combined button and popup list.
I believe what you need is a popup window where you can have list of options, whenever your button is clicked show this window, hide it when user selects an item in the list or clicks outside of the working area. There is an example you can use as a reference:
QT 4.7 Google Suggest Example
hope this helps,
regards
I'm trying to design a UI in Qt and I can't find anywhere in the designer a button which can be "droped down" like combobox. What I mean by that is that I would like to have this button with his "default" option choosen so if I like it I would have to just click on it but if I would like to choose different option I would be able to clik the little arrow on the right side of this button and then pick option suitable for me at that moment.
You're looking for a QToolButton that has a set of actions or a menu set on it. From the documentation, the QToolButton::ToolButtonPopupMode...
Describes how a menu should be popped up for tool buttons that has a menu set or contains a list of actions.
Of it's values, the two that I see most frequently are DelayedPopup:
After pressing and holding the tool button down for a certain amount of time (the timeout is style dependant, see QStyle::SH_ToolButton_PopupDelay), the menu is displayed. A typical application example is the "back" button in some web browsers's tool bars. If the user clicks it, the browser simply browses back to the previous page. If the user presses and holds the button down for a while, the tool button shows a menu containing the current history list
And MenuButtonPopup:
In this mode the tool button displays a special arrow to indicate that a menu is present. The menu is displayed when the arrow part of the button is pressed.