How can I change the layout of a listview of Interior programically qml

Hello

Is it possible to change the layout of a listview inside qml., i programically; e in both ways between the layout: StackListLayout for the layout: GridListLayout...

I've never really tried, but given the way the QML syntax usually works I would try something like this:

Page {
   attachedObjects: [
      DockListLayout {
         id: dock
      },
      GridListLayout {
         id: grid
      }
   ]
   ListView {
      id: list
      layout: dock
   }
   function toDock() {
      list.layout = dock;
   }
   function toGrid() {
      list.layout = grid;
   }
}

As I said I have not actually tried this, but this is where I would start to experiment.

Tags: BlackBerry Developers

Similar Questions

  • How can I change the layout of the home page? No personas, themes, or Web sites.

    I want to change the layout of my homepage, like having news or other items on my home page, instead of a blank page with the google search bar.

    You can use iGoogle:

    www.google.com/IG

  • Satellite A110-180: How can I change the layout of the keyboard?

    Hello

    I hope I could help you guys

    I reformatted my computer and install a windows xp OS... the placement of my keys looked like the standard keyboard...

    How can it go back to its own décor... because im confused with the keys every time I type.

    hoping for a quick answer. Thank you very much!

    Post edited by: spectrex909

    Hello

    Looks like you are using a wrong keyboard layout. Thin I language settings are bad!
    Maybe you have a US keyboard and the settings are set to the United Kingdom?

    Please check this in the dashboard-> regional and language-> languages-> details options.
    Here, you can add a second language or you can change one to another provision of the keyboard.

  • How can I change the layout of my web application after paging

    I wish that all pages except the home page to have a different layout when displaying web apps.

    Is this possible?

    Hello

    Can you post the URL of your site? This might be feasible, one of the simplest implementations would be something like this: wrap the webapp listing in an element and use the page number in the class, something like:

    webapp list here

    This would make the div class change with each page, page 1 (or if no page is set) he will come to the top of current page or current page1 and then became current page2 and so on.

    The trick would be to attribute some CSS rules only to the current page and current page1 classes that appear differently. After the site visitor goes to the second page or any other page that these does not apply and full registration will be a different set of CSS applied.

    Note that you need to have BC. Then activated - Introduction to the liquid for globals to work.

    Hope this helps,

    Mihai

  • How can I change the layout or the size of the photos in my Gallery?  I have started a project and downloaded some pictures of her.  Now when I click on projects opens the gallery page and I do not see the pictures because the vertical photographs are dis

    I have started a project and downloaded some pictures of her.  Now when I click on projects opens the gallery page and I do not see the images because the vertical photographs are displayed on the monitor.  I tried all layouts different portfolio and it does not change the way my photos appear in the gallery.  They are too big!  Here is my example.  Astriya photography

    Thanks for the help!

    Place the cursor over an image and a pencil appears on the side. Click on it and you will get the options including one to change the width and alignment. This seems to be the only option currently.

  • How can I change the start menu to view all default programs?

    I'm trying to figure out how to get all default loading programs in the start menu (rather than recent programs showing, we disabled).  Y at - it a registry key that can be changed or created to do this?

    I'm trying to figure out how to get all default loading programs in the start menu (rather than recent programs showing, we disabled).  Y at - it a registry key that can be changed or created to do this?

    Hello

    There is no way to display the menu all programs when you click on the Start button. Start is similar to a toolbar. When you select it, it will show all the different components that you can access.

    You can stop the recent programs to display. Right-click the Start button and select Properties. In the privacy section, Remove the check mark from the option store and display recently opened programs in the start menu .

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • How can I change the layout to have two pages running in parallel as a book or a magazine?

    How do I layout in columns, like a book or a magazine as pictured below at the same time my pages?

    This ability to "facing pages" has never been applied in any version of Pages v5 (including the current v5.6.1). It is available in the previous Pages ' 09 v4.3, free LibreOffice and Mellel for Mac.

  • How can I change the email win8 app settings?

    Try using Windows 8 on a laptop. The application of enamel in the start screen lists my emails with the first open e-mail. How can I change the layout of my Inbox as each message is opened just on one line with emails only when I click on the message in the Inbox? I need to see emails as much as possible in the list and I never want emails to open automatically.

    Hello

    We're sorry; Unfortunately, this feature is the email application design.

  • How can I change the appearance of the characters hidden in the code view?

    I'm talking about DW CC 2014.

    Use unicode characters

    U + 00 has 0 (nonbreaking space)
    and
    U + 202F (narrow nonbreaking space)

    Well, I don't want to use entities for several good reasons. These reasons should not be the subject in this thread.

    When I turn on "Show hidden characters" U + 00 to 0 is shown as a "°" in light grey.

    U + 202F appears independent of "see hidden characters." It is presented as a small black square with a cross inside.

    The font that I use in the code view is 'Source Code Pro', but the choice has no effect on what I'm talking about.

    If you want to reproduce this, you can just choose the wikipedia unicode characters:
    https://en.Wikipedia.org/wiki/Whitespace_character

    In the big picture, fourth column.

    Two questions:

    1

    How can I do DW to hide the U + 202F, when I disable "Show hidden characters"?

    What are the config files in DW 'hack' that, please?

    2

    How can I change the layout of U + 00 a 0 and U + 202F?

    What are the config files in DW 'hack' that, please?

    Example: I would like to choose a different location for U + 202F because the "small square with the cross inside' is intrusive. It makes reading difficult.

    Thanks a lot for your help.

    If a developer or something from adobe reads this thread. Please take my question as a desire to feature for future versions of DW.

    This is a quality characteristic, when different types of spaces are supported.

    Some of these spaces are very important for a typography exzellent.

    I'm sure that someone knows how special characters are handled in Dreamweaver, but if it is controlled by an editable file or hidden deep in the bowels of the software, only an Adobe engineer is likely to know.

    Public information on the integration of media in Dreamweaver are in this blog post from Dreamweaver: next generation of Dreamweaver: Adobe Dreamweaver Team Blog.

    I feel that the idea is to combine the best features of media with Dreamweaver. As the blog post suggests, there will be a public beta. When that happens, people will have the opportunity to say what they do and don't like. If enough people make the compelling case for X or Y, there is a chance it could be implemented (or maybe not).

  • How can I change the default action of record?

    My laptop with Windows vista has curently explores as the default action (because it does not open in a new window which is my chosen prefrence) and opened as the next option. How can I change the default action to open?

    Hello Nekora,
     
    Thanks for posting on the Community Forums of Microsoft Vista.

    Note: to set Windows Explorer to open in a new window, you must have the disabled Navigation pane.

    To Turn Off the Navigation pane, follow the steps.

    1. click on the toolbar button organize in Windows Explorer.
    2. click on page layout.
    3. Turn Off the Navigation pane - click Navigation pane to turn off highlight the icon.

    Later the value folder always options open the folder in a separate window.

    1. access control panel.
    2. open the Folder Options.
    3. Select the option "open each folder in its own window.
    4. click on apply and Ok.
    5. close the Folder Options and Windows Explorer window when finished.

    Restart the computer and check if it opens in a new window.

    It will be useful.

    Thank you and best regards,

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

  • How can I change the appearance of the app android and iOS in 2015 DPS?

    How can I change the appearance of the app android and iOS in 2015 DPS? I wouldn't have an option to download a zip with my html/css/js/images property?

    The look & feel for the app is handled through cards & Layouts - and those who are not separated by the platform.

    The look and feel of an article is managed either through the HTML code to the download package as you or pixelated design of InDesign - but these are not separated by the platform.

  • How can I change the text in the Messages to the vertical?

    How can I change the text in the Messages to the vertical?

    If you mean change the orientation, simply turn the phone. If this does not work, close Messages and then run again.

    To close the Messages, press the Home button twice quickly. You will see small glimpses of your applications recently used. Drag to the left to find the application you want to close. Swipe up on the preview of the application to close.

    If it does not, the strength to restart the phone. No data is affected by this. To force the reboot your device, press and hold the two buttons of sleep/wake and home for at least ten seconds, until you see the Apple logo.

  • I changed my email address of my ID Apple online, but my iphone still ask again me for my old email password, which no longer exists, how can I change the email to my new on my iPhone

    I changed my email address of my ID Apple online, but my iphone still ask again me for my old email password, which no longer exists, how can I change the email to my new on my iPhone

    Go to settings | Mail, Contacts, calendars and change e-mail account information.

    T.

  • How can I change the black background of iTunes 12.4.1.1

    I am running iTunes 12.4.1.1 on OS 10.8.5 on a Macbook Pro. How can I change the black background on iTunes to simple white.

    Thanks for any help

    Savewolves

    Where do you see a "black background" in iTunes?  You can include a screenshot?

    Command-shift-4 to take a screenshot of the portion of the screen showing the problem.  Then drag the files to screenshot (which appears on the desktop of your Mac) in your reply in the Safari window message.

  • How can I change the ORDER of my 5 email accounts to my default at the top

    How can I change the order of my 5 email accounts to my default at the top? Currently using any option to e-mail browser (Chrome Firfox IE) sends using one upstairs that is one that I never use. I specifically put by default in the settings option and figure that he took over the top NOT the default. This question never used to cultures upward, but since a recent update for Thunderbird, he chooses the top of the list only Preferred not on the list.
    Thank you I could delete the account then add it to the bottom (tedious), but there must be a way for a) restore order and b) to stop the email add on picking at the top

    Two things.

    You have defined the default value in the menu (alt + T) tools > account settings > outgoing (SMTP) Server?

    Second, try this add-on https://addons.mozilla.org/en-US/thunderbird/addon/manually-sort-folders/?src=ss

Maybe you are looking for

  • iMac 27 inch end 2012 unbootable

    This morning when I was working on my iMac 27-inch end 2012, suddenly he stops and does not start. After pressing the power button there is no sound and no display. NOTHING. BLACK SCREEN who knows what may be wrong...

  • Display Driver Portege R100

    Some time when I use certain software applications, the images on my Portege R100 distorted. Why does this happen?

  • Deletes the file datalog

    I did experiment with the Panel before auto logging feature, I have no bad to save data to a file in a vi and recover, BUT I can't seem to be able to delete the log file of the top-level vi.  I get the message file that is already open, but I don't s

  • Time clock errors

    My new to me clock SL500 continues to change the time on the clock.  The minutes are correct, but the clock gets several hours.  I don't know if this happens just at the moment where I'm running on batteries, but the incident the more recent was afte

  • The utility cartridge replacement

    Hey guys,. The utility cartridge inherited agent were replaced again? Can someone provide a link? WebMonitor specifically and AppMonitor. Thank you! -Daniel