#C++ GUI apps
25 messages · Page 1 of 1 (latest)
Don't, honestly use C# instead
If you don't already know, yoiu need to know / learn about libraries, how to use and include them correctly in your build system etc before you can start with GUI
something easy to get started would be to use visual studio instead of visual studio code
the setup process and the way to include libraries are more trivial and intuitive to start with without much configuring. '
Also there are a lot of different GUI frameworks and libraries for C++ programming like Qt, Imgui, sfml
thanks
for example iif you are using cmake
Simple and Fast Multimedia Library
then here's a setup / template that would help you get started
and here's the setup for cmake in vscode
but over all of that I would recommend using this setup as it's probably going to be easier:
https://www.sfml-dev.org/tutorials/3.0/getting-started/visual-studio/
Simple and Fast Multimedia Library
There is a UI lib that looks very promising to me, but I'm new to C++ and I'm trying to import and use it, but without success. I don't know what I should learn to use such a lib.
oh yeah this is kind of a simplified version of winrt winui3 where you use c++ and xml
also when I press english on the website it's still just chinese lol
lol
This one seems pretty simple, just follow these steps in vscode:
I am going to try
@red gull has reached level 1. GG!
I just tried and got some errors when trying to build and run, but it was related to xmake, I haven't used it before but yeah try it looks good.
me to, like:
xmake
[ 10%]: compiling.release vendor\LCUI\src\lcui.c
[ 11%]: compiling.release vendor\LCUI\src\lcui_settings.c
[ 11%]: compiling.release vendor\LCUI\src\lcui_ui.c
[ 12%]: compiling.release vendor\LCUI\lib\ui\src\ui_block_layout.c
[ 12%]: compiling.release vendor\LCUI\lib\ui\src\ui.c
[ 13%]: compiling.release vendor\LCUI\lib\ui\src\ui_css.c
[ 13%]: compiling.release vendor\LCUI\lib\ui\src\ui_debug.c
[ 14%]: compiling.release vendor\LCUI\lib\ui\src\ui_diff.c
[ 14%]: compiling.release vendor\LCUI\lib\ui\src\ui_events.c
[ 15%]: compiling.release vendor\LCUI\lib\ui\src\ui_flexbox_layout.c
[ 15%]: compiling.release vendor\LCUI\lib\ui\src\ui_image.c
[ 15%]: compiling.release vendor\LCUI\lib\ui\src\ui_logger.c
[ 16%]: compiling.release vendor\LCUI\lib\ui\src\ui_metrics.c
[ 16%]: compiling.release vendor\LCUI\lib\ui\src\ui_mutation_observer.c
[ 17%]: compiling.release vendor\LCUI\lib\ui\src\ui_rect.c
[ 17%]: compiling.release vendor\LCUI\lib\ui\src\ui_renderer.c
[ 18%]: compiling.release vendor\LCUI\lib\ui\src\ui_root.c
[ 18%]: compiling.release vendor\LCUI\lib\ui\src\ui_text_style.c
[ 19%]: compiling.release vendor\LCUI\lib\ui\src\ui_tree.c
[ 19%]: compiling.release vendor\LCUI\lib\ui\src\ui_updater.c
[ 20%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget.c
[ 20%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_attributes.c
[ 20%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_background.c
[ 21%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_border.c
[ 21%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_box.c
[ 22%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_box_shadow.c
[ 22%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_classes.c
[ 23%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_hash.c
[ 23%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_helper.c
[ 24%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_id.c
[ 24%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_layout.c
[ 25%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_observer.c
[ 25%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_prototype.c
[ 25%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_status.c
[ 26%]: compiling.release vendor\LCUI\lib\ui\src\ui_widget_style.c
[ 26%]: compiling.release vendor\LCUI\lib\ui-xml\src\ui_xml.c
[ 27%]: compiling.release vendor\LCUI\lib\timer\src\timer.c
[ 27%]: compiling.release vendor\LCUI\lib\thread\src\pthread.c
[ 28%]: compiling.release vendor\LCUI\lib\thread\src\windows.c
[ 28%]: compiling.release vendor\LCUI\lib\worker\src\worker.c
[ 29%]: compiling.release vendor\LCUI\lib\css\src\computed.c
error: ui_xml.c
vendor\LCUI\lib\ui-xml\src\ui_xml.c(312): error C2220: o aviso a seguir é tratado como um erro
vendor\LCUI\lib\ui-xml\src\ui_xml.c(312): warning C4090: 'função': diferentes qualificadores 'const'
vendor\LCUI\lib\ui-xml\src\ui_xml.c(345): warning C4090: 'função': diferentes qualificadores 'const'
> in vendor\LCUI\lib\ui-xml\src\ui_xml.c
yeah something like that
well if you want to make a UI i would recommend Imgui(https://github.com/ocornut/imgui) or qt. If you want to make games or other graphics related apps you may also need an engine or make your own. If you lmk what exactly you wanna build i can let you know what options you have