Skip to content

Mobile and Embedded

The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
14.1k Topics 62.6k Posts
  • 0 Votes
    11 Posts
    8k Views
    T
    I have the same problem, but my antivirus not at what. I have a "libqtforandroid.so" file in the "<qt_root>\Qt5_3_1\5.3\android_armv7\plugins\platforms\android" path.
  • [SOLVED] Qserialport in QT 5.3 running in Android !!!!

    25
    0 Votes
    25 Posts
    24k Views
    M
    Hello, Have you compiled Kernel? My best regards
  • QFileDialog widget usage on Android, unexpected UI

    3
    0 Votes
    3 Posts
    2k Views
    P
    That seems to be for QML only. What about C++ Widgets?
  • What is the meaning of Segmentation fault on xrdp?

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    EddyE
    This is a duplicate for "this post":http://qt-project.org/forums/viewthread/47342/ I'm closing this one. Please don't post the same question twice on the forum
  • QtSerialPort not building for qt 4.8.5 (Beaglebone Black)

    7
    0 Votes
    7 Posts
    3k Views
    SGaistS
    Building from the GIT repository 5.3 branch is now working for Qt 4
  • Qt 5.3.1 fails on Android

    5
    0 Votes
    5 Posts
    4k Views
    sierdzioS
    Before trying workarounds, I suggest checking out Qt 5.4 alpha version, or Qt 5.3.2 snapshot - a lot of issues have been fixed there (for example, screen orientation bug introduced in 5.3.1).
  • How to set compiler in Qt creator in Mac?

    Locked
    2
    0 Votes
    2 Posts
    669 Views
    SGaistS
    Hi, Please don't post the same thread in multiple sub forum. One is enough "Duplicate":http://qt-project.org/forums/viewthread/47310/ Closing this one
  • Setting and accessing custom files in android (C++/Qt)

    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    Not for your environment variable. Create the assets normally and then you can access them in Qt using this prefix. More about it "here":http://qt-project.org/doc/qt-5/platform-notes-android.html#assets-file-system
  • Qt and iOS - Whats the future?

    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    "Here":http://lists.qt-project.org/mailman/listinfo/interest you can find the mailing list, subscribe to it and then send your question
  • 0 Votes
    5 Posts
    7k Views
    E
    Thank your for your help. I am good now. I could not figure out what I was doing wrong so I started over and made a copy of the Qt Notifier example. I changed it to a QWidget app, added a button to call the java notify method and a little Qt icon magically appeared in the top task bar on my Nexus 7 tablet. Then I added a new static java int method and a second button to call it. When pressed a message box appeared with the expected return value of 3. All is good in JNI land. -Ed http://qt-project.org/doc/qt-5/qtandroidextras-notification-example.html @ void MainWindow::on_pushButton_clicked() { QString m_notification = "hello"; QAndroidJniObject javaNotification = QAndroidJniObject::fromString(m_notification); QAndroidJniObject::callStaticMethod<void>("org/qtproject/example/notification/NotificationClient", "notify", "(Ljava/lang/String;)V", javaNotification.object<jstring>()); } void MainWindow::on_pushButton_2_clicked() { jint result = QAndroidJniObject::callStaticMethod<jint>("org/qtproject/example/notification/NotificationClient", "return3"); QMessageBox::information(this, tr("Java Called"), tr("Result: %1.").arg(result)); } @ Java: @ public static int return3() { return 3; } @
  • [SOLVED] Qt on Android : Open an external file

    9
    0 Votes
    9 Posts
    12k Views
    E
    I agree that it was a permissions problem. I finally succeeded in opening a KML file in Google Earth without resorting to JNI. The KML file must be located in external storage where Google Earth can access it. @ // Saving KML file in QStandardPaths::DownloadLocation will work QString destinationFolder = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation); // The KML file must be opened from a folder accessible to Google Earth app // This will not work: /data/data/com.myccompany.myapp/ // This works........: /storage/emulated/0/Download/JOB-0001.kml // /storage/sdcard0/Download/JOB-0001.kml // // Android: QStandardPaths::DownloadLocation QUrl urlToLocalKmlFile = QUrl::fromLocalFile&#40;kmlFileNamePath&#41;; bool success = QDesktopServices::openUrl(urlToLocalKmlFile&#41;; if( success&#41; { return; } qCritical("openUrl failed?"); @
  • Pdf viewer using QDesktopServices

    25
    0 Votes
    25 Posts
    10k Views
    SGaistS
    Have a look at poppler
  • [SOLVED] Deploying to a headless Raspberry Pi

    9
    0 Votes
    9 Posts
    6k Views
    D
    Excellent, it works ! Thanks a lot.
  • 4.8.3 - Fonts rendering problem

    7
    0 Votes
    7 Posts
    2k Views
    F
    Hi, I'm using a 4.8.6 version on x86_64. In Qt for Embedded on QWS, I also had problems about ttf rendering for produce a clear text on a LCD. In detail: font hinting: in QFontEngineFT constructor, by default hinting is disabled and I dont't find a way to change default_hint_style property in my application to activate it on a single font. My hack is to apply a patch on Qt sources and change default_hint_style directly in the QFontEngineFT constructor putting my preferred hint_style value, but by this way I be good to apply the hint strategy to all fonts on my application and not on a single one. @ diff -Naur qt-everywhere-opensource-src-4.8.6_orig/src/gui/text/qfontengine_ft.cpp qt-everywhere-opensource-src-4.8.6/src/gui/text/qfontengine_ft.cpp --- qt-everywhere-opensource-src-4.8.6_orig/src/gui/text/qfontengine_ft.cpp 2014-09-09 16:25:54.055186643 +0200 +++ qt-everywhere-opensource-src-4.8.6/src/gui/text/qfontengine_ft.cpp 2014-09-09 16:13:44.055175077 +0200 -635,7 +635,7 antialias = true; freetype = 0; default_load_flags = FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH; default_hint_style = HintNone; default_hint_style = HintFull; subpixelType = Subpixel_None; lcdFilterType = 0; #if defined(FT_LCD_FILTER_H) @ Is there a way to make it in the application? antialiasing and ttf font cache: when output a text, Qt4e caches all rendered fonts to have it ready for the future. In Font cache are stored all single characters indexing by his characteristics (font name, size, style...), but qws not make difference about font with antialiasing and font without antialiasing. This means that if application activate antialising property on a text to print "Hello", Qt cache all "Hello" characters rendered with antialiasing. For the future use of the same character with the same font carachteristic, Qt will provide always this character to display with antialiasing. Is possible also to output a mixed string (any character with antialiasing and any other no). For example, after output antialiased "Hello", if I want to output another similar string like "Hero" but with no antialiasing, the result will be a mixed string with "He" displayed with cached antialising, "r" without antialiasing and "o" with cached antialiasing. I also see that font size 11pt and 12pt are exactly the same
  • 0 Votes
    2 Posts
    2k Views
    S
    I composed my own navigation bar with Widgets instead: http://stefanfrings.de/android_qt/index-en.html
  • Color formats don't match

    2
    0 Votes
    2 Posts
    866 Views
    SGaistS
    Hi, You are not giving enough information here. What exact version of Qt are you using ? On what platform ? What OS is it running ? etc...
  • Include SQLite file in .apk package

    4
    0 Votes
    4 Posts
    4k Views
    SGaistS
    I don't know if the assets virtual file system is usable with QSqlDatabase. In between, what you can do is copy your database file in your application reserved data folder using QStandardPaths::DataLocation
  • Select and execute the MIDI files displayed on QListWidget in Qt

    2
    0 Votes
    2 Posts
    950 Views
    SGaistS
    Hi and welcome to devnet, You can use QListWidget's currentItem method to retrieve the data you need to feed your QProcess. Hope it helps
  • Detect calls and headphone changes in Android

    1
    0 Votes
    1 Posts
    490 Views
    No one has replied
  • Need some help with serial port on Android

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied