pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

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

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

問題描述

我正在編寫一個相當大且復雜的數(shù)據(jù)分析程序,我已經(jīng)到了我認為是時候為程序構(gòu)建 GUI 的時候了.所以我的問題是:

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)該使用哪個 GUI 工具包?

Which GUI toolkit should I use?

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

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).

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

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++ 編寫了這個程序,我不想必須用 C 或其他東西來編寫 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++.

此外,跨平臺工具包比單一平臺工具包更可取.但是,如果它必須是一個單一平臺的工具包,那么我更喜歡它用于 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.

最后,與閉源工具包相比,我更喜歡開源工具包.

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

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

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

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

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.

推薦答案

對于 C++,在我看來,Qt 是最不令人沮喪且功能最齊全的工具包.它也完全跨平臺.請注意,Qt 將在 2009 年 3 月的某個時間獲得 LGPL 許可,屆時 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è)計器很好.它有很多實用功能(場景圖庫、翻譯支持、內(nèi)置Javascript引擎、內(nèi)置WebKit庫).通過 MOC(一種特殊的預編譯器),它還為 C++ 帶來了一些運行時綁定功能和內(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++.

對于您的技術(shù)應(yīng)用程序,您可能會發(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 的實用程序支持(例如網(wǎng)絡(luò)等)而無需 GUI,則它甚至可以無頭"使用.

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

另一個跨平臺的 C++ 選項是 wxWidgets,它可用但與 Qt 沒有真正的可比性.它是一個低得多的工具包,并不容易使用或全面.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)該使用哪個?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(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++ 中,為什么我不能像這樣編寫 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)形?)
主站蜘蛛池模板: 亮化工程,亮化设计,城市亮化工程,亮化资质合作,长沙亮化照明,杰奥思【官网】 | 北京网站建设|北京网站开发|北京网站设计|高端做网站公司 | 润滑脂-高温润滑脂-轴承润滑脂-食品级润滑油-索科润滑油脂厂家 | 亚克隆,RNAi干扰检测,miRNA定量检测-上海基屹生物科技有限公司 | 上海办公室装修公司_办公室设计_直营办公装修-羚志悦装 | 陕西视频监控,智能安防监控,安防系统-西安鑫安5A安防工程公司 | 手术示教系统-数字化手术室系统-林之硕医疗云智能视频平台 | 武汉森源蓝天环境科技工程有限公司-为环境污染治理提供协同解决方案 | 帽子厂家_帽子工厂_帽子定做_义乌帽厂_帽厂_制帽厂_帽子厂_浙江高普制帽厂 | 自动化生产线-自动化装配线-直流电机自动化生产线-东莞市慧百自动化有限公司 | 哈尔滨发电机,黑龙江柴油发电机组-北方星光| 对辊破碎机-液压双辊式,强力双齿辊,四辊破碎机价格_巩义市金联机械设备生产厂家 | 企业微信营销_企业微信服务商_私域流量运营_艾客SCRM官网 | 焊锡丝|焊锡条|无铅锡条|无铅锡丝|无铅焊锡线|低温锡膏-深圳市川崎锡业科技有限公司 | 喷砂机厂家_自动喷砂机生产_新瑞自动化喷砂除锈设备 | 磁力轮,磁力联轴器,磁齿轮,钕铁硼磁铁-北京磁运达厂家 | 媒介云-全网整合营销_成都新闻媒体发稿_软文发布平台 | 接地电阻测试仪[厂家直销]_电缆故障测试仪[精准定位]_耐压测试仪-武汉南电至诚电力设备 | 无缝钢管-聊城无缝钢管-小口径无缝钢管-大口径无缝钢管 - 聊城宽达钢管有限公司 | 阜阳在线-阜阳综合门户| 河南橡胶接头厂家,河南波纹补偿器厂家,河南可曲挠橡胶软连接,河南套筒补偿器厂家-河南正大阀门 | 微型实验室真空泵-无油干式真空泵-微型涡旋耐腐蚀压缩机-思科涡旋科技(杭州)有限公司 | 机房监控|动环监控|动力环境监控系统方案产品定制厂家 - 迈世OMARA | 东莞市踏板石餐饮管理有限公司_正宗桂林米粉_正宗桂林米粉加盟_桂林米粉加盟费-东莞市棒子桂林米粉 | 高铝矾土熟料_细粉_骨料_消失模_铸造用铝矾土_铝酸钙粉—嵩峰厂家 | 浙江皓格药业有限公司| 999范文网_优质范文下载写作帮手| 洗砂机械-球磨制砂机-洗沙制砂机械设备_青州冠诚重工机械有限公司 | PC构件-PC预制构件-构件设计-建筑预制构件-PC构件厂-锦萧新材料科技(浙江)股份有限公司 | 收录网| Win10系统下载_32位/64位系统/专业版/纯净版下载 | 澳洁干洗店加盟-洗衣店干洗连锁「澳洁干洗免费一对一贴心服务」 干洗加盟网-洗衣店品牌排行-干洗设备价格-干洗连锁加盟指南 | China plate rolling machine manufacturer,cone rolling machine-Saint Fighter | 高压管道冲洗清洗机_液压剪叉式升降机平台厂家-林君机电 | 粉丝机械,粉丝烘干机,粉丝生产线-招远市远东粉丝机械有限公司 | 安规_综合测试仪,电器安全性能综合测试仪,低压母线槽安规综合测试仪-青岛合众电子有限公司 | 深圳宣传片制作_产品视频制作_深圳3D动画制作公司_深圳短视频拍摄-深圳市西典映画传媒有限公司 | 英国雷迪地下管线探测仪-雷迪RD8100管线仪-多功能数字听漏仪-北京迪瑞进创科技有限公司 | 宁波普瑞思邻苯二甲酸盐检测仪,ROHS2.0检测设备,ROHS2.0测试仪厂家 | 玉米深加工设备|玉米加工机械|玉米加工设备|玉米深加工机械-河南成立粮油机械有限公司 | 防水套管厂家_刚性防水套管_柔性防水套管_不锈钢防水套管-郑州中泰管道 |