请使用wxWidgets [英] Please use wxWidgets

查看:100
本文介绍了请使用wxWidgets的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



请使用WXWIDGETS


请使用多平台C ++类库wxWidgets。这是免费的,开源的

和非商业性的。它是在MFC之后建模的,但它产生的代码可以使用条件编译(使用条件编译)编译成本机代码可执行文件,并使用

平台的速度和UI外观编译的目标。因此,Windows可执行文件看起来(并且是)一个真正的Windows程序,Mac OS X

可执行文件看起来(并且是)本机Mac OS X程序和Linux可执行文件

看起来像是一个真正的Linux / GTK +应用程序。由Julian Smart领导的开源程序员十多年来一直在开发



(确切地说是12年)!


因此,wxWidgets和你的程序中的代码将在Windows,Mac OS X和本地运行的Linux上运行。一个价格三个!它比使用
MFC更容易使用。使用DialogBlocks WYSIWYG

UI创建器(不是免费和商业,但成本低),可以轻松设计对话框和Windows。所以准备你的软件

独立于平台并为将来做好准备。


http://www.wxwidgets.org 了解更多信息。


PLEASE USE WXWIDGETS

Please use wxWidgets, the multiplatform C++ class library. It''s free, open-source
and non-commercial. It''s modelled after MFC but it produces code which can
be compiled (using conditional compilation) into native code executables with
the speed and UI look of the platform for which the compile is targeted. So
the Windows executable looks (and is) a real Windows program, the Mac OS X
executable looks (and is) a native Mac OS X program and the Linux executable
is and looks like a real Linux/GTK+ application. It has been in development
by a band of open-source programmers led by Julian Smart for over a decade
(12 years to be exact)!

So code in wxWidgets and your program will run on both Windows, Mac OS X and
Linux, natively. Three for the price of one! And it''s much easier to use than
MFC. Dialogs and Windows are easy to design using the DialogBlocks WYSIWYG
UI creator (not free and commercial, but low cost). So prepare your software
to be independent of platform and be prepared for the future.

See http://www.wxwidgets.org for more information.

推荐答案

Nomen Nescio写道:
Nomen Nescio wrote:
请使用WXWIDGETS

请使用多平台C ++类库wxWidgets。 [...]
PLEASE USE WXWIDGETS

Please use wxWidgets, the multiplatform C++ class library. [..]




除了免费之外,它有什么好处,比如Qt?


V



Besides "free", what are the advantages of it over, say, Qt?

V


因此,wxWidgets和您的程序中的代码将在Windows,Mac OS和X和Linux上本地运行。
So code in wxWidgets and your program will run on both Windows, Mac OS
X and Linux, natively.




Windows和Mac OS使用不同的CPU类型,因此有不同的CPU

指令...你怎么能有一个可运行的可执行文件两个......?

有一个虚拟机参与...?


至于Windows和Linux ... Windows有某种PE可执行文件

格式,Linux是否有相同的...?

-JKop



Windows and Mac OS use different CPU types and hence have different CPU
instructions... how can you have an executable that will run on both... ? Is
there a virtual machine involved at all... ?

As for Windows and Linux... Windows has some sort of PE executable file
format, does Linux have the same... ?
-JKop


" Victor Bazarov" <五******** @ comAcast.net>在消息中写道

news:3o **************** @ newsread1.dllstx09.us.to.v erio.net ...
"Victor Bazarov" <v.********@comAcast.net> wrote in message
news:3o****************@newsread1.dllstx09.us.to.v erio.net...
Nomen Nescio写道:
Nomen Nescio wrote:
请使用WXWIDGETS

请使用多平台C ++类库wxWidgets。 [...]
PLEASE USE WXWIDGETS

Please use wxWidgets, the multiplatform C++ class library. [..]



除了免费之外,它有什么优势,比如Qt?



Besides "free", what are the advantages of it over, say, Qt?




除了Qt之外,你会知道其他类似的库吗?


wx的一个优点可能是,正如OP提到的那样,它始终是

使用本机小部件目标平台。最后我查了一下,Qt

是使用自定义绘制的小部件,它们并不总是看起来像是b $ b和目标平台的感觉。


除此之外,Wx不使用特殊的预处理器(Qt的MOC),

但是它倾向于使用MFC样式的宏来显示消息映射(尽管

你可以没有他们)。它的许可允许它免费在任何

项目中使用,包括非开源。

Qt,虽然只是Linux上的GPL,但在其他平台上是商业化的。

它整体上也更加精致。


虽然Qt被用作KDE桌面的基础(据我所知),

wxWidgets有一个Python绑定(wxPython),它也已成为Python GUI开发的一个事实标准。


Btw,Qt和Wx,分享一组常见缺陷:

- 使用自定义容器和字符串类的趋势

而不是标准库。

- 使用MOC或宏实现回调/消息传递

mechanisme,而今天可以使用纯C ++等价物

- 单根对象层次结构和模拟对象层次结构RTTI

- 过于单一的设计 - 各种

模块/组件的内部化使得很难仅使用库的子集

。 br />

(免责声明:我还没有看过Qt的最新版本。)

我欢迎进一步的建设性/内容丰富的评论

关于这两个图书馆的比较...


干杯,

伊万

-
<一个rel =nofollowhref =http://ivan.vecerina.com/contact/?subject=NG_POST\"target =_ blank> http://ivan.vecerina.com/contact/?subject=NG_POST < - 电子邮件联系表格



Other than Qt, would you know any other comparable library?

One advantage of wx might be that, as the OP mentioned, it always
uses native widgets of the target platform. Last I checked, Qt
was using custom-drawn widgets, which don''t always have the look
and feel of the target platform.

Other than that, Wx does not use a special preprocessor (Qt''s MOC),
however it tends to use MFC-style macros for message maps (although
you can do without them). Its license allows it to be used in any
project for free, including non-open source.
Qt, while being GPL on linux only, is commercial on other platforms.
It is also more polished overall.

While Qt is used as a basis for the KDE desktop (as far as I know),
wxWidgets has a Python binding (wxPython) that has also become a de
facto standard for Python GUI development.

Btw, both Qt and Wx, share a set of common flaws:
- Tendency to use custom container and string classes
instead of the standard library.
- Use of a MOC or Macros to implement a callback/messaging
mechanisme while a pure C++ equivalent is possible today
- Single-rooted object hierarchies and "emulated" RTTI
- Excessively monolithic design -- intrication of various
modules/components makes it difficult to use only a subset
of the library.

(Disclaimer: I haven''t reviewed the latest version of Qt).
I would welcome further constructive/informative comments
about how these two libraries compare...

Cheers,
Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form


这篇关于请使用wxWidgets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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