C++ gui

I want make programs with interface's in C++, how i can do it?

Other urls found in this thread:

noesisengine.com
github.com/awesomeWM/awesome
github.com/Elv13/radical
wxlua.sourceforge.net/
docs.python.org/3/howto/curses.html
gnu.org/software/guile-ncurses/)
twitter.com/NSFWRedditVideo

1. Write program in C++
2. Compile
3. ??????
4. Profit

Qt

Gtk

which is better?

Make the GUI in Electron and then use WebAssembly to embed your C++ into the Electron app.

Neither. GUI's are for homosexual glow in the dark cia niggers

QT uber massive better.

this

The problem here is your question is a bit too broad.
C++ doesn't have anything built into it to make a GUI with out doing most of the leg work your self.
If you are looking to make a Windows GUI then Visual Studio installs C++ with Microsofts's GUI libraries. Visual Studio also has a lot of built in functionality that allows you to visually deign your window.
Beyond that there are a million other ways of making a GUI in C++, all depending on what you are making it for.

Use bare openGl

Qt is the shit. Never seen better documentation in my life.

recently found noesisgui
noesisengine.com
basically use blend to create wpf xaml files and you can use it in C++

neither can compare to motif tho

Qt is good, but it imposes GPL/LGPL obligations. Also, its a very big framework with several constraints which you need to be aware of.
GTKmm is fine on Linux but sucks everywhere else (Win32 backend still GDI)
WxWidgets is fine because it uses native controls, but it has bad tooling.
IUP is lightweight solution (You can even use Lua or LED), but you need to code by hand)
Nana uses modern C++ (C++14 afaik) but still poor in widgets
Libui is abandoned
Other solutions like Agar, CEGUI or Juce... But they are very specific.

C++ isn't oriented for RAD applications. Languages like Java are better here.

dont fell in this fucking memes, let C++ for the critical parts, and wrap an html+js page inside a webkit container.

>Qt is the shit. Never seen better documentation in my life.
actually its much better documented than M$ visual shit, idk why pajeets continues using that shity .NET frameworks.

> dont fell in this fucking memes, let C++ for the critical parts, and wrap an html+js page inside a webkit container.

this is why i support genocide

Note that I said 'the shit' not 'shit'.

Qt is the shit.

Qt. It's cross-platform, fully-featured, and has good collaboration with the community. GTK sucks anywhere other than Linux, and even on Linux too to be honest. WPF is pretty good on Windows, but that's a .NET thing and you're using C++.

Qt still have cringe problems

> Lack of native controls
> Meh deploy (QT Lite is getting better, but still meh)
> QTL (It's annoying have all stuff duplicated... QString, QList...)
> LGPL licensing (Fucking poison)
> MOC
> Critical bugs (I can't upgrade 3 of 5 applications because regressions)

This is the correct answer.
For C++, this is an incorrect answer.
This is true, but doesn't really answer OP's question.

These are bait.

does qt support any non-shit language yet? I mean anything that's not c++ and has decent static type checking (so no python either)

LUA

Just copy paste from the awesome windows manager.

github.com/awesomeWM/awesome

Check out pic related for the coolest lua gui.

>github.com/Elv13/radical

Aren't LUA guis just images?

awesome is bretty gud, but aren't you concerned that in a year or two they'll release a new version without backwards compatibility and all your hard configuration work will be null and void?

That's what keeps me from spending much time to configure software in fancy ways.

What is that supposed to mean?

I'd use Windows forms

Step 1. Learn C++
Step 2. Forget everything you learned in step 1 and learn how to use a GUI library

C++ guis are special hard code assembly pixels represented in memory by hexadecimal pointers.

He's talking about atual matrix theory. Quarks, gluons, and other bosons (including the higgs) are simply the computer code running on the last layer of the matrix which we interact with. Furthermore each sequence of bosons can be a script for something else to save memory for deeper matricies. For example (quark, gluon, mason) is the code for the strong nuclear force. Just as (quark quark, gluon) is the script for the electromagnetic weak force. You can understand this by thinking of squares, triangles, and spheres. Each single shape can represent a shape itself or when you add them together they can form more complex shapes, kinda like voxels.

Just go ask sci they can explain it better.

Oh yes, that makes a lot of sense now. Thank you for explaining!

>Qt is good, but it imposes GPL/LGPL obligations.
What are LGPL obligations, exactly?

>Also, its a very big framework with several constraints which you need to be aware of.
Can you give some examples? Personally, the thing that annoys me most is the lack of template support in the MOC.

I didn't understand a thing you just said.

Cyberpunk when?

...

> What are LGPL obligations, exactly?

Some Qt5 libraries (Core, GUI, Widgets) and 80% of all add-ons are licensed under the LGPLv3. Basically, you must dynamic link everything, make a cute "Qt5 about box" and (the worst part) make easy to end user to swap the Qt libraries if we want. This sucks because the deploy (on Windows at least) is huge (tons of DLLs for simple stuff). Others like the Charts and Data Visualization are GPLv3: You must release the source code. No excuses

No I mean aren't the GUIs just composed of pre-saved images that you import? That's how it works on ROBLOX.

>make a cute "Qt5 about box"
That is not true at all.

>make easy to end user to swap the Qt libraries if we want
Why is that so bad? That is easily possible with most libraries anyway (I can just replace the relevant DLLs).

I have no idea about qt but awesome draws vectors which you can ofc do with lua. I imagine qt uses vectors? But icons are image files.

Thats never happened to me because I have only used a rather simple set up and admittedly never successful got all of pic related to install right, so you may have a valid point. I imagine the work arounds are relatively simple though?

What is that supposed to mean?

Section 4-C
It's a must.

gt, gtk, elementary, wxWidgets, windows apis for drawing windows and boxs and shit.
You can even get the x11 library and roll your own drawings in the x window system to make your own gui by drawing lines and shit and get bonus points for pissing off other autists

You don't know what vector graphics are?

If you define a box in the code as Height: 30 pixels and Width: 45 pixels then the code "draws" a box on screen. I guess they may not be technically vectors if they don't include the angle but in "box" class I suppose the angles are defined as 90 degrees.

In other words, it isn't just drawing pre-rendered PNGs to the screen. Which answers this question:

You mean like abstractions of shapes which aren't really real, but when it comes time to show them they become real. Sorta like they're in a superposition of all possible file-sizes until they're observed by the interpreter and become static objects.
So it's not like my ROBLOX. How's the overhead on the WM? Does it leak harder than my Grandmother on Miralax trying to learn how to use Gnome (in this case gnome would be the leakier of the two)?

>You mean like abstractions of shapes which aren't really real, but when it comes time to show them they become real. Sorta like they're in a superposition of all possible file-sizes until they're observed by the interpreter and become static objects.
How much weed are you smoking right now?

>So it's not like my ROBLOX. How's the overhead on the WM? Does it leak harder than my Grandmother on Miralax trying to learn how to use Gnome (in this case gnome would be the leakier of the two)?
Awesome is light weight, fast and clean.

what is this cancer de?
I feel like collecting it.

>How much weed are you smoking right now?
I am exactly on the 0th plateau of the marijuana right now, my fellow anonymous American BBS forum poster.
>Awesome is light weight, fast and clean.
Show us your top.

>[email protected]
>Jose' Lepagee
Anime was very like a mistake.

>Show us your top.

Hot

Seriously awesome is the only WM I know of that can come even close to futuristic and low eye strain, but it still takes a bunch of customization and coding it yourself.

Why is it taking so fucking long for people to actually produce aesthetic UIs that dont give me a headache? Its not just anime. Almost every fictional UI from the 80s on have been hexagonal and blue yet IRL its just more of the same gay, headache inducing flat or skeuomorphic bs.

My only theory is that actual futuristic UIs don't take enough resources so they're not bloaty enough for apple and windows to enforce planned obsolescence. Otherwise people need to understand that just because coding boxes is easy doesnt mean that a triangle or goddamn hexagon would be soooo hard.

...

every de is either stuck in the 90s(lxde) or trying WAY too hard to be a tablet/phone de (gnome).
My guess is all of the de developers are just too stuck in their ways with hacked together bullshit to actually make a de from scratch to fit the scifi look that we want.
enlightenment or whatever their de is called actually made a good attempt but it just turned out to look like a broken playstation 2 action replay menu

Someday user.. someday..

On the bright side, that means there is a big gaping vagina of a hole in the "market." So there is a chance for somebody to meet the demand and make a name fore themselves.

I wonder if that kind of thing could be implemented into something like Ncurses so it would work directly in the terminal?

>could be implemented into something like Ncurses
DELID THIS!
for the love of god no.

Also good luck getting anyone to actually install a de made by some no name random. Even if it is open source people are gonna think you're upto something.

That's dumb because implies that electrons can move at different speeds in the same material. Go fuck yourself, and go back to the website you came from.

>what is baud rate

someone has never done acid before

What are you saying? Everyone has to start somewhere.. wouldn't this no name dev gain notoriety after a while hypothetically. If people vouch for the DE then why wouldnt someone trust them? Are you saying you trust corporations like google and apple more than open source devs?

Used Qt simply because
1, I know how to use it
2, has 99999 bindings

Lua is a scripting language that a lot of game engines support because it's extremely lightweight and easy to sandbox. It doesn't actually support GUI by itself though, games like Roblox and WoW have to expose their UIs to Lua.

True but there is this:
>wxlua.sourceforge.net/

It's not, it's just the most trivial way to satisfy that requirement.

Similarly, you don't have to dynamically link to the library, you can provide your source or intermediate object files instead.

don't use C++

But m8. It's the best programming language ever.

>Qt is good, but it imposes GPL/LGPL obligations.
>but
>GPL is somehow bad.

If you aren't writing free software you shouldn't be here. Please, kindly get the fuck

It's actually the least worst of the most used languages.

What can other languages do better?

Fuck no

Whats wrong with Nana's widgets?

I'm paranoid and my time in shay communities has made me even more suspicions of everything.
You are right, people would vouch for it and they would gain notoriety. But Id always have that nagging feeling in the back of my head every time I updated a package that this is they day they go for installs

Well window managers arent thatttt complicated. The guy that modded awesome obviously understands how the program works, so there would be hypothetically a number of devs that would review the code. You can just check the updates when you install them and if any exlpoits were found then it shouldnt be long before one of the arch fags notices.

And if this dev wants to keep his good reputation he would want his code to be free of vulnerabilities and leaving some obfuscated back door would be to risky to his name. And if this person is talented a future of creativity is a lot more in line with his self interests probably than a one time exploit.

use electron or nw.js

/thread

Ncurses? :DDDDDDDDD

I just happen to be making a tiling/nesting gui layout library in Guile/Ncurses right now.

You can use JNI and have a GUI made with Java and the rest in C++.

i guess if you want it to work well on one platform and moderate on others its probably fine, but consider electron, javascript is an easy jump from c++ and its easy to get started

>Lua is a scripting language that a lot of game engines support because it's extremely lightweight and easy to sandbox.
With LuaJIT it's also balls to the walls fast.

hmm, this part might be easier to recognize as ncurses code. ignore abrasive test colors...

Nope.
If you can't figure out how to write C++, maybe you shouldn't make programs.

lul if yall newb can't write the superior C++, kys pls lulululul

There is a difference between "able to figure out" and "want to use". C++ with Qt is pretty easy. It just isn't much fun.

If you're getting paid to do it, then fine. But if you're spending your own free-time working on something, why use tech you don't enjoy?

I didn't claim C++ was superior, I just said that if you can't figure out how to do the same thing in C++, you are not a good programmer.
C programmers can easily make a C++ gui for their applications using Qt.

Then use something else.
OP asked how to make a GUI for a C++ application. Qt is the right answer here.

Personally, I would prefer a graphical language to make GUIs.
I really like the syntax of tikz and I use this very often to make diagrams and stuff.
But if I need a GUI for my desktop applications, I write it in C++/Qt

>Then use something else.
No shit?

snice

I have no idea what it means though because i have never looked at ncurses code before. However, I *like* ncurses as a user.

Can you make hexagonal tabs with ncurses?.. cause that would be pretty fucking neato.

Imagine if someone made a "port" of Sup Forums for ncurses so we never had to logon with a regular browser ever again.

Imagine never starting an x session again in your life. How refreshing would that be? Imagine if we implemented this all into temple OS.

docs.python.org/3/howto/curses.html

Is this a good tutorial? And is that python... in your code? Sry Ima newb.

I don't know about that tutorial, I learned ncurses years ago from the manpages, using C.

That code is all in GNU Guile, a scheme dialect, using the Guile-Ncurses library (gnu.org/software/guile-ncurses/) The documenation for this library is decent enough, at least provided you already know your way around ncurses.

Probably the best way to learn ncurses is to write your own roguelike. That's what I did. Years back there used to be a pretty active community rec.games.roguelike.development that can provide a lot of help. I don't know if that's still active though, maybe search around for "rgrd", they used to have an IRC, maybe they still do.

>Can you make hexagonal tabs with ncurses?
Maybe with the right unicode characters.

Some terminal emulators have hacks to display images too. Check out 'ranger', it's a "vim inspired" (very loosely) file manager written in python with ncurses that supports image previews in some terminal emulators. Pretty slick piece of software.

I normally write the GUI in C# and load up the DLL I wrote in C++

Quick and easy