'잡동사니'에 해당되는 글 14208건

  1. 2026.03.30 qt concurrent / qt thread
  2. 2026.03.30 Qtimer를 이용한 반복/1회성 이벤트 생성
  3. 2026.03.30 qt6 시그널
  4. 2026.03.29 앉아보기
  5. 2026.03.28 잠 + 밥 + 화장실 반복
  6. 2026.03.27 퇴원 4
  7. 2026.03.26 입원
  8. 2026.03.25 입원 수술
  9. 2026.03.24 아파
  10. 2026.03.24 intel hex 포맷
Programming/qt2026. 3. 30. 11:58

이벤트 처리

[링크 : https://flower0.tistory.com/296]

[링크 : https://coding-chobo.tistory.com/34]

 

 

qt thread / worker

[링크 : https://jheaon.tistory.com/entry/QThread을-사용하여-작업-단위-분리하기]

[링크 : https://doc.qt.io/qt-6/qthread.html]

 

qt concurrent (비동기 수행)

[링크 : https://khj1999.tistory.com/229]

 

Qt Concurrent
Qt Concurrent 모듈은 뮤텍스, 읽기-쓰기 잠금, 대기 조건 또는 세마포어와 같은 저수준 스레딩 프리미티브를 사용하지 않고도 멀티스레드 프로그램을 작성할 수 있는 고수준 API를 제공합니다. Qt Concurrent 으로 작성된 프로그램은 사용 가능한 프로세서 코어 수에 따라 사용되는 스레드 수를 자동으로 조정합니다. 즉, 오늘 작성된 애플리케이션은 향후 멀티코어 시스템에 배포할 때 계속 확장할 수 있습니다.

Qt Concurrent 에는 공유 메모리(비분산) 시스템을 위한 MapReduce 및 FilterReduce 구현과 GUI 애플리케이션에서 비동기 계산을 관리하기 위한 클래스 등 병렬 목록 처리를 위한 함수형 프로그래밍 스타일 API가 포함되어 있습니다:

[링크 : https://doc.qt.io/qt-6/ko/qtconcurrent-index.html]

 

[링크 : https://blog.naver.com/kkyy3402/221332058583]

[링크 : https://truelightn.tistory.com/8]

[링크 : https://1d1cblog.tistory.com/514]

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

qt widget fullscreen  (0) 2026.03.31
qt media 재생하기  (0) 2026.03.31
Qtimer를 이용한 반복/1회성 이벤트 생성  (0) 2026.03.30
qt6 시그널  (0) 2026.03.30
QLCDNumber class  (0) 2026.03.23
Posted by 구차니
Programming/qt2026. 3. 30. 11:30

결국은 슬롯에다가 시그널 보내는데

 Qtimer::singleShot() 이 있어서 단회성으로 발생이 가능한 듯.

//QTimer::singleShot(30000, ui->lbl_welcome,&QLabel::hide);
QTimer::singleShot(30000,ui->lbl_welcome,SLOT(hide()));

[링크 : https://forum.qt.io/topic/65799/how-to-display-label-for-30-seconds-and-then-hide-it/5]

[링크 : https://dev-astra.tistory.com/432]

[링크 : https://dongyeop00.tistory.com/86]

 

 

void QTimer::start(std::chrono::milliseconds interval)
Starts or restarts the timer with a timeout of duration interval milliseconds.

This is equivalent to:

timer.setInterval(interval);
timer.start();

If the timer is already running, it will be stopped and restarted. This will also change its id().

If singleShot is true, the timer will be activated only once.

Starting from Qt 6.10, setting a negative interval will result in a run-time warning and the value being reset to 1ms. Before Qt 6.10 a Qt Timer would let you set a negative interval but behave in surprising ways (for example stop the timer if it was running or not start it at all).

[링크 : https://doc.qt.io/qt-6/qtimer.html#start-2]

 

template <typename Duration, typename Functor> void QTimer::singleShot(Duration interval, const QObject *context, Functor &&functor)
[static]template <typename Duration, typename Functor> void QTimer::singleShot(Duration interval, Qt::TimerType timerType, const QObject *context, Functor &&functor)
[static]template <typename Duration, typename Functor> void QTimer::singleShot(Duration interval, Functor &&functor)
[static]template <typename Duration, typename Functor> void QTimer::singleShot(Duration interval, Qt::TimerType timerType, Functor &&functor)
This static function calls functor after interval.

It is very convenient to use this function because you do not need to bother with a timerEvent or create a local QTimer object.

If context is specified, then the functor will be called only if the context object has not been destroyed before the interval occurs. The functor will then be run the thread of context. The context's thread must have a running Qt event loop.

If functor is a member function of context, then the function will be called on the object.

The interval parameter can be an int (interpreted as a millisecond count) or a std::chrono type that implicitly converts to nanoseconds.

Starting from Qt 6.10, setting a negative interval will result in a run-time warning and the value being reset to 1ms. Before Qt 6.10 a Qt Timer would let you set a negative interval but behave in surprising ways (for example stop the timer if it was running or not start it at all).

[링크 : https://doc.qt.io/qt-6/qtimer.html#singleShot]

[링크 : https://doc.qt.io/qt-6/qtimer.html]

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

qt media 재생하기  (0) 2026.03.31
qt concurrent / qt thread  (0) 2026.03.30
qt6 시그널  (0) 2026.03.30
QLCDNumber class  (0) 2026.03.23
qt qrc 리소스 등록 후 이미지로 띄우기  (0) 2026.03.23
Posted by 구차니
Programming/qt2026. 3. 30. 11:14
#include <QObject>

class Counter : public QObject
{
    Q_OBJECT

// Note. The Q_OBJECT macro starts a private section.
// To declare public members, use the 'public:' access modifier.
public:
    Counter() { m_value = 0; }

    int value() const { return m_value; }

public slots:
    void setValue(int value);

signals:
    void valueChanged(int newValue);

private:
    int m_value;
};

void Counter::setValue(int value)
{
    if (value != m_value) {
        m_value = value;
        emit valueChanged(value);
    }
}

 

Counter a, b;
QObject::connect(&a, &Counter::valueChanged, &b, &Counter::setValue);

a.setValue(12);     // a.value() == 12, b.value() == 12
b.setValue(48);     // a.value() == 12, b.value() == 48

[링크 : https://doc.qt.io/qt-6/ko/signalsandslots.html]

[링크 : https://doc.qt.io/qt-6/ko/moc.html]

 

QT5(람다) / QT4 - 근데 람다 쓴다고 receiver도 사라질수 있나? this 어디갔지?

Qt 5 이상 스타일 (람다 함수 지원)
connect(sender, &Sender::signal, receiver, &Receiver::slot);

// 람다 함수 연결
connect(button, &QPushButton::clicked, []() {
    qDebug() << "Button clicked!";
});
 

Qt 4 이하 스타일
connect(sender, SIGNAL(signalName()), receiver, SLOT(slotName()));

[링크 : https://cagongman.tistory.com/109]

 

// new style
connect(&myObject, &SignalSlot::valueChanged, this, &Widget::setValue);

// old style
//connect(&myObject, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));

[링크 : https://dongyeop00.tistory.com/78]

[링크 : https://truelightn.tistory.com/6]

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

qt concurrent / qt thread  (0) 2026.03.30
Qtimer를 이용한 반복/1회성 이벤트 생성  (0) 2026.03.30
QLCDNumber class  (0) 2026.03.23
qt qrc 리소스 등록 후 이미지로 띄우기  (0) 2026.03.23
qt 6 프로그래밍 공개 ebook  (0) 2026.03.23
Posted by 구차니

일하기 싫다 ㅜㅠ

아픈데 무슨 일이냐 ㅠㅠ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

레일 교체  (0) 2026.04.08
개피곤  (0) 2026.04.02
잠 + 밥 + 화장실 반복  (0) 2026.03.28
퇴원  (4) 2026.03.27
입원  (0) 2026.03.26
Posted by 구차니

아직 회복모드라 멀 하질 못한다.

좀 깨서 앉아있기도 부담스럽네

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

개피곤  (0) 2026.04.02
앉아보기  (0) 2026.03.29
퇴원  (4) 2026.03.27
입원  (0) 2026.03.26
입원 수술  (0) 2026.03.25
Posted by 구차니

그래도 집에오니 좋긴하다.

수술해주신 원장님도 친절하고 좋은분인데

또 같은일로 보진 않았으면 ㅋㅋㅋㅋ

 

슬슬 서류준비해서 보험 타먹어야지 ㅠㅠ

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

앉아보기  (0) 2026.03.29
잠 + 밥 + 화장실 반복  (0) 2026.03.28
입원  (0) 2026.03.26
입원 수술  (0) 2026.03.25
아파  (0) 2026.03.24
Posted by 구차니

약 주사 밥 잠

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

잠 + 밥 + 화장실 반복  (0) 2026.03.28
퇴원  (4) 2026.03.27
입원 수술  (0) 2026.03.25
아파  (0) 2026.03.24
딸램 중고 자전거 지름  (2) 2026.03.22
Posted by 구차니

우악

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

퇴원  (4) 2026.03.27
입원  (0) 2026.03.26
아파  (0) 2026.03.24
딸램 중고 자전거 지름  (2) 2026.03.22
무좀약  (0) 2026.03.14
Posted by 구차니

아놔 수술각

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

입원  (0) 2026.03.26
입원 수술  (0) 2026.03.25
딸램 중고 자전거 지름  (2) 2026.03.22
무좀약  (0) 2026.03.14
약기운 때문인가  (0) 2026.03.09
Posted by 구차니

한 줄 최대 128 byte(페이로드만) ascii hex string 이니 실제로는 64byte

 

Start code(1byte = :)   Byte count(2byte)   Address(4 byte)   Record type(1byte)   Data   Checksum(1byte)

0x10 = 32

32 + 11(1+2+4+2+2) = 43byte / line

: 10 0130 00 00000000000000000000000000000000 BF

[링크 : https://eteo.tistory.com/857]

[링크 : https://en.wikipedia.org/wiki/Intel_HEX]

Posted by 구차니