I am new here. I am a beginner in Qt but i am an intermediate level programmer in c++. I had written a program previously in C++ and STL(No code is platform dependent and whole program is broken into around ten .cpp/.h files). Now if I develop A Gui in qt,can I link it to my old program or should I rewrite everything? For instance I use file IO using fstream. But in Qt I see there is QFile so is it possible to link it. The program is pretty lengthy. So it will be very hard to rewrite everything. Gui is not mandatory for me but I thought it would be good for presentation.It is for my Project so please reply soon.Please give me some examples or sites to refer to if possible. Thank you in Advance... Manish
相关问题
- Sorting 3 numbers without branching [closed]
- QML: Cannot read property 'xxx' of undefin
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- thread_local variables initialization
相关文章
- ubuntu20.4中c#通过c++库调用python脚本
- Qt槽函数自动执行多遍
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
- What exactly do pointers store? (C++)
You can write a Qt GUI for your program:
One option is to create a separate program with GUI that starts your program as a subprocess, using
QProcess
. The GUI program will send command line parameters and you can communicate with it.Another option is to rewrite the main of your program so that it is another function. You can get your GUI program to call the function.
There is no need to use
QFile
or other parts of Qt unless you want to rewrite that part of your program or use a feature of Qt.