Custom designed control

Is there an example on how to create a custom control drawn? I found nothing.

The only thing I could find was on creating custom components QML which are really just composit controls with no custom drawing. It is located here

Need us a drawn custom control. I could not find any property of the class "CustomControl" that would allow me to draw directly on the surface of the control.

Normally - you can draw using various drawing functions, put the pieces of images, fill areas etc...

Is this possible and if so - what someone have more information?

Thank you.

It seems that there is a way to do this after all. It is a bit complicated and not documented, but it can be done.

In short - we can lets paint everything using the QImage QPainter and then use the QImage to create the Image that can be used for example in ImageView.

QImage is not on the list of classes in the section of Qt stunts, but I found the following post which started me in the right direction.

http://supportforums.BlackBerry.com/T5/Cascades-development-knowledge/using-Qimage-and-qpainter-to-P...

You cannot use the sample above that he is, however. The code example has been removed from the GitHub. The reason is mostl ikely class PixelBufferData, which has been removed in the latest version.

You can use the new ImageData class however. I tested it and could do what I wanted to use QPainter.

An example on how to get the ImageData of QImage is help for the ImageData found here class

It is GREAT - especially for people like me who are coming from the world of Qt with the ability to use QImage and other Qt classes. I think that stunts for Qt support should be as broad as possible. I would have preferred Qt Creator instead of the eclipse in the ide in first class for the cascades, but that's a topic for another day...

I hope this helps someone the similar problem.

If this post you - help please like him. If she answered your question - please accept as solution - thanks.

Tags: BlackBerry Developers

Similar Questions

  • iPhoto photo personalized box resizing / and fully customized design

    Custom how to change picture size on a photo page of book i, and y at - it a fully custom design option?

    What version of iPhoto and system are you running?

    Also what are you wanting to change, the size of the image or the size of the image on the page of the book?

  • Error in custom design rules: importClass is undefined

    Hello world

    I have a problem with the rules of custom design of data model 4.1 (Beta).

    in the 4.0.3 version I have some rules to design personalized with the option: importClass (javax.swing.JOptionPane);

    for the error exception and MessageBox databases.

    -in the 4.0.3 version this option works very well

    -in version 4.1, this option generates an error

    If this option is changed in Version 4.1? or where is the error?

    Thanks for any idea, suggestion...

    Martin

    I found the solution!

    in the 4.0.3 version the Data Modeler used Mozilla Rhino as engine and version 4.1 Oracle Nashorn.

    If you need to load the 4.1 version compatibility script to use the feature of ImportClass.

    Example:

    Load compatibility script

    Load("Nashorn:mozilla_compat.js");

    Import Java class der

    importClass (javax.swing.JOptionPane);

  • to access custom designs

    I lost access to custom designs as the drop 'fill' reveals that an empty rectangle. no idea how I can get it back?

    To have access to other models click where point the arrow in the Middle above.

    If this is not available, aA next logical step would be to reset your preferences.

    To reset the preferences:

    If Photoshop is already open on your screen, close (Quit). Then press and hold Shift + Ctrl + Alt (Win) / command + shift + Option (Mac) on your keyboard and start Photoshop.

    A dialog box appears asking if you want to delete the preferences file existing ("settings"). Click Yes in the dialog box. The existing preferences file will be discarded and a new one will be created.

  • Customized playback controls

    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

  • Custom design templates

    Our designers are trying to find a way to offer a kind of model (ideally designed in InDesign) to basic users allowing them to add a text custom in some areas and maybe insert an image of their own.

    Basically want it a type of fly to shutter of experience were they design and control the base part can distribute outside and have ad-hoc users edit and customize certain elements and print to place there.

    Our design team is intended to keep the elements of decors on locked room and only rental users to change a few things.  Our first idea was to use a PDF from but some challenges with which the police (a custom purchased) are made uniform throughout the document and allowing users or choose some photos together or inserting it possess all while only have access to adobe reader, upgrade from adobe pro would not be out of the question if we could make it work.

    Has anyone tried something like this before and solved (with or without an adobe product)?

    Thank you

    Eric

    What should you do? If you are talking about a solution of business size (and the budget to support), a service like PrintUI.com (a former employer of mine) would be ideal, but it's expensive for an exceptional situation.

  • Problem of Simulation collector design & control

    I try to work on a collector in the simulation loop control & design but I found that there is a problem

    1. the data that I collect takes horizontal form, how to change the data of horizontal to vertical?

    2. the data that I collect does not move to the actual speed, has collected data in the wrong thread? Please correct me if I got hurt.

    Thank you very much

    Yuki

    For the rotation of the table, you must use the function "Convert 2D table" to the title of programming > table Palette.

    For the second question, I don't know what you're saying. What do you mean when you say "don't move to the actual speed? Do not control? Narrowly on measurement error? Delay?

    Think it is important to check to see if you have the engine as "Runga Kutta 1 (RK1)" since you are trying to control the real system.

  • The Custom Toolbar control ring question

    Hello.  It is probably a stupid question, but how do I add items to a ring (kRing) toolbar item when you use the toolbar Custom Control (toolbar.fp) in CVI 2010?  Thank you.

    You can add your items first, get the ID of the control to the item toolbar via the functions Toolbar_GetCtrlFromIndex or Toolbar_GetCtrlFromDescription, then using InsertListItem to add your items to the ring.

    Luis

  • custom clock control

    Hi all, I am trying to create a custom control that looks like a timer that counts up to - type. Basically I want a circular face, like clockwork, which begins to vacuum, and scans with a single color in a clockwise direction until all 360deg of the circle are full. So I started playing with the scale adjustment - removed wheel and needle and using the ramp function that I play with knots of property to sweep the zero width ramp rotated 360 degrees. This gives exactly what I want... almost.

    Please take a look at the attached example (in V8.0, 8.2 LV & 8.5.1). Is there a graphics issue. As the color sweeps around, it is the outside RADIUS seems to derive from the real. If left for long enough, this outer radius can reduce about half of what it should be to begin with! There is no control over this RADIUS, it is defined by the interaction of the mouse with the control at the time of publishing, so there is no way to restore its value during execution!

    If anyone has any ideas, please help me! This control is not as clean I want to anyway, so if anyone knows a better way would be great!

    Here's a rough draft...

  • 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.

  • Can add you value labels to the columns in a chart (without a custom design)?

    Is it possible to add the values for the columns in a chart to column itself without creating a custom for this column design? In this example, I represented the values in red I want will automatically appear in the data set.

    sample-column-labels.jpg

    FYI - in tutorial Lynda, Morty Golding shows a hack to do this, but it requires the creation of a custom column design. I wonder if there is a way to do it with just the default column design. Thank you!

    You need a custom column design to do this.

  • How to specify a custom design rule?

    I want to have a design rule to find the names of table > 27. The supplied rule is with a length of 30. Seems like it should be pretty easy to do if I could copy the current rule and modify, but I can't seem to find a way to even see the code for the current rule.

    Thank you.

    Hello Kent,

    These rules are build-in before support for custom rules has been added, and you do not see the code. There is a custom rule example provided with the tool and I posted some rules associated with the physical model here in the forum.
    Here are two examples:
    (1) without the function definition

    if(table.getName().length()>27){
     false;
    }else{
     true;
    }
    

    you see there is no return statement, the last expression is taken as the return value, and this might be confusing
    (2) with a function definition

    /define
    function checkName(table){
     if(table.getName().length()>27){
      return false;
     }else{
      return true;
     }
    }
    //invoke it
    checkName(table);
    

    The rule should be created for the Table object and motor set to "Mozilla Rhino.

    Philippe

  • 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

  • Custom Design Premium Setup

    I have CS4 Design Premium installed and it works perfectly. However, I only need one or two of the programs and

    on another Adobe forum, it was suggested that it would be possible to Design custom installation. I haven't noticed this option on the original installation

    so can I get confirmation that it's a go or a no go. Thank you very much

    It is a forum on the design, not the rest of the design. Yes, you can do a custom installation choice that you want to install. If installed you can choose to delete some applications. If you need more help ask in the forums Creative Suites.

  • Error, "Page failed to Load", while customizing the control panel.

    Hello

    I recently inherited a second hand dell tower which has Windows 7.

    Everything seems to have set up ok but when I go into control panel customization, I get the message "Page failed to Load".

    After having sniffed around, it seems that the Control Panel does not use a program that the computer recognizes.

    I went through various forums for the answer, but nothing helped.

    Any suggestions?

    Hello

    Thank you for the update. It is unfortunate to know that you still experience this issue.

    As you are facing the issue in the safe mode, as well as in the new user account, it seems that there is corruption of system files that cannot be replaced by the new file system. But, you can also try to check your hard disk for errors of the last step. Read the following article.

    Check your hard drive to find errors in Windows 7

    http://support.Microsoft.com/kb/2641432/en-us

    Warning: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

    Please, try the steps above and update with the State.

    Thanks again for we keep posted!

Maybe you are looking for

  • Can I use the Photo and the old iPhoto?

    I Yosemite and disliked the new Photo, so to return the former iPhoto.  It works fine, but I want to learn how to use the new Photo.  I'm afraid to open the Photo.  It will load iPhoto and delete my iPhoto?

  • SIM card problems

    Okay so a few hours ago, I picked up my phone and the sim card had just "disassembled" itself, I guess you could say. On the lock screen, it said I had no mobile network connected, I couldn't call someone or text message to anyone. Then at 10 minutes

  • string to array OR array to string

    Hey all,. I'm stuck and the positions that I have sought do not seem to answer my question... I have several tables 1 d that I'm running into a function table build and try to put several tables of channels before that data in a file, but I can't get

  • HP w2338h HDMI seems washed out compared to VGA.

    The w2338h myHP when using HDMI, the colors look washed out and show levels of black poor compared to the use of VGA.

  • Problem loading in outlook express after changing Internet service providers.

    I have recently switch from Verizon to Comcast internet providers.  Since I had problems loading in outlook express.  One in a blue moon, it will actually connect, but more often than not, it does nothing.  It loads in the taskbar upwards and the tit