Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.1k Topics 62.5k Posts
  • [Solved] How to enable QT_DEPRECATED in Qt 5.4.0 build

    qt5.4
    4
    0 Votes
    4 Posts
    3k Views
    SGaistS
    Add DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x040900 to your pro file and your should be good to go
  • A few questions about cross-compiling on Rapberry pi

    49
    0 Votes
    49 Posts
    13k Views
    SGaistS
    Did you run fsck on it ?
  • QT and mBaaS

    Locked mobile app deve mbaas
    3
    0 Votes
    3 Posts
    3k Views
    SGaistS
    Hi, Depending on your needs you could be interested by Qt Cloud Services
  • Errors Compiling and Using the Hangman QtPurchasing Example for iOS

    2
    0 Votes
    2 Posts
    448 Views
    SGaistS
    Hi and welcome to devnet, QtPurchasing is an Enterprise feature. You should rather contact The Qt Company directly using the Support Center from your Qt Account
  • Could i sell an Android App?

    5
    0 Votes
    5 Posts
    1k Views
    R
    @xmaze Would you request same arrangement if you were developing apps using Visual Studio, Android Studio or XCode? ;)
  • Facebook login

    facebook android qml
    2
    0 Votes
    2 Posts
    1k Views
    p3c0P
    Hi, May be you should check Facebook's API's and more specifically OAuth2.0 login. Check this.
  • [solved] opening file /proc/mounts works, file length 0

    3
    0 Votes
    3 Posts
    1k Views
    G
    Thanks for the clue bat, I know it's not a real file, but I wasn't thinking of the implications of that. I started out using a while loop with file.atEnd() as the terminal condition, but that won't work as you pointed out. I'll just have to read til I get a no more data return from readline() . Again, Thanks.
  • How to extract text, translate, and display

    android http translate qnetwork
    1
    0 Votes
    1 Posts
    834 Views
    No one has replied
  • [solved] Project ERROR: Unknown module(s) in QT: purchasing

    9
    0 Votes
    9 Posts
    2k Views
    SGaistS
    That kind of thing happens :) Happy coding !
  • Remote Debugging

    qstring gdb not accessible remote debuggin
    1
    0 Votes
    1 Posts
    862 Views
    No one has replied
  • Cannot get Android app working in emulator

    1
    0 Votes
    1 Posts
    376 Views
    No one has replied
  • 0 Votes
    7 Posts
    3k Views
    A
    @jalomic said: @a.toraby said: JavaVM * _jvm = 0; JNIEnv* _jniENV; qDebug() << "Attaching current thread"; _jvm->AttachCurrentThread(&_jniENV,NULL); As i see here _jvm - is a null pointer.. and you call method from null pointer Yes you are right. I solved it by using a QAndroidJniEnvironment: Here is the working code: class HelloWorldTask : public QRunnable { QAndroidJniEnvironment * _env; void run() { JNIEnv * jniEnv; JavaVM * jvm = _env->javaVM(); qDebug() << "Getting jni environment"; jvm->GetEnv(reinterpret_cast<void**>(&_env), JNI_VERSION_1_6); qDebug() << "Attaching current thread"; jvm->AttachCurrentThread(&jniEnv,NULL); qDebug() << "Creating byte array" ; jbyteArray jBuffer = jniEnv->NewByteArray(10); qDebug() << "byte array created" ; jvm->DetachCurrentThread(); } public: void setPointer(QAndroidJniEnvironment * p){ _env = p; } }; int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); HelloWorldTask * hello = new HelloWorldTask(); QAndroidJniEnvironment * env; hello->setPointer(env); // QThreadPool takes ownership and deletes 'hello' automatically QThreadPool::globalInstance()->start(hello); return a.exec(); }
  • How can I stop Qtcreator from overwriting my AndroidManifest.xml

    3
    0 Votes
    3 Posts
    2k Views
    L
    Thansk a lot. I don't know how many times I saw this "create templates" button and told myself "it can't be this one". So stupid! A.B.
  • Android QML The timer stops when the screen is locked.

    1
    1 Votes
    1 Posts
    423 Views
    No one has replied
  • 0 Votes
    3 Posts
    2k Views
    ?
    (But who knows what will happen when Windows 10 will be released..)
  • Window size adjustment on Smartphone (Xperia Z2)

    11
    0 Votes
    11 Posts
    3k Views
    SGaistS
    It think I may have understood your problem. You didn't put your separated widgets in a layout ?
  • [Resolved] Qt5 native build on RPi

    6
    1 Votes
    6 Posts
    2k Views
    X
    Thank you, everything is ok now :-D
  • Strange slider behavior

    2
    0 Votes
    2 Posts
    576 Views
    Flaming MoeF
    Ok, solved it my self. The stylesheet syntax was wrong. Actually i have little problems to figure out the mechanisms. This works: slider1->setGeometry(50, 370, 900, 140); slider1->setStyleSheet("QSlider::groove:horizontal{border: 20px solid #800040; height: 10px; background: red; margin: 90px 0} QSlider::handle:horizontal{background-color: green; border: 3px solid blue; width: 140px; border-radius: 3px; margin: -65px}");
  • Including/linking issue

    2
    0 Votes
    2 Posts
    2k Views
    SGaistS
    Hi and welcome to devnet, You should use LIBS += -lopencv_core \ -lopencv_XXX \ -lall_need_libraries here it's a lowercase L, uppercase L is more adding additional search paths for the linker and lowercase L is for telling the linker which lib it should use. From your errors in looks like you are not linking to the genicam libraries
  • Call function periodically (i.e. daily)

    Solved timer
    12
    0 Votes
    12 Posts
    7k Views
    SGaistS
    Nice ! @McLion Schöni Platz ! :)