How to add zoom to the QML Web format?

I want to load the local html file with pinch and zoom for Web display.

How can I do it in QML?

Now my code is:

import bb.cascades 1.0

Page {
    ScrollView {
        Container {
            background: Color.create("#f8f8f8")
            layout: StackLayout {
                layoutDirection: LayoutDirection.TopToBottom
            }
            WebView {
                url: "local:///assets/web/moscowmetromap.html"
            }
        }
    }
}

Hello

I did some tests on the sample application CascadesCookbookQML with the GestureHandler.qml...

So, on your ScrollViewProperties try pinchToZoomEnabled true, same as below:

scrollViewProperties {
    scrollMode: ScrollMode.Both
    pinchToZoomEnabled: true
}

Hope this helps,

Tags: BlackBerry Developers

Similar Questions

  • Cannot figure out how to "add-in" for the 2013 Outlook application... said the loading behavior is not loaded. How can I fix it?

    Cannot figure out how to "add-in" for the 2013 Outlook application... said the loading behavior is not loaded. How can I fix it?

    Hi amandab9126792,

    2013 Outlook does not work with Acrobat X because they are not compatible. Please check the compatibility to https://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html.

    Kind regards

    Nicos

  • How to add text to the gif format

    Hello, I am a beginner in photoshop.

    I want to add text to my gif as part of the animation, but somehow the text transparent look, even though I already use black color for the text.

    Could someone give me tutorial how to add text to the gif and then do some sort of subtitle?

    Thank you...

    The text layer is 2 layers under the real background layer in your file. Check your layers panel. Click, drag and drop the text layer currently selected in your layers 2 screenshot above or the visible layers, especially to see if your text will appear - it should ideally.

    Settings - when save you for Web & devices, you can customize options preset for GIF on the top right of your dialog "save for Web & devices".

  • How to add bookmarks to the IE Favorites list?

    How to add bookmarks to the IE Favorites list? I can find them on recently added bookmarks, but they are not listed when I click on IE Favorites.

    Firefox bookmarks are stored in your Firefox profile folder, they are not synchronized with the IE Favorites.

  • How to add programs to the start of the file using Vista

    How to add programs to the start of the file using Vista

    Hi Harry,.

    Oddly enough, you can actually do it in msconfig except if it is already there and simply not checked as opposed to not being do not at all (although you would think that they would understand this option).

    The easiest way is to add the program (or a shortcut to the program) in the folder all Menu Programs Startup.   Here is the procedure: http://www.ehow.com/how_5098465_add-startup-programs.html.  Remember, to do this, you must either a shortcut existing (perhaps on the desktop or elsewhere in the menu all programs) or you need to find the source file (probably somewhere in C:\Program Files depending on what you want to add) and either copy it and add it to the startup folder or right-click on it and create a shortcut to copy into the startup folder.  Once you reboot, this program starts during the initial commissioning process and you will now be able to control using msconfig.exe, if you wish.

    Another option is to do this by using the registry editor.  If you decide to try this, first create a restore AND system restoration point backup of the registry before you begin.  Here is the procedure: http://www.ehow.com/how_7304438_add-program-msconfig-regedit.html.  I recommend to use this ONLY if the previous procedure does not work for some reason any as long as that the procedure is simpler and safer.

    If you want a simpler way to manage and control startup programs, you can try it free WinPatrol http://www.winpatrol.com/download.html that change monitors for startup programs if you set it to run in real-time so that you know when to try new programs are added to your Start menu and, for the purposes of this question includes an Add button which opens a link to a window of Windows Explorer where you can browse the program you want to add, click open to select and then add it directly to the commissioning.  If you prefer it does not work all the time, you can simply uncheck the box which includes this program and it will work only when you choose to run (but at the start, will work as an indication otherwise or configured).  It will appear not in the start menu in all programs (Finally, WinPatrol is, but not programs, it adds to the start), but it will appear in WinPatrol (which also lets you manage what you want or not start with checkboxes as in msconfig) and sure in msconfig - but only after a reboot is complete the process of adding.

    I hope this helps.  Personally, I use WinPatrol myself and let it run in real time.  Since I do a lot of installations, it helped me often prevent the addition of a startup item I haven't really need and reduces how many times I actually need to check what is happening out there.

    If this answers your question without the need to repost in another forum, please mark it as an answer.  If this isn't the case, then of course you must republish as suggested above.

    Good luck!

  • How to add text to the file selected?

    I have already updated title but I don't know how to add it to the selected real file (the one in the middle)... I read on some other forums but its still confuse me.  Also, is there anyway to add the effect of movement, as drag in or dissolve almost?

    Screen Shot 2016-02-19 at 10.27.40 PM.png

    I mean this in the nicest way possible, but it's very wacky workspace you put in place there. Create titles is muuuuch easier in the standard workspace Edition. When you create / open a title in the editing workspace, he creates a floating large window with the title of all the members of panels. It is about the only time I am ok with windows in the first floating. You will create the title in the window title, and then close the window title entirely. The video for the title will then be in your project Panel (which you can not common to see in your current workspace configuration, but will be very apparent in the workspace standard edition in the lower left). So the best thing to do is to simply drag the title element of the project to sequence Panel (another Panel today, you don't see in your current workspace arrangement.

  • I want to print PostScript in illustrator, then put the Distiller how to add print on the list?

    I want to print PostScript in illustrator, then put the Distiller how to add print on the list?

    What exactly do you want to do it is not possbile to save to the PDF format?

  • How to add licenses in the VIP administration Console

    How to add licenses in the VIP Admin console?

    Hello

    Please see: -.

    Manage your cloud of Adobe Creative for the composition of teams

    Adobe Creative Cloud for teams FAQ

  • How do you ZOOM in the MAC DESKTOP version?

    How do you ZOOM in the MAC DESKTOP version?

    There is not a way to zoom in on a Mac as you would on an iPad or an iPhone. The most important that your window can be on the screen is the size limit of the photo.

    Guinot

  • How to add text to the Notes?

    Hi all

    I want to add some text in the notes. I create notes with success.

    My note label and name are not apply any script executed successfully.

    How to add text to the note? My script is:

    indesign #target

    myDocument var = app.documents.add ();

    var myTextFrame = myDocument.pages.item (0).textFrames.add ();

    myTextFrame.geometricBounds is ['10', 15 ' p', '50 p', '50 p'];.

    myTextFrame.contents = "Adobe Indesign";

    var insertionPoint = myTextFrame.insertionPoints.item (-1);

    var note = insertionPoint.notes.add (1433299822);

    Note.label = "NewNote";

    Note. Name = "FirstNote";

    Thank you

    Jin

    try sth. like

    Note.texts [0] .silence = 'some content '.

    Hans-Gerd Classen'

  • How to add text to the position of the cursor in HTMLEditor in JavaFX

    I know how to add new button to HTMLEditor and I want all of my action button to paste text at the current position of the cursor.


    //HTMLEditor html;
    //String IMAGE_URL = "http://...";
    Node node = html.lookup(".top-toolbar");
    if (node instanceof ToolBar) {
      
    ToolBar bar = (ToolBar) node;
      
    ImageView graphic = new ImageView(new Image(IMAGE_URL, 32, 32, true, true));
      
    Button myButton = new Button("", graphic);
      bar
    .getItems().add(myButton);
      myButton
    .setOnAction(new EventHandler<ActionEvent>() {
      
    @Override
      
    public void handle(ActionEvent arg0) {
      
    //needs code
      
    }
      
    });
    }

    Use the webkit API, so this isn't something you want to use in production since there is no guarantee that JavaFX will use webkit in the future. Really, the HTMLEditor should have an API editor that makes all of this transparent.

    You will need to import javafx.scene.web.WebView, com.sun.javafx.webkit.Accessor, and com.sun.webkit.WebPage;

                myButton.setOnAction(new EventHandler() {
                    @Override
                    public void handle(ActionEvent arg0) {
                        WebView webView = (WebView)htmlEditor.lookup("WebView");
                        WebPage webPage = Accessor.getPageFor(webView.getEngine());
                        webPage.executeCommand("insertText", " World Cup Soccer ");
                    }
                });
    
  • How to add external content to our Web page

    Hi all

    I need to add a virtual reality panorama to my Web page. VR Pano that's HTML plus two records. Can I store on my ftp and share it, but how to integrate it to the Web page? I can't copy all of the html code, because there are two additional files. Any ideas?

    In this case, you can simply download the two files on your site through FTP to the desired location and update the path in the Pano RV HTML code that you would be inserted into pages of Muse to the object-> the option Insert HTML code in order to call these scripts from their relative location.

    You can also take a look at this thread where the user had a similar query.

    http://forums.Adobe.com/message/5078401#5078401

    Thank you

    Vinayak

  • How to add photos to the calendar already started?

    Hello everyone.

    I started a draft order of business and I found just 3 photos, I want to add, but I can't find how :-(

    Could you help me please?

    Thanks in advance,

    Fanny

    Reveal the sidebar in Photos.  Just press the key combination command-option-S ⌥⌘S

    Select photos on the album or the moment and then drag them to your calendar project icon in the sidebar to add them to the calendar.

    Film the bottom of the calendar project drag them to the pages where you want to use them.

  • create the new file option in Windows - how to add Notepad in the list of programs

    When I'm in a particular folder, I can right click and choose new... to create a new file in this folder.  The usual programs are available to choose from, such as Word and Excel, and also a few programs that I have installed are also available.  How can I add Notepad to the list of programs offered at the "create new file" with?

    Thank you.

    Except if you have changed the file association "New text Document" is Notepad.

    John

  • try to find how to add timestamp to the notes I put in the section notes to contacts

    try to find how to add a timestamp to the notes I put in the section notes to a contact

    Hello jlaneco,

    Thank you for visiting the Microsoft answers community. The question you have posted is related to Office Outlook and would be better suited to the Community Office Outlook. Please visit the link below to find a community that will provide the support you want.

    http://www.Microsoft.com/Office/Community/en-us/default.mspx?DG=Microsoft.public.Office.misc&lang=en&CR=us

    I myself have sought a solution to this problem and have not found one solution viable, other than having to click Date & time whenever you want to place a stamp in your notes.

    Hope this helps

    Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • How to uninstall "Outlook."

    How to remove "Outlook"?I use hotmail

  • I have clouds upward does not

    When I try to save my I Pad I get different messages: (1) the last Back Up unknown, (2) Back Up failed or I get a backup Date and time I know isn't right.  I back up my I Pad once a day so I remember the date / time correct.  It all started with IOS

  • Warnings of simulation for the SPICE model

    Hello When you use a template PSpice of an OpAmp AD8001AR of Analog Devices for an implementation of active filter, the simulator of the APLAC Trans gives me warnings below; Simulation - NLN:AD8001AR #211:34:47 GBJT. Q1: RB11:34:47 GBJT_PNP. Q2: RB11

  • Cannot find the function in the dll library

    I'm trying to use the function I build in a C++ of Labview "Call library function" dll, but it cannot find the name of the function "Add" or "divide". Attached my .dll, file .cpp and screws, could you help me to find out where is the problem?

  • The upgrade of Inspiron 580 s

    Hello! I am trying to upgrade my s 580 Dell Inspiron (i5 with * easy *) for purposes of games.  I recently installed a MSI GeForce GTX 750 graphics card ti low-profile and is now looking to upgrade to the power.  The PSU in my computer is currently a