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
  • [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
    874 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
    889 Views
    No one has replied
  • Cannot get Android app working in emulator

    1
    0 Votes
    1 Posts
    390 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
    428 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
    586 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 ! :)
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Communicate with Android Wear

    2
    0 Votes
    2 Posts
    795 Views
    SGaistS
    Hi, AFAIK, there's nothing yet but you can try asking on the android-development mailing list.
  • 0 Votes
    3 Posts
    1k Views
    T
    Thanks for the tip!
  • Is it possible to create OpenGL ES 2 context even when ES 3 is available?

    1
    0 Votes
    1 Posts
    596 Views
    No one has replied
  • Connecting to a wifi network

    4
    0 Votes
    4 Posts
    3k Views
    A
    Hello garyeholmes, How did your app turn out? I am also using QProcess to call a series of commands (namely, iw, iwlist, wpa_passphrase, wpa_supplicant, and udhcpc). I do have a different way of passing arguments to command lines though, for example: QStringList args; args << ui ->ifaceLine->text(); args << "scan"; scanProcess.setStandardOutputProcess(&grepProcess); scanProcess.start("iwlist", args); grepProcess.start("grep", QStringList() << "ESSID"); grepProcess.waitForFinished(); Whenever I call udhcpc, I get stuck at "Sending discover". I can't get past this message, so any info you learned can really help a long way. Thanks
  • A toolbar that looks like Android Action Bar

    5
    1 Votes
    5 Posts
    5k Views
    P
    s.frings74, thank you for sharing your project C++ code with the community. Not everyone who works with Qt mobile dev wants to jump on the Qt Quick bandwagon.