'Programming/qt'에 해당되는 글 29건

  1. 2021.12.08 qt 변수 초기화 문법, cpp 초기화 리스트
  2. 2021.02.23 qt5 fb reset
  3. 2021.02.09 qt framebuffer에 출력하기
  4. 2015.02.24 qt - ts / qm
  5. 2015.01.21 qt 5.3 cross compile 조사
  6. 2015.01.20 qt 4.x/5.x INSTALL_PATH
  7. 2015.01.20 qt font path
  8. 2015.01.20 qt websocket support
  9. 2015.01.19 xquery / qt
  10. 2015.01.15 qt 4.8.5 neon / cross compile
Programming/qt2021. 12. 8. 16:52

cpp는 친하지 않아서 읽는법도 모르겠네 -_ㅠ

 

MainWindow::MainWindow(QWidget *parent) :  
    QMainWindow(parent),  
    ui(new Ui::MainWindow)  
{  
    ui->setupUi(this);  
}

[링크 : https://stackoverflow.com/questions/4847110/a-newbie-question-in-qt]

  [링크 : https://www.cprogramming.com/tutorial/initialization-lists-c++.html]

[링크 : https://cakel.tistory.com/entry/0031-GUI-프로그래밍-소개]

'Programming > qt' 카테고리의 다른 글

qt5 fb reset  (0) 2021.02.23
qt framebuffer에 출력하기  (0) 2021.02.09
qt - ts / qm  (0) 2015.02.24
qt 5.3 cross compile 조사  (0) 2015.01.21
qt 4.x/5.x INSTALL_PATH  (0) 2015.01.20
Posted by 구차니
Programming/qt2021. 2. 23. 13:56

, 인줄 알았는데 : 로 해주어야 하네

QT_QPA_PLATFORM=linuxfb:fb=/dev/fb1:nographicsmodeswitch ./qt_app

 

nographicsmodeswitch Specifies not to switch the virtual terminal to graphics mode (KD_GRAPHICS). Typically, enabling graphics mode disables the blinking cursor and screen blanking. However, when this parameter is set, those two features are also skipped.

[링크 : https://doc.qt.io/qt-5/embedded-linux.html]

 

export QWS_DISPLAY="<driver>[:<driver specific options>]...
          [:<display num>]"

[링크 : https://qt.developpez.com/doc/4.7/qt-embedded-displaymanagement/]

'Programming > qt' 카테고리의 다른 글

qt 변수 초기화 문법, cpp 초기화 리스트  (0) 2021.12.08
qt framebuffer에 출력하기  (0) 2021.02.09
qt - ts / qm  (0) 2015.02.24
qt 5.3 cross compile 조사  (0) 2015.01.21
qt 4.x/5.x INSTALL_PATH  (0) 2015.01.20
Posted by 구차니
Programming/qt2021. 2. 9. 20:12

qt 라이브러리를 빌드할때(프로그램 말고) 옵션을 넣어주면 된다고 하는데

그거 까진 모르겠고 QT_QPA_PLATFORM 변수를 이용해서 driver:path 식으로 설정하면 나온다.

 

export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb1

[링크 : http://jumpnowtek.com/rpi/pitft-displays-and-qt5.html]

[링크 : http://stackoverflow.com/questions/56601993/how-to-rotate-a-qt5-application-using-the-linux-framebuffer]

[링크 : http://doc.qt.io/archives/qt-5.6/embedded-linux.html]

[링크 : https://doc.qt.io/qt-5/embedded-linux.html]

'Programming > qt' 카테고리의 다른 글

qt 변수 초기화 문법, cpp 초기화 리스트  (0) 2021.12.08
qt5 fb reset  (0) 2021.02.23
qt - ts / qm  (0) 2015.02.24
qt 5.3 cross compile 조사  (0) 2015.01.21
qt 4.x/5.x INSTALL_PATH  (0) 2015.01.20
Posted by 구차니
Programming/qt2015. 2. 24. 18:04

qt에서 qml을 통해 다국어를 지원하는 방법


ts 파일은 qml에서 스캔해서 메시지 파일을 생성하고

qtcreator를 통해

ts를 qm 파일로 컴파일 한다.





웬지.. poedit에서 po를 mo로 바꾸는 기분이야...


[링크 : http://qt-project.org/doc/qt-4.8/linguist-manager.html]

[링크 : http://qt-project.org/doc/qt-4.8/linguist-translators.html]

[링크 : http://qt-project.org/doc/qt-4.8/linguist-hellotr.html]

'Programming > qt' 카테고리의 다른 글

qt5 fb reset  (0) 2021.02.23
qt framebuffer에 출력하기  (0) 2021.02.09
qt 5.3 cross compile 조사  (0) 2015.01.21
qt 4.x/5.x INSTALL_PATH  (0) 2015.01.20
qt font path  (0) 2015.01.20
Posted by 구차니
Programming/qt2015. 1. 21. 22:12

... 맨날 조사만 하네..


./configure -release -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=$TOOLCHAIN/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot $ROOTFS -prefix /usr/local/qt5


./configure -platform linux-clang

./configure -platform linux-g++

./configure -platform linux-g++-32


[링크 : http://doc.qt.io/qt-5/configure-options.html]


Embedded Platforms


You can develop with Qt for the following embedded platforms:


Embedded Android

Embedded Linux

Windows Embedded (Compact and Standard)

Real-Time Operating Systems, such as QNX, VxWorks and INTEGRITY


[링크 : http://doc.qt.io/qt-5/supported-platforms.html]


./configure -release -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=$TOOLCHAIN/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot $ROOTFS -prefix /usr/local/qt5


LinuxFB

This plugin writes directly to the framebuffer. Only software-rendered content is supported. Note that on some setups the display performance is expected to be limited.

The linuxfb plugin allows specifying additional settings by passing them in the QT_QPA_PLATFORM environment variable or -platform command-line option. For example, QT_QPA_PLATFORM=linuxfb:fb=/dev/fb1 specifies that the framebuffer device /dev/fb1 should be used instead of the default fb0. Multiple settings can be specfified by separating them with a colon.


Input

When no windowing system is present, the mouse, keyboard and touch input are read directly via evdev or using helper libraries like tslib. Note that this requires that devices nodes /dev/input/event* are readable by the user. eglfs has all the evdev input handling code built-in, while linuxfb relies on the traditional and somewhat limited -plugin command-line parameters.


Input on linuxfb

To enable keyboard, mouse, touch or tablet support with linuxfb, pass QT_QPA_GENERIC_PLUGINS=evdevkeyboard,evdevmouse,evdevtouch,... in the environment or, alternatively, -plugin evdevkeyboard, -plugin evdevmouse, -plugin evdevtouch, or -plugin evdevtablet on the command-line. Most of these can take a device node parameter, for example QT_QPA_GENERIC_PLUGINS=evdevmouse:/dev/event1, in case the Qt's automatic device discovery (based either on libudev or a walkthrough of /dev/input/event*) is not functional or misbehaving.


[링크 : http://doc.qt.io/qt-5/embedded-linux.html]


'Programming > qt' 카테고리의 다른 글

qt framebuffer에 출력하기  (0) 2021.02.09
qt - ts / qm  (0) 2015.02.24
qt 4.x/5.x INSTALL_PATH  (0) 2015.01.20
qt font path  (0) 2015.01.20
qt websocket support  (0) 2015.01.20
Posted by 구차니
Programming/qt2015. 1. 20. 10:42



Usually, to cross-compile autotools-based packages, one do:

./configure --prefix=/usr --host=arm-linux-gnueabi

make

make DESTDIR=/embedded/target install

make DESTDIR=/embedded/staging install


You typically install things twice because in /embedded/target you want

to have only the files useful for execution, completely stripped, while

in /embedded/staging you want to keep all debugging symbols to help in

debugging. /embedded/target goes in your target embedded system,

while /embedded/staging is kept on your development machine, and is

used to build more applications and to do remote debugging.


Within Qt5, this could be translated as:


./configure -prefix /usr -device <something>

make

make INSTALL_ROOT=/embedded/target install

make INSTALL_ROOT=/embedded/staging install


But Qt5 has host utilities, not only tools for the target. And instead

of having to build Qt twice, it nicely allows to do the build of host

tools and target libraries in just one build, which is really nice. So,

one typically does:


./configure -prefix /usr -hostprefix /embedded/host -device <something>

make

make INSTALL_ROOT=/embedded/target install

make INSTALL_ROOT=/embedded/staging install


Unfortunately, the INSTALL_ROOT does not only impact target libraries,

but also the host utilities. So they end up

in /embedded/target/embedded/host which obviously isn't correct.


For the moment, I am solving this by doing:


./configure -prefix /usr -hostprefix /embedded/host -sysroot /embedded/staging -device <something>

make

make install


[링크 : http://lists.qt-project.org/pipermail/interest/2013-January/005447.html] 


4.7 에서 hostprefix로는 안되었고

make INSTALL_ROOT install을 통해서 했다는 건데..

-hostprefix, but it doesn't work like I hoped. With "make install INSTALL_ROOT=..." it will install everything even the host tools under this install root


[링크 : http://www.qtcentre.org/.../30449-How-to-build-and-install-Qt-apps-on-cross-compiled-embedded-targets] 

'Programming > qt' 카테고리의 다른 글

qt - ts / qm  (0) 2015.02.24
qt 5.3 cross compile 조사  (0) 2015.01.21
qt font path  (0) 2015.01.20
qt websocket support  (0) 2015.01.20
xquery / qt  (0) 2015.01.19
Posted by 구차니
Programming/qt2015. 1. 20. 10:32

크로스 컴파일로 하는 바람에

prefix를 잘못 붙여서 QT에서 rootfs 경로 포함하여 찾는 바람에 헤매는데..

configure 옵션을 조금더 찾아 봐야 편하게 쓸 수 있을듯..



아무튼 환경변수는 QT_QWS_FONTDIR 로 정해줄수 있으며

:를 이용해 여러개의 디렉토리를 지정해 줄 수 는 없다.


export QT_QWS_FONTDIR=/usr/local/Qt/lib/fonts

[링크 : http://qt-project.org/forums/viewthread/30575]

'Programming > qt' 카테고리의 다른 글

qt 5.3 cross compile 조사  (0) 2015.01.21
qt 4.x/5.x INSTALL_PATH  (0) 2015.01.20
qt websocket support  (0) 2015.01.20
xquery / qt  (0) 2015.01.19
qt 4.8.5 neon / cross compile  (0) 2015.01.15
Posted by 구차니
Programming/qt2015. 1. 20. 09:10

2009년도에 추가 되어 있어서

4.8.5 버전에 흔적은 남아있는데 활성화 할 방법을 찾지 못해 쥐쥐..

[링크 : http://trac.webkit.org/changeset/46021]

[링크 : https://bugs.webkit.org/show_bug.cgi?id=27206]


릴리즈 노트에서는 Qt5.3 에서 web socket언급이 나온다.

[링크 : http://qt-project.org/qt5/qt53]

[링크 : http://blog.qt.digia.com/blog/2014/05/20/qt-5-3-released/]


websocket class 니까.. webkit 브라우저에는 상관없는건가?

[링크 : http://doc.qt.io/qt-5/qwebsocket.html]

'Programming > qt' 카테고리의 다른 글

qt 4.x/5.x INSTALL_PATH  (0) 2015.01.20
qt font path  (0) 2015.01.20
xquery / qt  (0) 2015.01.19
qt 4.8.5 neon / cross compile  (0) 2015.01.15
qt 4.8.5 neon 활성화 하기  (1) 2015.01.15
Posted by 구차니
Programming/qt2015. 1. 19. 22:41

xquery는 XML에 대해서 SQL 처럼

쿼리를 통해 원하는 데이터를 추출하는 방식으로 w3c에서 관리하는 기술이다.


[링크 : http://en.wikipedia.org/wiki/XQuery]

[링크 : http://www.w3.org/XML/Query/]

[링크 : http://www.w3schools.com/xquery/]


QT에서도 지원하는데.. SQL 문처럼 쿼리에 의존하다 보니

DoS 공격에 취약하고(과도한 쿼리를 처리하도록 한다거나)

SQL 처럼 코드 인젝션을 통해 의도하지 않은 공격을 당할수도 있으니 주의해야 한다고 한다.

[링크 : http://qt-project.org/doc/qt-4.8/xmlprocessing.html]

[링크 : http://qt-project.org/wiki/XQuery_Tutorials]

'Programming > qt' 카테고리의 다른 글

qt font path  (0) 2015.01.20
qt websocket support  (0) 2015.01.20
qt 4.8.5 neon / cross compile  (0) 2015.01.15
qt 4.8.5 neon 활성화 하기  (1) 2015.01.15
qt 5.4 cross compile 시도!!  (0) 2015.01.12
Posted by 구차니
Programming/qt2015. 1. 15. 15:10

qt-4.8.5


$ ./configure

Basic XLib functionality test failed!

$ sudo apt-get install libx11-dev libfreetype6-dev libavahi-gobject-dev libSM-dev libXrender-dev libfontconfig-dev libXext-dev


[링크 : http://qt-project.org/forums/viewthread/21953]




QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp 

QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE


[링크 : http://e2e.ti.com/support/embedded/linux/f/354/p/285868/998236]

2015/01/15 - [Programming/qt] - qt 4.8.5 neon 활성화 하기



----

2015.01.19

아래 문제는 오염되었거나 손상된 소스코드였기 때문임


QtGui 없다고 에러나면

arm-none-linux-gnueabi-gcc -c -include .pch/release-shared-emb-arm/QtGui -pipe -O3 -march=armv7-a -mfpu=neon -mfloat-abi=softfp -fvisibility=hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_USE_BUNDLED_LIBPNG -DPNG_NO_ASSEMBLER_CODE -DQT_NO_FONTCONFIG -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_GTK -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_HAVE_NEON -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/linux-arm-gnueabi-g++ -I. -I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtGui -I.rcc/release-shared-emb-arm -Iimage -I../3rdparty/libpng -I../3rdparty/zlib -I../3rdparty/zlib -I../3rdparty/freetype/builds/unix -I../3rdparty/freetype/src -I../3rdparty/freetype/include -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -I/home/interm/repos/6000pro/ICM/imx515/build/ltib/rootfs/usr/include -o .obj/release-shared-emb-arm/pixman-arm-neon-asm.o ../3rdparty/pixman/pixman-arm-neon-asm.S

cc1: error: .pch/release-shared-emb-arm/QtGui: No such file or directory

make[1]: *** [.obj/release-shared-emb-arm/pixman-arm-neon-asm.o] Error 1


QtGui는 -no-pch로 회피가능하나... 근본적인 해결책은 아님

-no-pch

[링크 : http://qt-project.org/forums/viewthread/26781]

[링크 : https://qt-project.org/forums/viewthread/24633]


컴파일시 어셈블리 오류가 날 경우

(armv7-a로 했으나 armv5 계열로 뜬금없이 특정 어셈블리 명렁어를 인식할수 없다고 나는 경우)

'Programming > qt' 카테고리의 다른 글

qt websocket support  (0) 2015.01.20
xquery / qt  (0) 2015.01.19
qt 4.8.5 neon 활성화 하기  (1) 2015.01.15
qt 5.4 cross compile 시도!!  (0) 2015.01.12
qt dom  (0) 2014.12.22
Posted by 구차니