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)形?)
主站蜘蛛池模板: 温控器生产厂家-提供温度开关/热保护器定制与批发-惠州市华恺威电子科技有限公司 | 防伪溯源|防窜货|微信二维码营销|兆信_行业内领先的防伪防窜货数字化营销解决方案供应商 | 列管冷凝器,刮板蒸发器,外盘管反应釜厂家-无锡曼旺化工设备有限公司 | 老房子翻新装修,旧房墙面翻新,房屋防水补漏,厨房卫生间改造,室内装潢装修公司 - 一修房屋快修官网 | 北京晚会活动策划|北京节目录制后期剪辑|北京演播厅出租租赁-北京龙视星光文化传媒有限公司 | Type-c防水母座|贴片母座|耳机接口|Type-c插座-深圳市步步精科技有限公司 | 钢绞线万能材料试验机-全自动恒应力两用机-混凝土恒应力压力试验机-北京科达京威科技发展有限公司 | 膜结构_ETFE膜结构_膜结构厂家_膜结构设计-深圳市烨兴智能空间技术有限公司 | 二手电脑回收_二手打印机回收_二手复印机回_硒鼓墨盒回收-广州益美二手电脑回收公司 | 学校用栓剂模,玻璃瓶轧盖钳,小型安瓿熔封机,实验室安瓿熔封机-长沙中亚制药设备有限公司 | 透平油真空滤油机-变压器油板框滤油机-滤油车-华之源过滤设备 | 杭州网络公司_百度SEO优化-外贸网络推广_抖音小程序开发-杭州乐软科技有限公司 | 玻璃瓶厂家_酱菜瓶厂家_饮料瓶厂家_酒瓶厂家_玻璃杯厂家_徐州东明玻璃制品有限公司 | 异噻唑啉酮-均三嗪-三丹油-1227-中北杀菌剂厂家 | 地图标注-手机导航电子地图如何标注-房地产商场地图标记【DiTuBiaoZhu.net】 | 防渗土工膜|污水处理防渗膜|垃圾填埋场防渗膜-泰安佳路通工程材料有限公司 | 5L旋转蒸发器-20L-50L旋转蒸发器-上海越众仪器设备有限公司 | 首页-浙江橙树网络技术有限公司| 山东彩钢板房,山东彩钢活动房,临沂彩钢房-临沂市贵通钢结构工程有限公司 | 河北中仪伟创试验仪器有限公司是专业生产沥青,土工,水泥,混凝土等试验仪器的厂家,咨询电话:13373070969 | 广州迈驰新GMP兽药包装机首页_药品包装机_中药散剂包装机 | 西门子伺服电机维修,西门子电源模块维修,西门子驱动模块维修-上海渠利 | 杭州公司变更法人-代理记账收费价格-公司注销代办_杭州福道财务管理咨询有限公司 | 实验室装修_实验室设计_实验室规划设计- 上海广建净化工程公司 | 校服厂家,英伦校服定做工厂,园服生产定制厂商-东莞市艾咪天使校服 | 磷酸肌酸二钠盐,肌酐磷酰氯-沾化欣瑞康生物科技 | 六维力传感器_六分量力传感器_模腔压力传感器-南京数智微传感科技有限公司 | 亮点云建站-网站建设制作平台 | 实验室pH计|电导率仪|溶解氧测定仪|离子浓度计|多参数水质分析仪|pH电极-上海般特仪器有限公司 | 会议会展活动拍摄_年会庆典演出跟拍_摄影摄像直播-艾木传媒 | 深圳市宏康仪器科技有限公司-模拟高空低压试验箱-高温防爆试验箱-温控短路试验箱【官网】 | MES系统工业智能终端_生产管理看板/安灯/ESOP/静电监控_讯鹏科技 | 新密高铝耐火砖,轻质保温砖价格,浇注料厂家直销-郑州荣盛窑炉耐火材料有限公司 | EPDM密封胶条-EPDM密封垫片-EPDM生产厂家 | 重庆磨床过滤机,重庆纸带过滤机,机床伸缩钣金,重庆机床钣金护罩-重庆达鸿兴精密机械制造有限公司 | 快速门厂家批发_PVC快速卷帘门_高速门_高速卷帘门-广州万盛门业 快干水泥|桥梁伸缩缝止水胶|伸缩缝装置生产厂家-广东广航交通科技有限公司 | 喷砂机厂家_自动除锈抛丸机价格-成都泰盛吉自动化喷砂设备 | 微水泥_硅藻泥_艺术涂料_艺术漆_艺术漆加盟-青岛泥之韵环保壁材 武汉EPS线条_EPS装饰线条_EPS构件_湖北博欧EPS线条厂家 | 伊卡洛斯软装首页-电动窗帘,别墅窗帘,定制窗帘,江浙沪1000+别墅窗帘案例 | 带式压滤机_污泥压滤机_污泥脱水机_带式过滤机_带式压滤机厂家-河南恒磊环保设备有限公司 | 齿轮减速机电机一体机_齿轮减速箱加电机一体化-德国BOSERL蜗轮蜗杆减速机电机生产厂家 |