qtembedded

How to (properly) output multilingual text in Qt-Embedded?

狂风中的少年 提交于 2019-12-23 18:42:28
问题 My target system is: linux 3.3.7, Qt Embedded (open source edition) 4.8, Droid fonts (taken from fonts-droid_20111207+git-1_all.deb Debian package and copied into /usr/lib/fonts directory), Linux Framebuffer for main Qt GUI application, everything is build by Buildroot package. My test application is very simple: just one dialog box with a few static QLabel on it (one for Chinese, one for Arabic, one for Cyrillic, etc). When I run it on my linux desktop, all labels are shown correctly. But

Qt embedded screen rotation inside app

99封情书 提交于 2019-12-14 03:39:28
问题 In our target device, we run our QtE app with -qws argument. To rotate the screen, we specify "-display transformed:rot90" as the app argument and it works well. However, we have a feature to rotate screen inside the app, so we try below API documented in QScreen: QWSDisplay::setTransformation(QTransformedScreen::Rot90, 0); But this API doesn't work at all. It's no error message in the console output. Does anyone know what's going on about this API? Do we need to enable something else? 回答1:

How does windowing work in qt embedded?

限于喜欢 提交于 2019-12-12 10:01:47
问题 How does windowing work in qt embedded, where Qt is drawing directly to a framebuffer instead of through a separate windowing system? Can I run multiple programs at once? Do I get compositing and the little [x] button, maximizing and so forth? 回答1: You need to run one application as the server to provide window management facilities; for example, by passing the -qws option at the command line when you run it. Any other applications are run as clients. See this page for details: http://doc.qt

How to set QMainWindow as the modal one?

我与影子孤独终老i 提交于 2019-12-12 09:49:40
问题 I am using QMainWindow for GUI development of my project..One problem I am Stuck with is blocking all other visible windows from getting input, while one is in operation. I can not use QDialog.Because rich features of QMainWindow is required. How can I declare a particular window as modal? I tried with QWidget::setWindowMOdality() . Here is a demo program, what I tried but it didnt work. #include <QApplication> #include <QMainWindow> #include <QPushButton> int main(int argc, char **argv){

Qt android Can't listen to os intents ex.RECEIVE_BOOT_COMPLETED

痴心易碎 提交于 2019-12-12 03:45:03
问题 I have an android service that runs when i open my app, now I want my android service to run at boot time. I tried the bellow code, but the service is not running automatically when i reboot my device. I cannot see it running as a service on my phone! Is there something wrong in my code? I added these permissions to the manifest: <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <uses-permission android:name="android.permission.RECEIVE_HEADSET_PLUG"/> Here's my

How to set QMainWindow as the modal one?

我怕爱的太早我们不能终老 提交于 2019-12-05 19:35:57
I am using QMainWindow for GUI development of my project..One problem I am Stuck with is blocking all other visible windows from getting input, while one is in operation. I can not use QDialog.Because rich features of QMainWindow is required. How can I declare a particular window as modal? I tried with QWidget::setWindowMOdality() . Here is a demo program, what I tried but it didnt work. #include <QApplication> #include <QMainWindow> #include <QPushButton> int main(int argc, char **argv){ QApplication a(argc, argv); QMainWindow *w1 = new QMainWindow(); w1->resize(500,800); w1->move(100,50); w1

Qt embedded screen rotation inside app

杀马特。学长 韩版系。学妹 提交于 2019-12-01 00:45:46
In our target device, we run our QtE app with -qws argument. To rotate the screen, we specify "-display transformed:rot90" as the app argument and it works well. However, we have a feature to rotate screen inside the app, so we try below API documented in QScreen: QWSDisplay::setTransformation(QTransformedScreen::Rot90, 0); But this API doesn't work at all. It's no error message in the console output. Does anyone know what's going on about this API? Do we need to enable something else? Contrary to other qt documentation, documentation for the embedded part of qt is indeed poor. After few days

Qt Embedded for Linux. Keyboard layout switching

自闭症网瘾萝莉.ら 提交于 2019-11-29 11:28:30
I'm developing application with Qt Embedded and run it in linux framebuffer. I need a way to type non-US characters. Is it possible to change keyboard layout with Qt? I tried to run it on Qt/X11. Layout switching and input are perfectly fine there. But when I compile it with Qt/Embedded and run it in framebuffer I cannot change layout. I searched in the documentation and didn't find anything about layout switching. I think it has something to do with qt keyboard driver as specified at the documentation . It seems that I should develop my own keyboard driver. But I'm using standard keyboard and

Qt Embedded for Linux. Keyboard layout switching

邮差的信 提交于 2019-11-28 04:36:06
问题 I'm developing application with Qt Embedded and run it in linux framebuffer. I need a way to type non-US characters. Is it possible to change keyboard layout with Qt? I tried to run it on Qt/X11. Layout switching and input are perfectly fine there. But when I compile it with Qt/Embedded and run it in framebuffer I cannot change layout. I searched in the documentation and didn't find anything about layout switching. I think it has something to do with qt keyboard driver as specified at the