目前只是在visual studio里写完了代码、以前从来没有做过可视化界面,查了下用easyx和qt的比较多,我的程序希望包括以下几个功能:获取输入文件地址,运行代码的按键,几个更改代码内部参数的窗口。请问下大家用哪个做比较好。
以下答案引用自GPT-3大模型,请合理使用:
示例。
如果你要做一个Windows应用程序,我建议你使用Visual Studio。如果你要做一个Linux或MacOS应用程序,我建议你使用Qt。
EasyX是一个很好的选择,它可以帮助你快速创建可视化界面。但是,如果你想要更多的控制和功能,我建议你使用Qt。
Here is an example of how to create a basic GUI with EasyX:
easyx.Window window = new easyx.Window();
Window.setTitle("Hello World!");
Window.setSize(640, 480);
Window.setPosition(100, 100);
Button button = new Button("Click Me!");
button.addEventListener("click", function() {
Window.alert("You clicked the button!");
});
easyx.layouts.Layout layout = new easyx.layouts.VerticalLayout();
layout.addWidget(button);
window.addLayout(layout);
easyx.show(window);
如果我的回答解决了您的问题,请采纳我的回答