久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Gui 工具包,我應(yīng)該使用哪個(gè)?

Gui toolkits, which should I use?(Gui 工具包,我應(yīng)該使用哪個(gè)?)
本文介紹了Gui 工具包,我應(yīng)該使用哪個(gè)?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我正在編寫(xiě)一個(gè)相當(dāng)大且復(fù)雜的數(shù)據(jù)分析程序,我已經(jīng)到了我認(rèn)為是時(shí)候?yàn)槌绦驑?gòu)建 GUI 的時(shí)候了.所以我的問(wèn)題是:

I am writing a fairly large and complex data analysis program and I have reached the point where I think it is about time to build a GUI for the program. So my question is:

我應(yīng)該使用哪個(gè) GUI 工具包?

Which GUI toolkit should I use?

我對(duì)編碼和構(gòu)建 GUI 完全陌生,希望能提供任何指導(dǎo).它不必是世界上最簡(jiǎn)單的工具包,我學(xué)得相當(dāng)快.但是,它確實(shí)需要能夠執(zhí)行以下操作(如果不是全部的話,對(duì)于任何給定的工具包來(lái)說(shuō),如果不是全部的話,其中一些可能是非常基礎(chǔ)的,但我認(rèn)為最好將所有這些都扔掉以防萬(wàn)一).

I am completely new to coding and building GUIs and would appreciate any guidance that can be offered. It doesn't have to be the simplest tool kit in the world, I learn rather fast. However, it does need to be able to do the following things (some if not all of these are probably incredibly basic for any given toolkit but I thought that it would be good to throw all this out there just in case).

它必須允許我直接在屏幕上繪制,以便我可以將圖形(實(shí)際上是光譜)、繪圖和類似的東西放到用戶面前.我需要能夠收集有關(guān)他們點(diǎn)擊上述光譜的位置的位置信息.我需要能夠顯示文本并從用戶那里獲取文本輸入.它需要能夠生成菜單(您知道文件、編輯等).如果它有一些內(nèi)置的小部件來(lái)生成表格,那會(huì)很方便(盡管如果我可以直接在屏幕上繪制,我可以克服它的不足).它需要能夠彈出警告、對(duì)話框、保存和打開(kāi)框等.差不多就是這樣,當(dāng)我寫(xiě)出它們時(shí),其中大部分看起來(lái)都很基本,但我不想讓 GUI 部分編碼和然后意識(shí)到我需要用不同的工具包重寫(xiě)它.

It has to allow me to draw directly to the screen so that I can put graphs (spectra really), plots and things like them up for the user to see. I need to be able to collect position information on where they clicked on aforementioned spectra. I need to be able to display text and take text input from the user. It needs to be able to generate menus (you know File, Edit, etc). If it were to have some built in widget for generating tables that would be handy (though I can surmount a lack of that if I can draw directly to the screen). It needs to be able to pop up warnings, dialogue boxes, save and open boxes, etc. That is pretty much it, most of these seem pretty basic when I write them out but I don't want to get the GUI partly coded and then realize that I I need to rewrite it with a different toolkit.

應(yīng)該注意的是,我已經(jīng)用 C++ 編寫(xiě)了這個(gè)程序,我不想必須用 C 或其他東西來(lái)編寫(xiě) GUI 部分,所以工具包需要支持 C++.

It should be noted that I have written this program in C++ and that I don't want to have to write the GUI part in C or something else so the toolkit needs to support C++.

此外,跨平臺(tái)工具包比單一平臺(tái)工具包更可取.但是,如果它必須是一個(gè)單一平臺(tái)的工具包,那么我更喜歡它用于 Linux.

Additionally a cross platform toolkit would be preferable over a single platform toolkit. However if it must be a single platform toolkit then I would prefer it be for Linux.

最后,與閉源工具包相比,我更喜歡開(kāi)源工具包.

Finally, I would DRAMATICALLY prefer an open source toolkit to a closed source toolkit.

除此之外,我想不出要補(bǔ)充的內(nèi)容.提前感謝您的時(shí)間和答案.

Beyond that I cannot think of anything to add. Thank you in advance for your time and answers.

嗯,根據(jù)答案,我將同時(shí)查看 Qt 和 wxWidgets,看看哪個(gè)更吸引我.我可以接受多個(gè)答案,但我不能接受,而且由于我正在考慮兩件事,因此只接受其中一個(gè)答案是不公平的,也許在一兩周內(nèi),然后我查看了工具包并認(rèn)為我想用哪個(gè).

Hmmm based on the answers I shall look at both Qt and wxWidgets and see which appeals to me more. I with I could accept multiple answers as accepted but I can't, and since I am looking at two things it would be unfair to only accept one of the answers, perhaps in a week or two then I have looked at the toolkits and figured out which I want to use.

推薦答案

對(duì)于 C++,在我看來(lái),Qt 是最不令人沮喪且功能最齊全的工具包.它也完全跨平臺(tái).請(qǐng)注意,Qt 將在 2009 年 3 月的某個(gè)時(shí)間獲得 LGPL 許可,屆時(shí) 4.5 版可用.目前,它僅以 GPL 和商業(yè)許可版本提供.

For C++, in my opinion, Qt is the least frustrating and most fully featured toolkit. Its also fully cross platform. Note that Qt will be LGPL licensed some time in March 2009, when version 4.5 becomes available. Currently, its only offered in a GPL and commercial license version.

Qt 的 GUI 設(shè)計(jì)器很好.它有很多實(shí)用功能(場(chǎng)景圖庫(kù)、翻譯支持、內(nèi)置Javascript引擎、內(nèi)置WebKit庫(kù)).通過(guò) MOC(一種特殊的預(yù)編譯器),它還為 C++ 帶來(lái)了一些運(yùn)行時(shí)綁定功能和內(nèi)省.

Qt's GUI designer is good. It has lots of utility functions (scene graph library, translation support, built-in Javascript engine, built-in WebKit library). Via the MOC (a special pre-compiler) it also brings a few run-time binding capabilities and introspection to C++.

對(duì)于您的技術(shù)應(yīng)用程序,您可能會(huì)發(fā)現(xiàn) Qwt (http://qwt.sourceforge.net/)提供您所需要的.它建立在 Qt 之上.

For your technical application, you might find that Qwt (http://qwt.sourceforge.net/) provides what you need. It is built upon Qt.

如果您想要 Qt 的實(shí)用程序支持(例如網(wǎng)絡(luò)等)而無(wú)需 GUI,則它甚至可以無(wú)頭"使用.

Qt can even be used "headless" if you want its utility support (such as networking, etc) without a GUI.

另一個(gè)跨平臺(tái)的 C++ 選項(xiàng)是 wxWidgets,它可用但與 Qt 沒(méi)有真正的可比性.它是一個(gè)低得多的工具包,并不容易使用或全面.Gtkmm 是另一種選擇,本著 GTK+ 的精神.

The other cross platform C++ option is wxWidgets, which is usable but not really comparable to Qt. Its a much lower level toolkit, and isn't as easy to use or fully rounded. Gtkmm is another option, in the spirit of GTK+.

這篇關(guān)于Gui 工具包,我應(yīng)該使用哪個(gè)?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

How can I read and manipulate CSV file data in C++?(如何在 C++ 中讀取和操作 CSV 文件數(shù)據(jù)?)
In C++ why can#39;t I write a for() loop like this: for( int i = 1, double i2 = 0; (在 C++ 中,為什么我不能像這樣編寫(xiě) for() 循環(huán): for( int i = 1, double i2 = 0;)
How does OpenMP handle nested loops?(OpenMP 如何處理嵌套循環(huán)?)
Reusing thread in loop c++(在循環(huán) C++ 中重用線程)
Precise thread sleep needed. Max 1ms error(需要精確的線程睡眠.最大 1ms 誤差)
Is there ever a need for a quot;do {...} while ( )quot; loop?(是否需要“do {...} while ()?環(huán)形?)
主站蜘蛛池模板: 欧美日韩在线播放 | 午夜影院| 天天爽综合网 | 国产一级视频在线 | 久久综合成人精品亚洲另类欧美 | 国产一二三区电影 | 久久高潮| 国产成人精品一区二区三区网站观看 | 粉嫩国产精品一区二区在线观看 | 亚洲一区二区三区福利 | 国产一区二区精品在线观看 | 一级特黄在线 | 91大神xh98xh系列全部 | 国产资源一区二区三区 | 亚州精品天堂中文字幕 | 成人免费淫片aa视频免费 | 中文在线а√在线8 | 日韩一区二区在线观看 | 久草免费电影 | 久久久久国产一区二区三区四区 | 精品久久影院 | 欧美精品一区二区三区在线 | 国产激情精品一区二区三区 | 国产网站在线免费观看 | av在线一区二区三区 | 99热这里| 亚洲成人久久久 | 精品国产18久久久久久二百 | 精品一区二区三区四区外站 | 国产欧美精品区一区二区三区 | 精品国产久| 国产一级在线 | 超碰在线97国产 | 午夜影院在线免费观看视频 | 国产网站在线免费观看 | 亚洲精品免费观看 | jizz中国日本 | 国产精品视频久久 | 91国内视频在线 | 羞羞视频在线观看 | av在线一区二区三区 |