How can I change the height of a button in QML

Photo we can see, the 'equal' button could not fill the empty space below,

in the code, I already have the three right-click in a container and the value

layoutProperties: {StackLayoutProperties}

spaceQuota: 1

}

for the key 'c' and 'back' button, so the game

layoutProperties: {StackLayoutProperties}

spaceQuota: 2

}

on the button "=", but it did not work.

But the "zero" button can work well.

I want to know

1. How can I set the button to fill the empty space below.

2. How can I make the size of equal with all the buttons it y width, in other Word, do all the buttons highest.

Thank you very muck.

I don't think you can, you'll have to do a custom for her button

Container {
    id: customButton
    property alias text: label.text
    property alias btnDefault: ib.defaultImageSource
    property alias btnDisabled: ib.disabledImageSource
    property alias btnPressed: ib.pressedImageSource
    signal clicked();
    layout: DockLayout {

    }
    leftMargin: 20
    rightMargin: 20

    ImageButton {
        id: ib
        defaultImageSource: "asset:///images/copybuttonbackground.amd"
        horizontalAlignment: HorizontalAlignment.Fill
        verticalAlignment: VerticalAlignment.Fill
        onClicked: {
            copyButton.clicked(); //to send signal out
        }
    }

    Label {
        id: label
        text: "Original"
        horizontalAlignment: HorizontalAlignment.Center
        verticalAlignment: VerticalAlignment.Center
        overlapTouchPolicy: OverlapTouchPolicy.Allow //sends click to ImageButton
    }
}

Tags: BlackBerry Developers

Similar Questions

  • How can I change the height of the menu bar to allow my large icons/buttons maintain their size?

    I've recently updated to FF31 FF28. Totally different user interface, I get that. I waited to update until I psych myself to try something different. I have the default theme Australis and Noia Fox Theme, which is designed with the larger icons/buttons for those with Visual needs. On my screen at this moment, I have the title bar, menu bar, tab bar and toolbar url/addon with the menu "Burger" on the right. I placed icons in the bar of menus, kept the House icon in the bar of the addon, and then there are the default icons in the menu popup. When I activate the Noia Fox Theme, look great icons in the addon/url bar, even in the popup menu; clear, large, easy to see. However, the icons in the menu bar (not the menu popup) are less than half their size origin/destination. So I'm going to default Australis theme, reboot and same problem, but not quite as dramatic as the default theme is smaller at first.

    My thought then, is that there is a setting in the menu bar which resizes the icons/buttons for a small default size. This setting can be changed to allow icons to keep their size original (or near it) and if so, how? I like the location of the menu bar on my screen, underneath the title bar above the tabs bar. Works very well with the new Fox only better addon that attaches to the tab bar and mask the url bar, a 'new' for me and I love him. I know that I can get the CTR with an additional bar and I tried that. The question, then, is that the extra bar appears below the tab bar and that it is not moveable to above the bar below the title bar and tabs.

    For the moment, I have just the two themes, security addons added and The Fox but better. I haven't added any other addons of appearance again in order to minimize potential conflicts/problems. I have not tinkered with internal FF by default not to follow the other parameters to tell me (I think that's what I did). To the best of my knowledge limited, I kept the changes and customizations to a minimum. And Yes, by your feature of conjecture to posted questions, I'm under Win 8.1 and 31 FF.

    I think I've offered sufficient detail so that others may try to reproduce the problem. Otherwise, let me know and I'll try to answer as soon as I can. Thank you very much for any help offered.

    ~ wkothlow

    You can also try code like this that I posted before on icons placed on the menu bar:

    #toolbar-menubar > toolbarbutton > .toolbarbutton-icon {
      height:24px!important; width:24px!important; margin:-3px!important;
    }
  • How can I change the height of my Bookmarks Toolbar on Firefox 11.0?

    Hello
    I just installed Firefox 11.0 and I noticed that the 'line height' grew a little bookmarks toolbar. I was wondering if someone could tell me a way I can change this.

    Here is a screenshot of comparison:
    http://img38.imageshack.us/img38/934/firefoxbookmark.PNG

    Fine thanks
    K

    You can make changes to the appearance of the bookmarks toolbar by writing rules of style for the #PersonalToolbar. For example:


    #PersonalToolbar {max-height:19px}

    To apply the rule, you can use the old userChrome.css method, or more user-friendly Stylish extension.

    Examples of elegant use in these discussions: ink waste because the pages with dark backgrounds always print despite the context of printing being box unchecked. Using 5 Foxfire in Win 7 I lost the highlighting of current in use (compared to win XA FF 5) BM.

  • How can I change the height of my tabs so that they reach the top of the interface of browster?

    Today, for some reason, I found that my tab sizes modified slightly so that my cursor to the top of the page is missing the tab since there is now a little space above them. This applies to tabs of the browser standard as well as the Firefox tab and is rather boring. How can I get rid of this little space to achieve the tabs to the top of the browser again?

    This problem can be caused by an add-on installed in Firefox.

    Please try Firefox Safe Mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that disables some settings and disables most Add-ons (extensions and themes).

    (If you are using an additional theme, place you in default theme.)

    If Firefox is open, you can restart in Mode without failure of Firefox in the Help menu by clicking on the restart with the disabled... modules menu item:

    If Firefox is not running, you can start Firefox in Mode safe mode as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. Please follow the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

    Thank you.

  • How can I change the height of text without converting them vectorised text?

    I work in a sign company and often need to put in place the text in a specific size. When the text is CAPS, it isn't so bad, but in the case of title case, it can be a pain...

    For example, if I need letters 2 "high, it would generally be compared to the uppercase version of the first letter of the word (no matter the ascending and descending).

    A few times I need to make several at once, so change them individually are very tedious when I cPV every word to outlines, then aletters of each word to make up for the ascendants and descendants of aresurrection.

    I wonder if there is a faster way to do this without convert curves?  In addition, I notice that when I change the size of the font (in the character palette) to 2 ", for example, when describing the text is actually smaller.

    signguy (There),

    You can:

    (1) tick Edit > preferences > General > use overview of limits;

    (2) select the Type and the effect > path > describe the object.

    Which will reduce the Bounding Box to the real limits of the letters and keep the editable Type.

    Don't forget to uncheck the Edit > Preferences > General > use limits Preview until you get a reverse problem.

  • How can I change the height police size and line (so the police fits) in my Inbox?

    In order to make the information containing the source and the object of my incoming emails (from Netzero) more easy to read, I want to make the font bigger. However, in doing so, the heights of line remain the same and the information on each line are compressed vertically. This makes it actually harder to read.

    See this:
    https://support.Mozilla.com/en-us/KB/page+zoom

  • How can I change the opening a new button to the tab of my homepage instead of the blank page

    Just as the question asked.

    1. In the address bar, type Subject: config and press enter. The subject: config "this might void your warranty!" warning page may appear.
    2. Click on I'll be careful, I promise!, to continue on the subject: config page.
    3. Type browser.newtab.url
    4. Click on the first result and change it to your homepage.
  • How can I change the size of the screen on the current project?

    How can I change the size of my screen on a project that is currently in the works on?

    If you're on CC14 go in sequence settings and change the height and width.

    If you're on CC7 make new sequence and copy everything over the old to the new.

  • How can I change the size of text and background color?

    How can I change the size of text and background color? When I select the text box and change the height, nothing happens. If I drag the box is smaller, it just jumps back to where she was. If I try to change the color, (which is set to 'default' gray), no color, it still shows as white on preview. Because I can not change the size of text box, I need to at least make the clear background because it's something that overlap.

    Answered my own question kind of... I had to go into the 'code' and change the settings manually. Why even have the options in 'view designer' to change the size of text box or color if it doesn't?

  • 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

  • TB 31.7 W7, how can I change the police in the "all folders" list on the left?

    TB 31.7 on W7
    How can I change the police in the "all folders" list on the left?

    I was also unable to change the position of the icons on the e-mail toolbar in a message window. When I try to drag a box icon from the tool bar customize I get a symbol of the circle with a line through it, rather than the vertical bar I expect.

    Something like that?

    http://forums.mozillazine.org/viewtopic.php?f=30 & t = 2834207

    Note that the name of the folder and the name are case-sensitive. It must be userChrome.css and it must be placed in a folder named chrome.

    Finittary poster regularly wrote something about this recently. It may be possible to find this thread on this forum.

    The inability to drag or move a button usually means that you have opened the pane customization evil.

  • How can I change the sequence of displayed in Thunderbird mail accounts?

    I need to set up a laptop computer to take on the go. How can I change the sequence (list) of e-mail accounts in the vertical pane to match my office?

    Install this add-on.
    https://addons.Mozilla.org/en-us/Thunderbird/addon/manually-sort-folders/

Maybe you are looking for

  • HP Quickweb will not install

    Model: HP Mini210 210-1000 Specified: HP Mini 210-1014TU(Windows 7 64-bit) I bought this laptop a long time ago. I accidentally format the drive and just totally gone. I have read a lot of articles in HP Quickweb and want to install it (the box says

  • wipe my hard drive also destroy my operating system?

    I want to erase my hard drive but he will wipe away also on my operating system?

  • Firmware update and the playback Volume

    Help! I just did an update of the firmware on my Sansa Fuze and I can't hear it more! Does anyone know how 'Cancel' the update of the firmware, please?

  • xw6600 Workstation - Serial Port problems

    I want to add a standard RS232 9 pins (serial) port on my HP xw6600 workstation. Due to the current expansion I have only x 8 PCIe and PCIe x 16 available on the motherboard slots. I tried two dedicated PCIe Searial maps (PX-235 BrainBoxes and SatrTe

  • Need help with the error in windows update 80244019 is urgent please

    Please I need help urgent problem error update. I have a Dell Inspiron 1564, running Service Pack 1 of Windows 7.   I tried several times to update windows and nothing, just appears this error: Code 80244019, tried to install the Windows update agent