E
E
ettaluni2020-12-30 11:45:54
User interface
ettaluni, 2020-12-30 11:45:54

Is there a native way to write a GUI in html/css for C++ programs?

Now I put electron on node js, how simple everything is there. GUI is just an html file.
In C ++, I did not find a normal library for implementing this. QT is heavy for the sake of one widget.
GTK+ hasn't figured out yet whether it's possible to shove webkit gtk into a project and catch events...
All other libraries are paid (comm use)

Are there easier ways to organize WEBUI, how can I shove a lightweight browser into a program? I don't know any Midori there.
Everything is naturally considered in the context of linux

Answer the question

In order to leave comments, you need to log in

5 answer(s)
H
HemulGM, 2020-12-30
@HemulGM

Stop messing around and use normal GUI tools for a specific language.
Qt -heavy for one widget? And the browser for one widget is not heavy?
Write on Sharp or Delphi then. There, the GUI is much better and easier.
PS qt allows you to use css to customize controls.

A
acwartz, 2020-12-30
@acwartz

Yes, on crosses sciter . The shell of the same Eset / avast and many others, on it.

A
Armenian Radio, 2020-12-30
@gbg

If Qt is considered "heavy" for you, then alas, there is no way. The browser engine pulls about 50-100 megabytes, Qt, With all the bells and whistles, takes the same amount, however;
Qt is included in the distribution of almost all modern Linuxes, and the program linked to it takes a couple of hundred kilobytes. You don't need to carry Qt along with your program.

A
Asad Ganiev, 2021-01-07
@asadganiev

There is also Chromium Embedded Framework. It is written in C++, better than electron and faster. You can even shove a ReactJS application in there and enjoy.

A
Alexey, 2021-01-07
@poweruser

I suggest not to trifle and immediately implement REST ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question