G
G
German2018-12-29 13:02:32
User interface
German, 2018-12-29 13:02:32

So how to write a GUI in C++?

Here it would be desirable to write at least the simple program with GUI.
You also need the ability to use Boost in your GUI project.
Writing on WinAPI is nonsense, nothing is clear, the simplest empty window of 60 lines, lol, you can’t even add the simplest button there, heresy incomprehensible to me.
So why write this damned GUI in order to use C ++ and libraries, other heresy, all sorts of CLRs do not allow using C ++, why the hell then libraries and other mess, if the CLR will not allow MessageBox to be called in the usual way.
Excuse me for being emotional, at least leave C ++ with this nonsense.

Answer the question

In order to leave comments, you need to log in

9 answer(s)
S
Sergey Gornostaev, 2018-12-29
@mrjbom

Qt

R
Roman, 2018-12-29
@myjcom

At least the section - Graphic user interface
at https://en.cppreference.com/w/cpp/links/libs
technofractal.tk/gui-visual-studio-2017

#include<Windows.h>
using namespace System;

int main(array<System::String ^> ^args)
{
#pragma comment(lib, "User32.lib")

  MessageBox(NULL, L"Hello World!", L"Hello World Box", 0);
  return 0;
}

Picture
5c277c19289c3838265467.png

G
GooRoo, 2018-12-29
@GooRoo

https://www.ultimatepp.org/

R
Roman Mirilaczvili, 2018-12-29
@2ord

Choice

O
Oleg Gamega, 2018-12-29
@gadfi

at least throw C ++ with this nonsense.

Apparently, you haven’t really begun to study it yet (no reproach)
if we’re talking about cross-platform children’s C++, then there’s no adequate replacement for qt, if only windows, then take wpf and don’t invent unnecessary problems for yourself Threat
in general, it’s worth starting from tasks and from the realities of your geography

D
developer007, 2018-12-29
@developer007

Use this https://ultralig.ht/
Previously it was called Awesomium ( https://habr.com/post/183826/)
where you can attach C++ functions to JS and get results from C++
once made a cool IDE for your assembler. UI was just made on this thing (html, css, js).
In js, add vuejs/angularjs or use jquery - not the point
Thanks to this, you can make a very cool interface. It just doesn't work in QT. It will take a lot of time to kill there.

A
asd111, 2018-12-30
@asd111

Drop C++. Switch to C#.

S
Sergey Kushnirenko, 2018-12-30
@dalerank

Nanogui, nngui works wherever there is opengl/es

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question