开发用户界面-QT/C ++还是Java? [英] Developing User Interfaces - QT/C++ or Java?

查看:695
本文介绍了开发用户界面-QT/C ++还是Java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开始一个新项目,该项目不仅需要精致的用户界面,还需要Windows和Linux之间的可移植性.我不确定该怎么做,我的选择似乎是:

使用c/c ++和跨平台工具包,例如QT
好处是我已经在使用c/c ++,只需要学习QT库

用Java编写整个项目
好处是每个系统都使用相同的代码,但是我对Java还是陌生的


在某些背景下,该项目需要访问系统声卡并具有与USB连接的设备进行通话的能力.该设备在每个平台上都有适用于Win/Linux/Mac的驱动程序,并且具有统一的API,但是我担心如果使用c/c ++作为核心程序,则需要编译三个不同的版本,并进行细微的更改,例如设备初始化.

我应该把精力集中在哪里?

I am beginning a new project that requires a nicely refined user interface but also requires portability between Windows and Linux. I am unsure about which way to go about this though, my choices seem to be:

Use c/c++ and a cross platform toolkit such as QT
Benefits are I already use c/c++ and just need to learn the QT library

Write the whole project in Java
Benefits are its the same code for every system but I''m new to Java


For some background the project requires access the the systems sound card and the ability to talk to a USB connected device. The device has drivers for Win/Linux/Mac with a uniform API on each platform but I''m worried that if I use c/c++ as the core program I will need to compile three different versions with subtle changes such as device initialization.

Where should I focus my efforts?

推荐答案

从C ++学习Java很容易.
您的问题将不会是Java本身,而是您将用于GUI的库.
这和学习QT库是同样的问题.
Learning Java from C++ is easy.
Your problem will not be Java itself, but the library you will use for GUIs.
And it is the same problem as learning the QT library.


这篇关于开发用户界面-QT/C ++还是Java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆