A
A
Alexey Menkov2013-01-20 13:34:18
Android
Alexey Menkov, 2013-01-20 13:34:18

With what tools to make a complex graphic project on Android?

Good day!

I have a desktop application that works with graphics. Roughly speaking, this application is a monitoring system for a certain tech. process (example) . Application written in Qt. The monitoring system displays information from a bunch of sensors, and each sensor is a separate object (or a separate widget, if in Qt terminology). The whole scene with elements is a QGraphicsScene, each element is a QGraphicsObject.

Now I'm faced with the task of porting the application to Android, and the problem is that I can't even figure out which toolkit to use for development. Those. I don't see how to port QGraphicsScene and QGraphicsObject abstraction to Android.

I quickly read a couple of books on Android, on Java (before that I worked only with pluses), I found two drawing methods - canvas, and OpenGL. This way I can implement the QGraphicsObject abstraction as a custom widget that will represent a specific sensor.
It remains then to deal with the QGraphicsScene abstraction. Here the difficulty lies in the following: for example, I need to place 2 sensors, the first one is at coordinates (0, 0), the second one is (1000, 1000). The user simultaneously sees a part of the scene, for example, 320x480 pixels. Those. only the first sensor is visible on the screen. To see the second sensor, the user needs to scroll the scene to the right and down.

What standard components can be used to implement this, or what even comes close to the functionality I described?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Terranz, 2013-01-20
@alekseymenkov

normal scrollview with relativeLayout
and you throw the necessary widgets on it at the right coordinates

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/w"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fillViewport="true" >

    <RelativeLayout
        android:id="@+id/RelativeLayout1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >
    </RelativeLayout>

</ScrollView>

C
ChernovDmitry, 2013-01-25
@ChernovDmitry

Have you tried writing under android on qt?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question