How to designed the program that without UI
-
Hi All,
I'm using QT5.5 on my computer and linux+QT for my OS system.
I wanna designed a program that can send the command to MCU via RS232.
I want to do it without any UI.
How can I do that?Thanks in Advanced!
-
@JohanSolo
Thanks!
But I am facing the other problem.
I can't find this file when I included.#include <stdio.h> #include <string.h>
This is my .pro file.
QT +=core QT+=serialport QT-=gui TARGET=mcu CONFIG+= console CONFIG+=app_bundle TEMPLATE=app SOURCES+=main.cpp
Why I can't find it in QT console?
And I can find the file when i create in QT Application?Thanks in Advanced!
-
AFAIK
CONFIG += app_bundle
is only valid for macOS, but I don't know whether it hurts (I guess not).How did you install Qt (QT is Apple's QuickTime)?
Is is possible you don't have the dev C++ libs? Btw
stdio.h
is a C header, the C++ one iscstdio
, and in a similar way, usecstring
instead ofstring.h
. -
@victor-wang said in How to designed the program that without UI:
#include <stdio.h>
#include <string.h>Why do you want to use C instead of C++?
If you really want do it like this#include <cstdio> #include <cstring>