PDA

View Full Version : Can QML create UIPopOverController?



chong_kimkeang
13th November 2012, 03:28
I want to create a uiPopOverController in my program by clicking a button. Do QML have this function or object to use? if so, how can I find it?

chong_kimkeang
14th November 2012, 10:06
8413

how can I click on that button, the UIPopOverControl appear? Can anyone help me?

wysota
15th November 2012, 14:49
What is UIPopOverControl?

chong_kimkeang
16th November 2012, 02:15
Like in iPad and iPhone app. It like a dialogbox that appear whenever the button is clicked. When user click the button, uipopovercontrol appear and when user select on one color in it, it will disappear and create an object that contain that color. In the image uipopovercontrol is this
8418

wysota
16th November 2012, 04:31
So, what's the problem? When the user clicks a MouseArea, show an item, then hide it when it's not needed anymore.

chong_kimkeang
16th November 2012, 06:59
The problem is I don't know how to create it (UIPopoverControl). Do QML has any tool or library to create it?

wysota
16th November 2012, 09:31
I don't know what UIPopoverControl is. I told you how to create a popup. What you put inside it is your decision. As far as I'm concerned, you can even put a kitchen sink there.

chong_kimkeang
16th November 2012, 10:46
What is Kitchen sink?

wysota
16th November 2012, 12:05
What is Kitchen sink?

It's a thing people usually have in their kitchens that accepts water flowing from the tap and directs it to the drain.

chong_kimkeang
19th November 2012, 02:04
So in the problem above, with my problem in QML, what should I do with?

wysota
19th November 2012, 03:07
Implement the popup you need and execute it using the method I have given you. If you want a color chooser then probably the easiest thing to do is to have a model of colours and display it using a ListView or GridView.