Custom QML control... If I can have a property?
Hello
I created a simple custom control, but I want to be able to adjust the height of it when I create.
Now I can put the preferredHeight of each child control of the custom control, but it seems wrong.
According to me, I have to set a property on the control, then all my child controls use this to set their height.
But I can't find examples like this one or a reference to a custom; property can I create my own property to store in qml, then child controls (buttons, images) use this property to set their height?
Thanks in advance
You can do this kind of things. Sorry I don't have a reference of the GLib documentation:
import bb.cascades 1.0 Container { id: root property real height: Infinity Label { text: "My Label" preferredHeight: root.height } Container { background: Color.Red preferredHeight: root.height } }
It is obviously an artificial example, but it should help you get started.
Tags: BlackBerry Developers
Similar Questions
-
Hi all
DVM is exhausted for static look similar to that we can have a custom db table can one say y to go for DS?
Thank you and best regards,
RakesYou can use the functions of digital Voltmeter in the XSLT transformations. You can't do it with the DB adapter.
Marc
-
- I do not, ive turned up of each vol. control that I can find. Volume is still real low, evan with ear phones
Hi DorthyClark,
1. who is the operating system installed on the computer?
2 have you made changes to your computer recently?
3. do you get any error message related to the sound?
I suggest you follow the methods and check if it helps.
Method 1: Follow the link below and check if that helps.
http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows
Method 2: Download and install the latest audio drivers from the manufacturer.
-
I have windows 7 which is corrupt. How remove, uninstall Windows 7 so I can have a clean disk so I can install again? When I try now I get the message that it is already installed and does not go further.
Windows 7 came preloaded on your computer?
If so, try the following:
New computers coming often pre-installed with Windows 7 have what is called a recovery partition. This is used to reinstall an operating system in the case of a system failure. To access it, you need to start when you start your computer by pressing a function key. This can be either F1, F2, F9, F10, F11, F12 key DEL or tab. See the manual that came with your PC for instructions on how to reinstall Windows.
This is how the recovery partition is available for the most popular brands
For Dell, press CTRL + F11 directly after switching on the device
For HP, press F11 directly after switching on the device
For Toshiba, press and hold "0" BEFORE and during the power upward
For Acer, press and hold ALT + F10, as soon as you see the logo
For Asus, press F9, as soon as you see the Asus logo.
Advent, restart your computer. Then, press F10 repeatedly until the message "Starting system recovery"
-------------------------
If Windows 7 is not preinstalled on your computer.
Boot from the Windows 7 DVD
Click Install now
Accept the license agreement
When the option is displayed to select a type of installation, click (Custom advanced)Select the disk partition where you want to install Windows 7 click Next.
You will receive the following warning:
The partition you have selected may contain files from a previous Installation of Windows. If so, these files and folders will be moved to a folder named Windows.old. You will be able to access the information in Windows.old, but you will be able to use your previous version of Windows.
(At all costs, do NOT click on anything in Format, deletion or Partition name.) So even do a custom installation, your personal files are still kept. Click OK
The installation program will now begin installation. During installation, your computer will be restarted several times.
Once the installation is complete, you can complete the Out of Box experience as the choice of your laptop, create a username, password, your time zone. You can then proceed to download the latest updates for Windows and reinstall your applications and drivers.
You can then retrieve your personal files from the Windows.old folder and reinstall all of your applications and drivers.
-
Have not been able to install Adobe Indesign CC through creative cloud. Gives the following error of installation "unable to extract in the temp directory. Contact the Customer Support EX11". What can I do?
Thank you. The problem has been resolved. It seems that I didn't have full privileges under my user account. Once passed to admin, we were able to install it. Thanks for all the help.
-
Custom form control, limits the size of the box
I'm doing a custom form in Muse. I have added fields, each field has a bounding box a lot larger than the field itself. I added the bounding box for the form fields became massive, the height is now 5400 pixels high, make the web page from a height of ridicule. I have no access to the properties height and width of the form and the control of bounding box handles are disabled.
Any suggestions on how to control the size of the area bounding for forms and form fields?
Thank you, David
Please refer to the next with a similar query and a possible solution - thread http://forums.adobe.com/message/5098935#5098935
Thank you
Vinayak
-
Hi all. Plain I m new in Adobe Captivate. I m using Captivate 4 test (test program) to develop software training interactive (well, entire lessons) at the Poste where I work.
Now, the school people want to know if (in Captivate), we could use a customizable "refereed". "."
They want a box with the 'next' buttons, 'previous', 'exit', 'volume control', a progress with the current slide area and the total slides and a room for us to insert the text of the slide. They wanted that this "box" to stay in the right corner of the screen, giving more 'open space' to the screen for the content and the student. "
Well, I think it could be done in Flash, but my knowledge of Flash is a white 0.
So, if someone could help me find out (and further develop this), it will be very apreciated.
Thanks in advance and sorry for the mistakes of English (English is not my native language).
Hi again
Ideally, Yes. You need someone who knows how to program in Flash to create custom playback controls.
You can fudge things a little to not use a provided Captivate playback control and simply using images with boxes to click on them to run actions. But to get it right you really need someone who not only understand Flash well enough, but also includes Captivate too.
See you soon... Rick
-
My husband doesn't like the itunes account is under my name. I have a way that he can have his own name and sign on with her and still exist on the family account? Also, have we HAVE two-step verification? It's a real pain.
Yes it can have its own ID and share your content via the family sharing, he needs to sign out of your ID and to create his own, then one of you needs to invite another family sharing.
You don't need to use 2 verification step, if you want you can disable to my Apple ID
-
I have a new idea called (active safety) and would be happy if I can have apple as my sponsor because the idea is new and I have a great expectations most apple applications will be part of my idea. So who can help? who should I contact at apple?
Apple does not project sponsor, but you can contact Apple directly here > http://www.apple.com/contact/
-
my mac pro is backup in the capsule of time even when I was at work, which means that the time capsule is consumed my data plan. Can anyone suggest a way I can have it the backup only when my mac pro and time capsule is in the same local wifi
If the Time Capsule and MacBook Pros are not on the same network, the MacBook is not backup in the time Capsule. You probably see what snapshots leaving MacBook on the local disk, until the two are reconnected. If you don't want that to happen, disable Time Machine on a different network.
Good day.
-
I'm a software tester for an internal application to my company. version 10.0.2 is not cmopatible with a few controls within our software. I need the download v9.0.1 whatever works with the controls. Where can I get?
Well, if you need older versions of firefox you can find them on this site:
- http://www.oldapps.com/firefox.phpBest regards, G-Cloud.
-
Hello
I run FireFox (FF) for years and love. I'm running FF 3.6.18 am thought and upgrade to FF4. However, a friend upgraded to FF4 and I notice that the tabs for different pages are very high on the screen, away from the pages concerned, instead of just at the top of the page being displayed, where they are more easily found and used. Having the tabs at the top is really annoying and it is a change that should never have been done.
My question is this: is there a way to FF4 I can change this so I can have the tabs just above the pages, as in FF3.6.18?
Thank you very much
AlYes! Click the new tab button ("+") or a blank space after the last tab and uncheck tabs on top in the context menu.
If the tabs on top does not appear there, you can use the view menu:
Menu view > toolbars > uncheck tabs on top
If you have the Firefox orange (abbreviated menus) button, press the ALT key, or press F10 to display the classic menu bar to join the view menu.
(Oh, it will make more sense after you install Firefox 5 does it by looking at Firefox 3.6)
-
NT to get an e-bill from my 6s iphone more which is bought last Nov. Moreover, I can have printed invoice in apple store when I bought it. What should I do?
The only option you have is to contact the store where you bought it and see if they are able to provide one for you.
-
Although I like most of the new look, I would have thought that when I upgraded I would still have capabilities in FF4 I got in FF3. Guess it was a little too much to ask, but hey. I just bought a new laptop with a lot of features that FF4 allows me to use (I could in FF3). Until that FF4 allows me to use these features I want to downgrade to FF3, but it seems to have completely disappeared from the internet. If I can't go back to FF3, I'll have to stop using FF completely so I can have all the features of my new laptop. Nothing bothers me more to buy something new, love everything it can do, then get an update that which saw upward.
You can get Firefox 3.6.16 here:
http://www.Mozilla.com/en-us/Firefox/all-older.html
http://support.Mozilla.com/en-us/KB/installing+a+previous+version+of+Firefox -
Whenever I try to open a new tab in Safari, it closes in on my previous page. How should I do so that I can have several tabs open?
What version of OS/Safari do you use?
Try a reboot.
Make a backup using Time Machine or a cloning program, to ensure that data files can be recovered. Two backups are better than one.
Try to set up another admin user account to see if the same problem persists. If back to my Mac is enabled in system preferences, the guest account will not work. The intention is to see if it is specific to an account or a system wide problem. This account can be deleted later.
Isolate a problem by using a different user account
If the problem is still there, try to start safe mode using your usual account. Disconnect all devices except those necessary for the test. Shut down the computer and then put it up after a 10 second wait. Immediately after hearing the startup chime, hold down the SHIFT key and continue to hold it until the gray Apple icon and a progress bar appear. Startup is considerably slower than normal. This will reset some caches, forces a check for directory and disables all start-up and connection, among other things. When you restart normally, the initial restart may be slower than normal. If the system is operating normally, there may be 3rd party applications that pose a problem. Try to delete/disable the third-party applications after a reboot using the UN-Installer. For each disable/remove, you need to restart if you do them all at once.
Maybe you are looking for
-
How can I get rid of the boxes that appear when I visit a show that isn't in English?
I do a lot of browsing, but sites that go for the most part are in Japanese and instead to see the real kana I see just weird boxes... I downloaded the Japanese language pack, but it is not always fill them with the real... written language just boxe
-
Wrong BIOS in the support page for Satellite A300D
Hi allHalf an hour ago, I was searching a driver for my a300d and I found a new bios version 2.80 - win64 02/10/12latest version of the bios is 3.30 in 2009new versions are always with a greater number... and never after almost 3 yearsI'm not stupid
-
OfficeJet 4630 does not print on the network
My printer print is no longer on a network connection, a USB connection. For example, when I try printer in MS Word, the menu of the printer displays "Unable connect", even though I'm perfectly connected to my printer. I've had this printer for about
-
So I bought an Asus Rivo RT with Windows 8 RT and I didn't what lucky so ever in getting my company change to talk to the mail app in modern interface. Although I am able to set up my account to mail2web personal activesync in the application withou
-
How can I see file published evaluation of simulation results in a non - LMS?
How can I see file published evaluation of simulation results in a non - LMS?I created the demo, training and evaluation. I don't know how to get the results of the evaluation at the end of the assessment.