'2026/04'에 해당되는 글 42건

  1. 2026.04.01 jetracer 조립 거의 완료
  2. 2026.04.01 qt ui loader
embeded/jetson2026. 4. 1. 22:58

어우 빡세다.

전륜부 부품을 봐서는 오프로드는 꿈을 꾸면 안 될 느낌이고

그 와중에 천막이 있어서 머지 싶어서 주워오지 않았는데 그게 레이싱 트랙인 것 같았고(!)

 

서보는 잠시 켜서 car.steering = 0 해서 놔둔다음 수직으로 해야지 그나마 좌우 조향 각이 맞는 것 같고

그걸 위해서 짧은 샤프트는 정말 엄청 짧게 만들어야 했다.

앞 바퀴쪽은 너트들도 작아서 조립이 고생 후..

이제 보호회로 들은 배터리 들어갈수 있도록 좀 눌러주고 하면 어찌 될 듯

[링크 : https://www.waveshare.com/wiki/JetRacer_Assembly_Manual]

 

pcie 무선랜/블투는 뽑아버리고

귀찮으니(!) usb로 대체할 예정

안테나 달기 귀찮고 박스에 비해서 폭이 커지는 바람에 박스는 딱 부품용..

조립 이후에도 넣을수 있게 해두었으면 좋았을텐데 아쉽다.

'embeded > jetson' 카테고리의 다른 글

jetracer interactive-regression  (1) 2026.04.04
imx219-160  (0) 2026.04.03
jetson nano 조이스틱 연결  (0) 2026.03.31
jetracer 서보는 되는데 모터가 안될때  (0) 2026.03.30
jetson nano + m.2 wifi  (0) 2026.03.20
Posted by 구차니
Programming/qt2026. 4. 1. 14:56

QT 에서 ui를 사용하는? 불러오는? 방법은 크게 두가지가 있는데

하나는 ui 파일을 "런타임"에 읽어와서 사용하는 것이고

다른 하나는 qic 를 통해 cpp/h 로 변환해서 사용하는 것이다.

[링크 : https://doc.qt.io/qt-6/ko/designer-using-a-ui-file.html]

 

QT Ui Loader 를 이용하여 런타임중에 불러와서 쓰는 것과 

Header: #include <QUiLoader>
CMake: find_package(Qt6 REQUIRED COMPONENTS UiTools)
target_link_libraries(mytarget PRIVATE Qt6::UiTools)
qmake: QT += uitools

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

 

 

qt designer로 디자인하고

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

 

qic를 통해 소스로 변환하는 것이 있다.

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

 

어쩌면 python을 위해 동적 로드가 추가된거 아닐까 생각도?

[링크 : https://doc.qt.io/qt-6/ko/designer-using-a-ui-file-python.html]

 

프로젝트 파일에 widgets가 들어가면 자동으로 변경되는것 처럼 이야기 하는데

6.x 면 기본으로 들어가게 되어있지만 그렇다고 자동으로 ui 파일 기반으로 변경하진 않는다.

QT       += core gui multimedia uitools

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

[링크 : https://www.qtcentre.org/threads/36215-qmake-not-invoking-uic]

[링크 : https://doc.qt.io/archives/qt-5.15/qtwidgets-index.html]

[링크 : https://stackoverflow.com/questions/38549747/qmake-doesnt-invoke-uic]

 

QMAKE_UIC_FLAGS += -a

[링크 : https://doc.qt.io/archives/qt-5.15/qmake-variable-reference.html#qmake-uic-flags]

[링크 : https://forum.qt.io/topic/129602/how-to-pass-option-to-uic-in-qmake-project-file/2]

 

 

 

In specific cases, such as the example below where the include directive uses a relative path, qt_add_ui can be used to generate the ui_calculatorform.h file instead of relying on AUTOUIC.
When to prefer qt_add_ui over AUTOUIC

[링크 : https://doc.qt.io/qt-6/designer-using-a-ui-file.html]

[링크 : https://cmake.org/cmake/help/latest/manual/cmake-qt.7.html#autouic]

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

 

include 지시어가 상대 경로를 사용하는 아래 예제와 같은 특정 경우에는 AUTOUIC에 의존하는 대신 qt_add_ui를 사용하여 ui_calculatorform.h 파일을 생성할 수 있습니다.
AUTOUIC보다 qt_add_ui를 선호하는 경우

[링크 : https://doc.qt.io/qt-6/ko/designer-using-a-ui-file.html]

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

 

 

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

qt widget fullscreen  (0) 2026.03.31
qt media 재생하기  (0) 2026.03.31
qt concurrent / qt thread  (0) 2026.03.30
Qtimer를 이용한 반복/1회성 이벤트 생성  (0) 2026.03.30
qt6 시그널  (0) 2026.03.30
Posted by 구차니