Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.2k Topics 62.7k Posts
  • Create shared iOS & Android Library

    4
    0 Votes
    4 Posts
    2k Views
    raven-worxR
    no not really. It's more a matter of code design than compiler settings, etc. You can look at Qt implementations for some classes as a reference. Especially classes with system specific stuff.
  • Install apk on android

    4
    0 Votes
    4 Posts
    2k Views
    M
    Can you tell me which gcc version (project settings), android version and device you use?
  • [SOLVED] C++ variables don't show up when debugging in Qt 5.1.1

    4
    0 Votes
    4 Posts
    6k Views
    N
    For the full solution see here: https://bugreports.qt-project.org/browse/QTCREATORBUG-10205 _hjk added a comment - 24/Sep/13 3:32 PM You need a full build of creator from current 'master' branch to use this patch. If you want a simple workaround for your installed version, just remove the 'import submodules' _ Removing import submodules from gbridge.py fixed my issue
  • Could QT app run on Microsoft Surface Windows 8 Tablet (Windows 8 RT)

    7
    0 Votes
    7 Posts
    10k Views
    A
    There is already winrt branch in Qt's git repository... they are working on it... And if there will be no QtQuick - who cares??? Qt is C++ framwork in first place and QML is just new and still unstable and not matured part of it...
  • USB Mouse

    11
    0 Votes
    11 Posts
    7k Views
    SGaistS
    Hi, You should rather open a new thread with your question rather than dig old unrelated thread, you'll have more chance to have an answer.
  • Qt 4.8.4 QtWebkit doesn't load Javascript

    4
    0 Votes
    4 Posts
    3k Views
    A
    Hello, I have tried to execute this function: QVariant name = ui->myBrowser->page()->mainFrame()->evaluateJavaScript("function abc(){alert('This page has finished loading!');return 'he'} abc();"); qDebug() << "NAME: " << name.toString(); The result of NAME can be garbage of the buffer? NAME: "-1.45215999014136e-58" NAME: "-1.45215999014147e-58" NAME: "-1.45215999014158e-58" NAME: "-1.45215999014169e-58" NAME: "-1.45215999014179e-58" NAME: "-1.4521599901419e-58" NAME: "-1.45215999014201e-58" NAME: "-1.45215999014212e-58" NAME: "-1.45215999014222e-58" NAME: "-1.45215999014233e-58" NAME: "-1.45215999014244e-58" NAME: "-1.45215999014255e-58" NAME: "-1.45215999014265e-58" I am using QT 4.8.4 version, and with older versions I had not problems. Thanks.
  • [Solved] Compile qtdeclarative module from Qt5 development for iOS

    3
    0 Votes
    3 Posts
    2k Views
    C
    QtDeclarative is included in QtQuick1 in Qt5.2
  • Deploying a Qt!Quick example on an Android 4.0.3 device

    1
    0 Votes
    1 Posts
    875 Views
    No one has replied
  • Qt Creator build settings and make app for Android

    4
    0 Votes
    4 Posts
    1k Views
    S
    [quote author="Abbas Naghdi" date="1380012932"]Please give me the download link.[/quote] oh come on. google it!
  • 0 Votes
    5 Posts
    3k Views
    E
    Thanks a lot , AcerExtensa, It works~
  • What is the default QT IDE configuration options?

    2
    0 Votes
    2 Posts
    692 Views
    raven-worxR
    this is done by "qmake":http://qt-project.org/doc/qt-5.0/qtdoc/qmake-manual.html
  • [Solved]Support for japanese language in qt in an ARM environment

    3
    0 Votes
    3 Posts
    3k Views
    D
    Hi takumiasaki Thanks for your response I tried the same in my code .But i am getting output as rectangles(parallelogram).What might have went wrong?? I also have a doubt regarding the code snippet, text += QChar(0x3042); What is the significance of this...Plz help....
  • [SOLVED] LocalStorage not persisting across program sessions on Android

    2
    0 Votes
    2 Posts
    1k Views
    A
    Ah, never mind. It appears that whenever I press the Run button, since QtCreator is redeploying the app, it's also causing the app's data on the device to reset. Running up the app on the device without going via QtCreator results in the data persisting.
  • Qt application on BeagleBoard-xM iwth the use of angstrom

    2
    0 Votes
    2 Posts
    832 Views
    SGaistS
    Hi, Please don't post the same thread multiple times in different sub-forums. One is enough "Duplicate":http://qt-project.org/forums/viewthread/32820/
  • [SOLVED] Problem when compiling for Maemo 5

    5
    0 Votes
    5 Posts
    2k Views
    F
    The problem was in the qmake.conf I had to edit it for g++ and gcc
  • Rating indicator

    4
    0 Votes
    4 Posts
    2k Views
    M
    @ JKSH, @p3c0 Thanks guys for your replies I guess I will develop my Own QML indicator.
  • Permanent memory usage increase

    3
    0 Votes
    3 Posts
    3k Views
    D
    Thanks for the reply. No, there is no dynamic allocation neither in the paint() method nor any subsequent methods. One of the paint() methods look like: @void Entity::paint( QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget ) { if ( getCurrentFont( ) != NULL ) { painter->setFont( *getCurrentFont( ) ); } else { painter->setFont( *Document::getDefaultFont( ) ); } QPen pen = QPen( ); pen.setColor( *getFgColor( ) ); setLineStyleAndWidth( &pen ); painter->setPen( pen ); painter->setBrush( currentBrush ); if ( staticPath != NULL ) { painter->drawPath( *staticPath ); } if ( currentPath != NULL ) { pen.setStyle( Qt::SolidLine ); if ( drawStateBold ) { pen.setWidth( getLineWidth( ) * 2 ); painter->setPen( pen ); } painter->drawPath( *currentPath ); } paintHandle( painter ); if ( drawQuestionmark ) { // A kérdőjelet forgatástól függetlenül kell rajzolni QFont fnt = painter->font( ); fnt.setPixelSize( ( boundingRect( ).height( ) - 2.5 * mm2px ) * originalScale.y( ) ); painter->setFont( fnt ); QTransform save = painter->transform( ); painter->setTransform( QTransform( ) ); painter->drawText( save.mapRect( boundingRect( ) ), Qt::AlignCenter, "?" ); painter->setTransform( save ); } }@ The boundingRect() methods also do not allocate memory from the heap: @QRectF TextBox::boundingRect( ) const { return QRectF( -0.5 * getLineWidth( ), -0.5 * getLineWidth( ), width + getLineWidth( ) * 0.5, height + getLineWidth( ) * 0.5 ); }@ Other methods called from these two are also already checked.
  • Android and QtQuick.Controls 1.0

    2
    0 Votes
    2 Posts
    1k Views
    V
    This is the "file":https://qt.gitorious.org/qt-labs/qt5-everywhere-demo/source/9a868f96ee63c21ceda890d8dfc9d33f093d1b6d:QtDemo/qml/QtDemo/demos/touchgallery/main.qml I'm talking about. It doesn't work on my computer but it does on my android device
  • [solved]Qt5 Android Plugin on Mac OS X 10.8

    4
    0 Votes
    4 Posts
    2k Views
    L
    Yes worked, and compile and run Android Apps written with Qt! It is still far from being usable (Missing WebKit or any Web-Engine, Deployment could be optimized ,debugging process crashes ... ). I would not use it (yet) for creating Android Apps, but it's super for targeting multiple platforms. Lets see what Qt 5.2 !
  • 0 Votes
    6 Posts
    3k Views
    L
    OK, after some playing around, I think I got it, but now it crashes with the following output: @E/AndroidRuntime(27949): FATAL EXCEPTION: Thread-14 E/AndroidRuntime(27949): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=assets:/qml/DesignForAndroid/Papers/170.pdf } E/AndroidRuntime(27949): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1535) E/AndroidRuntime(27949): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1387) E/AndroidRuntime(27949): at android.app.Activity.startActivityForResult(Activity.java:3150) E/AndroidRuntime(27949): at android.app.Activity.startActivity(Activity.java:3256) E/AndroidRuntime(27949): at org.qtproject.qt5.android.QtNative.openURL(QtNative.java:115) E/AndroidRuntime(27949): at dalvik.system.NativeStart.run(Native Method)@ My intention was to use the assets system (check above) to open the PDF files with Adobe Reader. I'm using the QDesktopServices::openURL() to open the file and this works if I use an absolute path (/mnt/sdcard/DCIM/Papers/170.pdf) but not if I use the relative one (assets:/qml/DesignForAndroid/Papers/170.pdf). Here's the code I'm using: @bool ExternalFileStarter::openFile(QString fileName) { return QDesktopServices::openUrl(QUrl::fromLocalFile(fileName)); }@ I have noticed that when I try to search for files stored as assets on the Android device, they will not be found so I'm assuming that assets are something like qrc. That would explain why the asset files won't open (and the fact that fromLocalFile() adds a "file://"). So I'm back on square one, trying to figure out where does the application get stored on the Android device. I can't find it for the life of me, and using applicationFilePath() will return the file "app_process" which I assume is Android's and not my executable or rather, "app_process" runs the app. I've tried checking out the .pri file but I have no idea what's going on there and since the QML files also get stored as assets, they aren't much help. Thinking about it further, it could be that there is no way to get a relative path in the first place. What I mean is, I can't get the location of the package from Qt, and I think that where the package gets put differs from device to device. Am I wrong or is there a way for me to get a relative path? If not, would it be possible to use qrc and then extract the files relative to the package? Any help would be most appreciated.