Name a better C++ framework.
Name a better C++ framework
Other urls found in this thread:
doc.qt.io
doc.qt.io
en.wikipedia.org
winprog.org
rosettacode.org
x.org
github.com
electron.atom.io
twitter.com
GTK
/thread
>works on nothing other than the big 3
there's none. it's the only reason to ever use C++
>Doesn't have microsecond-based event system
Complete and utter garbage
I would, but I can't. It's just fucking good. Simple as that.
OP said better, not worse.
>moc
this, and loading qml and icon/imageformat plugins at runtime is kinda annoying too
There is verdigris though, by the author of moc, that makes it unnecessary
Also 5.6.0 had a few cosmetic bugs that impacted my commercial application, rolled back to 5.5.1 until 5.6.1 came out and fixed them
Wut? You mean one that prevents the CPU from sleeping, draining the battery?
You three are idiots, GTK isn't even C++, it's C.
Despite the huge and disgusting build system, Qt is still the best choice.
Windows API.
QT is trash desu baka senpai.
What is this? How is it different than an IDE? Why use this over an IDE?
Not shit posting, I actually don't know what you guys are talking about a lot of the time but want to learn more. I read the QT entry on wiki, and it just sounds like an IDE for the purpose of making programs with GUI.
The C++ standard library.
>I actually don't know what you guys are talking about
It shows. Qt is a framework, QtCreator is an IDE.
Qt is a library that has everything and a kitchen sink for you to use when you write your program in C++. Mainly UI related stuff.
Qt does not require an IDE. It can also be used with Visual Studio as IDE and also with Qt Creator - a veruy good IDE created specifically for Qt.
Boost.
Thanks.
but it's 2016 and we have a standardized thread library now
anyone here knows where can i get a general overview of qt?, the documentation only shows specific classes
There is so much more.
I hate the naming madness though.
Looks like Java.
C++11 standard library wait shit beat me to it
But it works in C++ too
I was creating this application where I wanted to make it visual for people to see what was going on.
I put a msleep in the thread so the user could decide the playback speed.
Without thinking more about it, I just let people set a value between 0 and 1000, thinking 0 would be without delay.
But for some reason, msleep(0) puts the thread to sleep and then wakes it up again immediately.
Why would you ever want to do that?
I just made a wrapper to not call msleep if it is zero, but who the hell would implement it like this?
>but who the hell would implement it like this?
someone who wouldn't want to call a function for no reason
gtkmm
>I just made a wrapper to not call msleep if it is zero, but who the hell would implement it like this?
People who figure that the programmer would want the thread to sleep if someone called the sleep function. If the programmer doesn't want it to sleep all he has to do is ... not call the sleep function. This lets you sleep for less than 1ms.
That was what I ended doing.
doc.qt.io
>Forces the current thread to sleep for msecs milliseconds.
I nearly ripped out the multi threading for this reason, it was a nice setup, but it was slow as hell.
There's a GUI standard library in c++ now?
Read the OP, now read my post.
Now read yours.
Read all of them.
Qt allows you to create UI.
Standard c++ library does not.
Standard c++ library can't be better than Qt.
Hope this helps!
I think you are confused.
We aren't only talking about UI frameworks
Oh, yes. We are finding one that is the best of them all. and those that can't do UI are simply not even qualified to participate.
the standard library allows you to make text user interfaces.
>UI is everything
UI is not everything - just a requirement for a framework that wants to claim the title of the best.
and the standard library meets that requirement
What you consider to be UI is actually not in the eyes of the general public.
are we talking about the best framework for the general public, or are we talking about the best framework for a programmer?
OP's question was vague
Best framework for all those groups combined.
Find some sample code and build from there. The documentation of actually excellent
It barely works at all on anything that isn't Gnome. And where it works, it doesn't play nice with the environment. It's a Gnome-only tool and will hopefully follow that shitty DE into irrelevance.
you're triggering my autism
My apologies.
Can't you make something visually appealing by using standard libraries to resemble what Qt offers?
Of course it is all done in Qt but you can build visual things like buttons and shit by yourself without frameworks.
No, of course not. You only have stdout and stderr to work with - text streams. To draw elements yourself without a dedicated framework you still have to use native API for the platform you're writing for.
I see, can you name some of those platform dependant APIs?
Obviously I am noob in this area, I just wanted to catch some useful info from more knowledgeable anons.
>Can't you make something visually appealing by using standard libraries to resemble what Qt offers?
lol
en.wikipedia.org
They're all shit, especially MFC.
Win32 API:
winprog.org
For linux, it's not Linux native API but rather API of X server, a program that hogs the monitor all to itself on a computer running Linux:
rosettacode.org
x.org
No idea about OSX.
Thank you both. Appreciate it.
i'm using loonix can i learn winAPi inside virtual machine? or it is better to install dualboot?
Wine actually has all of the WinAPI implemented, so you can learn with that.
Just use something like Ollydbg and WinASM and then you're set.
ncurses
...
he's trolling, retard. winAPI is an abomination.
Hey, I heard that Qt has some problems with HiDPI scaling. Is that true?
Let's implement a good file picker and HiDPI support. It can't be so hard when we can print with various DPIs since like roughly 30 years
Tcl.
>No idea about OSX.
I'm assuming it would be Cocoa, the previous versions had a different name if I remember correctly.
I'm starting to wonder if it's better to just bite the bullet and always write native UI code, focusing on ease of integration in your common base. Honestly it seems like no matter what you do with UI development you're going to have a bad time or end up with an ugly program.
Which framework provides HTML based GUIs?
And in what language can the code be written in in?
I like HTML because it is so easily understandable and also completely platform independant.
Electon, electron? Something like that. I'm not endorsing it. Why not just use some other structured format like XML, JSON, etc. or have a webui using html in the browser?
>C++11 standard library
even if we disregard the GUI stuff, the parts of Qt that correspond to the standard lib are much better than it
this, 100000 times.
Embarcadero's VCL.
>/threading your own post
dubs confirm
WinAPI.
Literally can't complete with that.
Qt is just overbloated bullshit.
>a better C++ framework
>C++ framework
>C++
Oh boy, here we go..
Unless, of course, you want your program to run on other platforms.
Though then one could argue that'd it'd be better to write native front ends for other platforms (Cocoa/GTK+/whatever).
It's still in the early stages and it's plain C, not C++, but it shows real promise: github.com
It's a single C-based UI library that compiles to WPF, Cocoa, GTK+, and Qt (your choice) so no matter where you're running, the UI will be truly native (can even make both GNOMEfags and KDEfags happy at the same time) all with a single codebase. It's sanely designed and fills in gaps in functionality between platforms instead of taking the crappy lowest common denominator approach, and has bindings for an increasing number of languages (since it's easy to create bindings to C libraries).
Development has been quite rapid so far and if that continues it'll quickly become one of the better options for cross-platform UI development.
it works on other unix-like OSs
GTK supports HiDPI
used to be carbon i think
electron, you can write in HTML, CSS, and JS
electron.atom.io
>WinAPI
It's an absolute shit. Takes 2000 lines of allocating and filling structs to do anything.
Is there any point to using this framework if you aren't make a GUI app?
Nice, thank you. But coding the logic solely in JS is not really what I am looking for for my idea.
I knew that already, but I like the fact that Qt is crossplatform, I'm tempted to try a project in Qt. I already made the move from iTunes on OS X to Clementine and I haven't looked back since, because now I use Windows, Linux and OS X all at once and do not have to switch my music players anymore. It's always the same. Same goes for FF. Cross platform apps are ultimate killer programs. They make OSs a thing of less importance.
>placing priority on laptops/smartphones over desktops
Complete and utter garbage