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' 카테고리의 다른 글

Qtimer를 이용한 반복/1회성 이벤트 생성  (0) 2026.03.30
qt6 시그널  (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 구차니
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 concurrent / qt thread  (0) 2026.03.30
qt6 시그널  (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 구차니
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 구차니

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

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

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

 

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

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

딸램 중고 자전거 지름  (2) 2026.03.22
무좀약  (0) 2026.03.14
약기운 때문인가  (0) 2026.03.09
약먹다 배부르겠네!!  (0) 2026.03.07
책상, 의자 조립  (2) 2026.03.04
Posted by 구차니
Linux/Ubuntu2026. 3. 23. 17:39

telnet 등을 접속하는데 utf-8 이 아닌 경우 해당 인코딩을 바꾸어서 보여주는 유틸리티

       -encoding encoding
              Set up luit to use encoding rather than the current locale's encoding.

 [링크 : https://linux.die.net/man/1/luit]

 

[링크 : https://lute3r.tistory.com/64]

[링크 : https://blog.naver.com/kworldchamp/60055458244]

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu 22.04 bgr 패널 대응  (0) 2025.12.29
clamav  (0) 2025.12.22
evince (리눅스 pdf 뷰어) 네비게이션  (0) 2025.12.11
ubuntu 22.04 bgr subpixel 대응 찾기 실패  (0) 2025.11.25
ts - moreutils  (0) 2025.09.26
Posted by 구차니
Programming/qt2026. 3. 23. 15:21

아니 저런(?) 쓸데없는걸 그려주는 좋은 클래스가 있다니 ㅋ

 

[링크 : https://doc.qt.io/qt-6/ko/qlcdnumber.html#details]

 

그 와중에 qt creator 에서 widget으로 제공된다.

프로퍼티가 제법 많다.

소수점 자리는 지정할수 있는데, 아쉽게도(?) 자릿수 까진 없는 듯.

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

Qtimer를 이용한 반복/1회성 이벤트 생성  (0) 2026.03.30
qt6 시그널  (0) 2026.03.30
qt qrc 리소스 등록 후 이미지로 띄우기  (0) 2026.03.23
qt 6 프로그래밍 공개 ebook  (0) 2026.03.23
QT QWizard  (0) 2026.03.19
Posted by 구차니
Programming/qt2026. 3. 23. 12:47

일단 button에 icon 으로 하는 방법과

label을 등록하고 pixmap  으로 등록하는 방법이 qt creator / qt widget designer 에서 마우스로 쉽게 할 수 있는 방법인듯

 

QButton

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

 

QLabel

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

[링크 : https://blog.naver.com/hextrial/221109232458]

[링크 : https://stackoverflow.com/questions/5653114/display-image-in-qt-to-fit-label-size]

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

qt6 시그널  (0) 2026.03.30
QLCDNumber class  (0) 2026.03.23
qt 6 프로그래밍 공개 ebook  (0) 2026.03.23
QT QWizard  (0) 2026.03.19
qt widget 화면 전환  (0) 2026.03.18
Posted by 구차니
Programming/qt2026. 3. 23. 12:30

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

QLCDNumber class  (0) 2026.03.23
qt qrc 리소스 등록 후 이미지로 띄우기  (0) 2026.03.23
QT QWizard  (0) 2026.03.19
qt widget 화면 전환  (0) 2026.03.18
qt qml 와 c++ 상호연동  (0) 2026.01.16
Posted by 구차니
embeded/FPGA - ALTERA2026. 3. 22. 22:33

2023년 6월 9일 단종 공고가 떴었다.

그럼 quartus도 22.x 까지만 지원할 것 같은데. 아예 사라진건진 봐야 알 듯.

[링크 : https://www.reddit.com/r/FPGA/comments/1492bx0/intel_discontinues_nios_ii_ip/]

 

nios v/m nios v/g 로 대체라면 기존의 ii/e ii/f 중에 f가 바뀌나?

ipr-nios가 정식으로 쓰는거고 ip-nios는 evaluation 이라는데(1시간 이후 멈춤) 맞나?

[링크 : https://www.intel.com/content/www/us/en/content-details/781327/intel-is-discontinuing-ip-ordering-codes-listed-in-pdn2312-for-nios-ii-ip.html]

 

그나저나 DMIPS 드럽게 낮네 

[링크 : https://docs.altera.com/r/docs/683629/current/nios-ii-performance-benchmarks/nios-ii-performance-benchmarks]

 

STM32F102x8 cortex-m3의 경우 1.25DMIPS 라는데 시기가 차이 있다 하더라도 nios ii/f가 제법 처참하다 싶다.

1.25 DMIPS/MHz (Dhrystone 2.1)

[링크 : https://www.st.com/resource/en/datasheet/stm32f102c8.pdf]

 

17년 이후로 Nios ii gen 2로 바뀌면서 nios ii/s는 사라지고 f만 남은거 같은데

그러면 위에 ip-nios랑 ipr-nios는 f인가? 머지?

Nios II classic is offered in 3 different configurations: Nios II/f (fast), Nios II/s (standard), and Nios II/e (economy). Nios II gen2 is offered in 2 different configurations: Nios II/f (fast), and Nios II/e (economy).

Nios II/f

The Nios II/f core is designed for maximum performance at the expense of core size. Features of Nios II/f include:
  • Separate instruction and data caches (512 B to 64 KB)
  • Optional MMU or MPU
  • Access to up to 2 GB of external address space
  • Optional tightly coupled memory for instructions and data
  • Six-stage pipeline to achieve maximum DMIPS/MHz
  • Single-cycle hardware multiply and barrel shifter
  • Optional hardware divide option
  • Dynamic branch prediction
  • Up to 256 custom instructions and unlimited hardware accelerators
  • JTAG debug module
  • Optional JTAG debug module enhancements, including hardware breakpoints, data triggers, and real-time trace

Nios II/s

Nios II/s core is designed to maintain a balance between performance and cost. This core implementation is not longer supported for Altera Quartus II v.17 and newer. Features of Nios II/s include:
  • Instruction cache
  • Up to 2 GB of external address space
  • Optional tightly coupled memory for instructions
  • Five-stage pipeline
  • Static branch prediction
  • Hardware multiply, divide, and shift options
  • Up to 256 custom instructions
  • JTAG debug module
  • Optional JTAG debug module enhancements, including hardware breakpoints, data triggers, and real-time trace

Nios II/e

The Nios II/e core is designed for smallest possible logic utilization of FPGAs. This is especially efficient for low-cost Cyclone II FPGA applications. Features of Nios II/e include:
  • Up to 2 GB of external address space
  • JTAG debug module
  • Complete systems in fewer than 700 LEs
  • Optional debug enhancements
  • Up to 256 custom instructions
  • Free, no license required

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

 

+

ai 답변

quartus 19.1 부터 EDS 제거되면서 윈도우에서 WSL 필요

quartus 24.1 부터 nios ii / eds 제거

 

+

레딧도 그렇지만 정말 취미(?) 사용자를 위해서는 두 회사가 더 멀어지고 있지만

altera는 intel에 인수되면서 더 심화된것 같고. 그래서 altera가 다시 intel과 결별한게 아닌가 싶다.

[링크 : https://www.cio.com/article/3964395/인텔-알테라-지분-51-매각···-fpga-사업-정리해-구조-개.html]

 

이 추세면.. xilinx로 갈아타야 하려나.. 쩝..

terasic 형님들 de0-nano-soc 처럼 쌈박한 zynq 내주실 생각 없습니까!?!??!

Posted by 구차니

찾아보니 원래 한 40만원 하던걸

비 맞고 수리비가 더 들어서 수리없이 5만원에 자전거 매장에서 중고로 업어옴

그래도 무려 티티카카 tube a7 이라 네임벨류가 있는 ㅋㅋ

 

[링크 : https://m.blog.naver.com/papertrain/222066348303]

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

퇴원  (0) 2026.03.27
무좀약  (0) 2026.03.14
약기운 때문인가  (0) 2026.03.09
약먹다 배부르겠네!!  (0) 2026.03.07
책상, 의자 조립  (2) 2026.03.04
Posted by 구차니