#C++ GUI apps

25 messages · Page 1 of 1 (latest)

shut sorrel
#

How can I use C+++ to make GUI programs? (I use Visual Studio Code)

dense seal
hexed shell
#

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

shut sorrel
#

thanks

hexed shell
#

for example iif you are using cmake

#

then here's a setup / template that would help you get started

#

and here's the setup for cmake in vscode

red gull
#

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.

hexed shell
#

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

red gull
#

lol

hexed shell
red gull
#

I am going to try

worldly cobaltBOT
#

@red gull has reached level 1. GG!

hexed shell
#

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.

red gull
# hexed shell I just tried and got some errors when trying to build and run, but it was relate...

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
hexed shell
#

yeah something like that

worn tinsel
# shut sorrel How can I use C+++ to make GUI programs? (I use Visual Studio Code)

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

GitHub

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies - ocornut/imgui