참고 사이트 :  https://doc.qt.io/qt-5/signalsandslots.html

 

 

Signals & Slots | Qt Core 5.13.1

Signals & Slots Signals and slots are used for communication between objects. The signals and slots mechanism is a central feature of Qt and probably the part that differs most from the features provided by other frameworks. Signals and slots are made poss

doc.qt.io

 

signal is delivered to a slot immediately or queued for delivery at a later time.

 

시그널과 슬롯은 objects 사이의 커뮤니케이션을 위하여 사용된다. 

Signals and slots are made possible by Qt's meta-object system.

 

The Meta-Object System | Qt Core 5.13.1

The Meta-Object System Qt's meta-object system provides the signals and slots mechanism for inter-object communication, run-time type information, and the dynamic property system. The meta-object system is based on three things: The QObject class provides

doc.qt.io

소개 

Other toolkits achieve this kind of communication using callbacks. A callback is a pointer to a function, so if you want a processing function to notify you about some event you pass a pointer to another function (the callback) to the processing function. The processing function then calls the callback when appropriate. While successful frameworks using this method do exist, callbacks can be unintuitive and may suffer from problems in ensuring the type-correctness of callback arguments.

 

Signals and Slots

https://doc.qt.io/qt-5/signalsandslots.html picture-1

 

 

 

Qt::Connection Type

 

1. Qt::AutoConnection (Default) 0

(Default) If the receiver lives in the thread that emits the signal, Qt::DirectConnection is used. Otherwise, Qt::QueuedConnection is used. The connection type is determined when the signal is emitted.

 

수신자가 신호를 전달하는 스레드에 있으면 Qt::DirectConnection 을 사용.

그렇지 않으면 Qt :: QueuedConnection 연결 유형은 시그널을 emmited 될 때 결정한다.

 

2. Qt::DirectConnection

The slot is invoked immediately when the signal is emitted. The slot is executed in the signalling thread.

시그널이 emmited 되면 즉시 슬롯이 호출된다. 슬롯은 시그널링 슫레드에서 실행된다.

 

3. Qt::QueuedConnection

The slot is invoked when control returns to the event loop of the receiver's thread. The slot is executed in the receiver's thread.

제어가 수신자 스레드의 이벤트 루프로 리턴 될 때 슬롯이 호출된다. 슬롯은 수신기의 스레드에서 실행된다.

 

4. Qt::BlockingQueuedConnection

Same as Qt::QueuedConnection, except that the signalling thread blocks until the slot returns. This connection must not be used if the receiver lives in the signalling thread, or else the application will deadlock.

슬롯이 리턴될 때까지 신호스레드가 차단된다는 점을 제외하고  Qt::QueuedConnection과 동일하다. 수신기가 신호 스레드에 있는 경우 연결을 사용하지 않아야된다. 그렇지 않으면 Application이 교착 상태가 된다.

 

5. Qt::UniqueConnection

This is a flag that can be combined with any one of the above connection types, using a bitwise OR. When Qt::UniqueConnection is set, QObject::connect() will fail if the connection already exists (i.e. if the same signal is already connected to the same slot for the same pair of objects). This flag was introduced in Qt 4.6.

 

비트 단위 OR 을 사용하여 위의 연결 유형 중 하나와 결합 할 수 있는 플래그 이다. 

Qt::UniqueCOnnection 이 설정되면 연결이 이미지 존재하는 경우 ( 즉, 동일한 신호가 동일한 객체 쌍의 동일한 슬롯에 이미 연결된 경우)

QObject::connect() 가 실패한다. 이 플래그는 Qt 4.6에서 도입되었다.

 

 

 

signalling thread?

receiver's thread?

 

 

 

'Qt > 활용' 카테고리의 다른 글

라즈베리파이4 구매  (0) 2019.07.01
특정 폴더 제외하고 검색하기  (0) 2019.07.01
[Qt] printf("05d")  (0) 2019.01.04
[Ubuntu16.04] 한글설정하기  (0) 2018.12.21
[Linux] Monitoring Qt  (0) 2018.12.14

https://www.aliexpress.com/item/33050010815.html?spm=a2g0o.cart.0.0.18c73c003RfR6Q

 

US $52.9 |Latest Raspberry Pi 4 Model B with 1/2/4GB RAM BCM2711 Quad core Cortex A72 ARM v8 1.5GHz Support 2.4/5.0 GHz WIFI Blu

Smarter Shopping, Better Living! Aliexpress.com

www.aliexpress.com

 

'Qt > 활용' 카테고리의 다른 글

[Qt] Connect  (0) 2019.10.15
특정 폴더 제외하고 검색하기  (0) 2019.07.01
[Qt] printf("05d")  (0) 2019.01.04
[Ubuntu16.04] 한글설정하기  (0) 2018.12.21
[Linux] Monitoring Qt  (0) 2018.12.14

https://yangyag.tistory.com/78

 

tar로 파일 묶을시 특정 폴더 제외 하는 방법

--exclude 옵션을 붙여주면 된다. tar [옵션] [압축할 파일 명] [제외할 특정 폴더] [압축할 파일 또는 디렉토리] 예를 들어 tar cvf abc.tar.gz --exclude=logs * 라고 하면 logs 라는 폴더만 제외한 모든 파일..

yangyag.tistory.com

 

 

tar로 파일 묶을시 특정 폴더 제외 하는 방법

--exclude 옵션을 붙여주면 된다. tar [옵션] [압축할 파일 명] [제외할 특정 폴더] [압축할 파일 또는 디렉토리] 예를 들어 tar cvf abc.tar.gz --exclude=logs * 라고 하면 logs 라는 폴더만 제외한 모든 파일..

yangyag.tistory.com

 

http://hoonkyu.blogspot.com/2012/05/find-exclude.html

 

find명령에서 특정 디렉토리 제외하고 찾기(exclude)

출처 :  http://coffeenix.net/board_view.php?bd_code=1678 제  목 : find명령에서 특정 디렉토리 제외하고 찾기(exclude) 작성자 : 좋은진호(truefeel,  http://coffeenix.net...

hoonkyu.blogspot.com

 

/

find . ! \( -path './foo/bar' -prune \) -name "qt5*"

find . ! \( -path './gdp-src-build' -prune \) -name "qt5*"

 

 find . ! \( \( -path './gdp-src-build' -o -path './coffeenix/temp' \) -prune \) -name "*.bak"

 

meta-qt5

 

./meta-genivi-dev/meta-qt5/recipes-qt/qt5

 cd ./meta-genivi-dev/meta-qt5/recipes-qt/qt5

 

 

 

'Qt > 활용' 카테고리의 다른 글

[Qt] Connect  (0) 2019.10.15
라즈베리파이4 구매  (0) 2019.07.01
[Qt] printf("05d")  (0) 2019.01.04
[Ubuntu16.04] 한글설정하기  (0) 2018.12.21
[Linux] Monitoring Qt  (0) 2018.12.14

QString 을 이용하여 문자열 합치기


숫자앞에 0채우기


int number= 11;

QString string;

string = QString::number(number).rightJustified(5,'0');



결과 00011 

'Qt > 활용' 카테고리의 다른 글

[Qt] Connect  (0) 2019.10.15
라즈베리파이4 구매  (0) 2019.07.01
특정 폴더 제외하고 검색하기  (0) 2019.07.01
[Ubuntu16.04] 한글설정하기  (0) 2018.12.21
[Linux] Monitoring Qt  (0) 2018.12.14


한글설정 다운로드

$ sudo apt-get install fcitx-hangul


우분투 설정창에서 언어 선택 Setting->Language Support

$ gnome-language-selector 

Keyboard input method system : fcitx 설정


확인완료후


Settings Keyboard -> Aplication Shortcuts 설정



나는 Shift + Scpace 사용


cd ($Qt 설치경로)/Tools/QtCreator/lib/Qt/plugins/platforminputcontexts

 ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so  libfcitxplatforminputcontextplugin.so


링크파일 생성



'Qt > 활용' 카테고리의 다른 글

[Qt] Connect  (0) 2019.10.15
라즈베리파이4 구매  (0) 2019.07.01
특정 폴더 제외하고 검색하기  (0) 2019.07.01
[Qt] printf("05d")  (0) 2019.01.04
[Linux] Monitoring Qt  (0) 2018.12.14


참고자료 : https://hashcode.co.kr/questions/290/%ED%94%84%EB%A1%9C%EC%84%B8%EC%8A%A4-%EC%95%88%EC%97%90%EC%84%9C-cpu-memory-%EC%86%8C%EB%B9%84%EB%9F%89-%EC%95%8C%EC%95%84%EB%82%B4%EB%8A%94-%EB%B2%95


fscanf

'Qt > 활용' 카테고리의 다른 글

[Qt] Connect  (0) 2019.10.15
라즈베리파이4 구매  (0) 2019.07.01
특정 폴더 제외하고 검색하기  (0) 2019.07.01
[Qt] printf("05d")  (0) 2019.01.04
[Ubuntu16.04] 한글설정하기  (0) 2018.12.21

+ Recent posts