Pen tool in Flex/Flash Builder 4 - apache-flex

Is there any way drawing lines/curves in flex/fb4 -like pen tool?
Because it is not a practical method drawing with only <s:Line/>'s. Maybe an external tool which lets you draw and get the code for flex/fb4?
I want to draw something in IDE as a part of my application, my application is not going to be a drawing application.

Draw your interface in Illustrator. Run it through catalyst, and make a custom component. Or you can export flash components( swf's so no code ) from Illustrator directly IIRC.

Related

How to use OpenGL in QT Creator

I am working on OpenGL to create a GUI .I want to create some tabs which will help me to display different things in different windows. How is this possible using OpenGL? I read in some articles that we can use QT for that. Since I have already developed some of the GUI part in OpenGL using GLUT library ,is it possible to use the same code in QT? If so brief me how to make settings for OpenGL libraries in QT creator.
In my GUI I am trying to create a Car which is following a track.
I think you might be mixing some things up: OpenGL is a API with which you can instruct drivers to draw visual primitives, like lines, boxes, 3D triangles, pictures from buffer onto a render plane.
GLUT is a library that gives you a minimal environment around that, ie. it handles creating a window etc.
Neither of them are high-level UI description tools. Qt is really most likely what you want, as it will not only give you things like tab widgets etc, but also a feature-rich framework to do things like defining what should happen when you click a button, close a window etc.
There's a lot of examples of OpenGL usage within Qt widgets. In fact, a lot of visualization frontends use Qt and OpenGL. Qt has extensive documentation on how to generate OpenGL contextes and draw inside Qt applications.

Lib to display OpenGL video in PyQt?

I know that a classic way of displaying OpenGL elements inside (Py)Qt is to override the QGLWidget.paint() method to make direct OpenGL calls.
However, does anyone know of a lib I could use to avoid making direct calls to OpenGL? Something that would, for example, load an image or video frame to a textured triangle strip in a single call? Or any kind of OpenGl video lib that I could integrate with PyQt?
My final goal is to display OpenGL video inside a PyQt window.

Is there a control for displaying code branches in Qt?

I'm trying to display some kind of branches with Qt. How do I go about this? Will I have to draw it myself? Is there some control/thing that will do this for me?
(source: hades.name)
You will have to do it yourself, use QGraphicsScene and QGraphicsView.
To layout the graph, you may want to look at GraphViz - a graph visualisation tool.
You could just use the GraphViz algorithms for layout (using plain output) and then draw using the Qt libraries (QGraphicsScene / QGraphicsView like #cbamber85 recommended), or you could render a PNG from GraphViz and then display it.
You may want to look at KCacheGrind, as this is a Qt application that uses GraphViz for laying out call graphs.

Qt+OpenGl+SimpleGl

I have enabled qt+OpenGl+SimpleGl on one of the ARM platform and was able to run opengl example programs.
I also has a qt+Webkit, which is working with a graphic plugin.
I wanted to use simpleGl context for every thing, instead of using the normal graphic screen. So, when I try to run Qt+Webkit with simpleGl, I just get a blank screen.
Does QT support this? If so how can we make it?
Yes, this is correct. OpenGL draws directly to the framebuffer. The simplegl driver doesn't handle what is drawn using the raster paint engine of the QWS, so you may see only black.
Using simplegl for "everything" means you want everything to be drawn using OpenGL in your EGL full-screen window? This is possible under some assumptions. You have to write all your applications to be rendered using the Qt OpenGL paint engine (using the opengl graphics system is not supported under Qt/E). This is possible also for QtWebKit, I'm doing it now. Note that this does not mean that everything is rendered using hardware acceleration. You'll have to write your applications "the right way" to get all actually hardware accelerated. Consider that you'll have to handle the mouse pointer some other way in this case.
The other way is to just modify the simplegl driver to allow for the use of Qt applications using the raster paint engine. This is possible as well with some limitations. Qt can use blit to place its own windows over OpenGL. Look for the framebuffer driver inside the Qt source tree to know how to do this. You can then have common Qt applications and OpenGL Qt applications some way. I'm doing this as well. Not everything can be done anyway.
EDIT: I'm sure you already did, but in case, give this http://doc.qt.io/qt-4.8/qt-embeddedlinux-opengl.html much attention.
Unfortunately I don't know anything about SimpleGL, but I do know that there is a way to render a standard Qt widget in a QGLWidget. Maybe have a look at this Qt Quarterly which I think is somewhat related to your question:
http://doc.qt.nokia.com/qq/qq26-openglcanvas.html

Action Script 3 / Flex builder 3 : How to make a diagram

I want to make a diagram with either flash CS4 or flex builder 3, don't know with one would be the best for the job.
More about the task:
I want to send in values external to the swf file.
The swf-file takes the vaules and makes a diagram of it using x and y values.
Any advise or tips of where i can make this is much appreciated!
Thanks in advance!
jesper
if you're generating all of the visual information yourself then you don't need flash at all. you can generate a swf file from flexbuilder/flashbuilder (or even flashdevelop with the free flex sdk). flash cs4 itself is pretty much essential if you need to draw assets too (eg animations etc), but if you don't need that then don't bother spending the money. :)

Resources