Is it possible to add a UIswitch to a glance viewcontroller?
It is not working for me though.
From the WatchKit Programming Guide:
Do not include interactive controls in your glance interface. Interactive controls such as buttons, switches, sliders, and menus are not supported by glances.
Your app’s glance cannot be interactive—tapping it just launches the app.
Related
I’m looking to allow multiple buttons to be pressed at the same time when using a multi touch device for an application developed in QT for ios/android etc
I cannot for the life of me see how to do this.
Any help much appreciated
Qt's stock buttons use MouseArea, which doesn't support multi touch, amongst other things.
Use MultiPointTouchArea instead to implement your own multi-touch friendly buttons.
I am currently learning app-building basics with Xamarin. My question is what is the difference between "Blank-App (iPhone)" and "Master-Detail App (iPhone)".
Thanks for taking the time to answer my question.
These are two different templates for you to choose.
Blank-App (iPhone) means you just create an empty project without storyboard, RootViewController or other extensions. You can customize it whatever you want. If you are new to Xamarin.iOS and unsure about what template to use, try to use Single View Application.
Master-Detail App (iPhone) means when you choose this template. System will automatically create a UISplitViewController with a default Detail and Master for you. So there's no need to configure the rootView. It's a type of showing the ViewController.
You can try to create these two template projects then run to see the difference between them.
I saw this thread: QML UI on top of OpenGL rendering in Qt5.3 but it's not what I am looking for.
My question is if I have a program already written in c/c++ and would like to add ui to it in the most cross platform way. Qt seems to be the way to go, is it possible to just link the Qt library 'hopefully not too large' into my application and create menus, buttons etc that work in a cross platform way?
I don't want to build my app using Qt, I just want to use the layout widgets, menus etc.
I don't want to build my app using Qt, I just want to use the layout widgets, menus etc.
What?
In any case you should make an UI (using Qt Widgets or Qt Qml) and UI logic, and connect it to your app API. Just add UI layouts (using Qt Designer) and connect UI actions for button/menu/etc. to your app.
Qt - is the most cross-platform way to go, today.
Is there a way to change the image of the pins in Xamarin Forms Maps. I want to make the pin a custom image, if it has to be done natively, can someone give me a simple example of it. Thank you.
To anyone coming to the later, this is now well supported in Xamarin Forms.
In essence you need to create a custom map class in your PCL or shared code that inherits from the Xamarin Forms Map and then create a Custom Renderer in each of the platforms' projects.
Those custom renderers will be different for each platform, dealing with the specifics of rendering icons and any pop up information shown when you click on that pin for that particular platform. You are not obliged to create a custom renderer for all platforms, for any that you don't a normal map will be displayed.
This is all now really well documented in the Custom Renderers | Customizing a Map section of the Xamarin Forms Developers Guide. That documentation walks through creating a custom renderer for Android, iOS and UWP and explains the code needed in detail. There's a lot of it, so I won't reproduce it here. There is also an accompanying sample solution here.
One point worth noting is that if you are trying to reproduce that code in your own project you will also need to add the images in the various drawable folders in the ProjectName\Droid\Resources directory, and also the two axml files in the layout directory.
Apparently this is quite locked down and you have to look at custom renderers to achieve what you are needing.
There is a discussion about this on the following link:-
http://forums.xamarin.com/discussion/17916/customization-of-xamarin-forms-maps-pins
, with specific reference to a project at the following link which someone has implemented custom image pins from the Assets folder:-
https://github.com/paulpatarinski/ShouldIWashMyCar/blob/master/Android/Renderers/MapViewRenderer.cs
I haven't tried this yet, however this would probably be a good place to start when looking to customize map rendering.
This project might be helpful to you. raechten/BindableMapTest
From the description:
Small sample for binding a collection to a Xamarin Forms Maps pins
(valid until binding directly to the Pins property will be supported
by Xamarin Forms directly).
Includes custom and clickable pins.
It has Android and iOS implementations.
I would like to make an input method which is used only for Qt desktop application.
It like Chinese(Pinyin) input method in windows. Include script processing, rendering of words.
As it includes rendering of words, it can't be created with Keyboard Layout.
More over, when built-in with application, it can be use cross over other platform.
But, It not like on-screen keyboard.
Thanks for all
The Qt way to implement this is to provide an input method plugin, see general plugin development docs and the input method specific base class.
With this you should be able to implement your own input method. Stuff like script processing and rendering is then up to your own plugin.