Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Cross-platform GUI framework for C++

Name: Anonymous 2018-08-31 23:35

So far I've only done command line programs in C++. I want to make GUI programs in it now though. Should I use Qt or GTK+? Or something else?

Name: Anonymous 2018-08-31 23:45

It's almost 2019. Just use Electronjs

Name: Anonymous 2018-09-01 0:22

>>2
Very funny.

Name: Anonymous 2018-09-01 1:53

>>2
what if I don't want to use too much ram and have memory leaks?

Name: Cudder !cXCudderUE 2018-09-01 3:20

Win32 or GTFO.

Name: Anonymous 2018-09-01 3:54

>>5
Win32? Buddy, it's been renamed to Windows API.
(Note that this was formerly called the Win32 API. The name Windows API more accurately reflects its roots in 16-bit Windows and its support on 64-bit Windows.)
https://docs.microsoft.com/en-us/windows/desktop/apiindex/windows-api-list

Name: Anonymous 2018-09-01 8:03

>>1
The rule is to never use gtk for anything.
Go for basically anything else, Qt is a good choice as it also has a great IDE (Qt Creator) which also allows you to design your GUIs in a way similar to Visual Studio.

Name: Anonymous 2018-09-01 12:23

>>5
how is this cross platform?

Name: Anonymous 2018-09-01 13:27

>>8
Wine

Name: Anonymous 2018-09-01 14:00

>>1
Probably SDL+some simple GUI lib, like one of these:
https://github.com/dalerank/nanogui-sdl
https://github.com/vurtun/nuklear
Note that I haven't actually tried one of these, so yeah, try at your own risk I guess.

Name: Anonymous 2018-09-01 14:42

>>10
Please avoid SDL. It is one of the worst libraries.

Name: Anonymous 2018-09-01 14:54

>>11
Why?

Name: Anonymous 2018-09-01 15:21

>>12
Many reasons actually. It has all kinds of useless bloat in it that pollute the namespace and make it harder to port (threads, Uint32, etc). It forcefully installs handlers for multiple signals, removing your own in the process (they removed the option to disable that recently), it lacks the ability to draw filled polygons - which is literally the only thing that one would want to use a bloated library like that, with the version 2.0 they split up the nice and cool surfaces into surfaces and textures which created a giant mess, some functions (such as SDL_AddEventWatch) do not return an error if they fail, etc.

Name: Anonymous 2018-09-01 18:37

So... GTK+ or Qt?

Name: Anonymous 2018-09-02 12:46

Why do you need it to be xplatform? Windows is the only env that matters. Mac is a closed market and Ubanto boys will default to the command line.

Name: Anonymous 2018-09-02 12:57

>>14
Qt

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List