开发者

GUI for server-client program

开发者 https://www.devze.com 2023-01-02 19:06 出处:网络
I am making a server-client application in c++. In this i am also using shared memory & file read-write operations. my program is completely ready & i now wants to make a gui for it. someone s

I am making a server-client application in c++. In this i am also using shared memory & file read-write operations. my program is completely ready & i now wants to make a gui for it. someone suggested me to go for QT4, but when i tried it, i found i have to re-write 80% of the code because QT has got its own开发者_开发知识库 classes & variable. i don't want to do it. i want suggestions from you on this regard. my requirements for gui are very simple i.e there will be a main form, which will have two text boxes in which all messages being sent & received by client & server should be shown. there should be another lineedit box, through which i can send the messages to the other end server. I don't know how to make this gui. someone suggested tcl/tk, other suggested me use php/swig. i am not sure how to go about this. my only requirement is that i want to make this simple gui with minimum of changes in my code. THANX


You could consider making it a web app and using XHTML/CSS/JavaScript for the UI. There is a C++ web framework called Wt you could use.


Since I do not have any knowledge about what kind of adaption problems you have in your application, I have a hard time recommending any spesific toolkit, but if you go through this list of toolkits you should be able to find one that fits.

But in any case you should create a layer that separate the toolkit from your actual application so that the program and the tool kit are interchangeable entities. So my suggestion is to stick to QT and create such an layer. If you find it hard to write such a layer for your program, my thoughts are that you probably will have a hard time adapting to any of the toolkits.


Each GUI framework will have it's own classes to which you have adapt your code. The grade of adaption may vary though. Qt provides at lot more functionality than just the GUI, so maybe you can reuse some it in your application. Maybe you can give some more details about what you want to do?

0

精彩评论

暂无评论...
验证码 换一张
取 消