EvilZone
Programming and Scripting => C - C++ => : Hound December 06, 2013, 08:50:27 PM
-
Hey I'm learning c++ right now and soon to be learning GUI, but in the video the guy is using a drag and drop programe to make the GUI and I don't like that idea, I would rather make the button myself what do you guys think?
A little more information:
Before c++ I was learning html and I like the idea of programing the interface myself, like setting the width and height of buttons and text boxes. I also really like to play around in more of a console, terminal based environment.
-
Nothing wrong with drag and drop. If you can get the same result but 10x faster then that's great.
-
To code everything yourself is fun in the beginning... but believe me, bro, when you'll start serious coding you'll say fuckit and use drag and drop yourself.
It's kinda the same for android, how ever you have to mostly write the elements yourself (for complex designs) and use the visual editor to view how it looks. Same with python (because no really good UI editors exist, well except for Qt maybe...).
To answer your question - it is OK to do drag and drop to speed up your coding, because when you do big programs, you simply cannot be bothered to add buttons by writing code.
I even use the tools and methods Eclipse provides for Java programming to generate repetitive code for me and other stuff to speed up the coding process... it in no way degrades your coding skill... it's simply a thing to ease your life.
-
Not to mention most widget toolkits and GUI frameworks are absolutely abysmal and verbose. GUI builders can be of great help, especially if you're doing rapid application development.
-
Not to mention most widget toolkits and GUI frameworks are absolutely abysmal and verbose. GUI builders can be of great help, especially if you're doing rapid application development.
wxWidgets sucks... It is essentially a variation of MFC afaik, and consequently inherited lots of the bugs that MFC had initially. It was intended to allow users familiar with MFC migrate to a more stable framework, and still seems to think that it should work on Win95/98/2K along with ANSI as an option alongside Unicode. QT is much better and well documented. FLTK isn't bad, and I usually use GTK+ for Linux. But most of my Windows projects aren't super large, so I've designed my own template using the Win32 API that allows me to construct most programs that I only need platform specific to Windows fairly easily.
//
Aside from that... If you don't need a fancy GUI, the Win32 API usually does the trick half of the time. All in all though, there is absolutely nothing wrong with drag and drop GUI features. Why reinvent the wheel? Do you honestly thing most of the advanced software out there today was created all manually? lol
It all depends on whether the overhead of using QT or not is worth the difference in filesize for your project IMO--IF, you care about filesize. Seems to be a project specific decision to be made.
-
Drag and Drop is fine. When you can code GUI's manually. If you can understand how to code GUI's and could write one yourself, then it's your decision. Me personally. I say Fuck coding those annoying pieces of shit lol.
-
OP is not a member here anymore, no need to reply then.
-
Hello Hound,
May I know what program that guy was using?
I interested in drag n drop stuff as I have to make a quick application with c++ using GUI!
It'll help me alot!
-
afaik Codeblocks have a visual designer for wxwidgets. Then there is C++builder. Probably Visual c++ has a designer too...
-
Hello Hound,
May I know what program that guy was using?
I interested in drag n drop stuff as I have to make a quick application with c++ using GUI!
It'll help me alot!
I wouldn't advise drag and drop for you. I mean from the sounds of it, you don't have an idea how to hard code it from scratch and you are looking for a shortcut. I was at you level once when i thought i am a leet programmer if i could just get a GUI going but its you being lazy and digging your own grave. i suggest you grab a QT/C++ books, pour over it for a week n come back for an answer as to what is used for drag n drop.
-
Ok
and thank you!
-
I assume you're a fan of MFC then too, if you like wxWidgets...? ??? QT is by far, better IMO. The bulk hardly means much to the average user anymore due to the capacity of today's hdd's. Although that bulk is not disadvantageous when it comes to larger projects that require a more functional UI either, and the documentation for QT is much better than what you can get with anything of wxWidgets.