Qt Tutorial 2 : C++ Calculator

  Рет қаралды 166,213

Derek Banas

Derek Banas

6 жыл бұрын

Get the Code : bit.ly/qt-tut2
Best Qt Book : amzn.to/2KvFTsQ
/ derekbanas
MY UDEMY COURSES ARE 87.5% OFF TIL January 16th ($9.99) One is FREE
➡️ Python Data Science Series for $9.99 : Highest Rated & Largest Python Udemy Course + 56 Hrs + 200 Videos + Data Science bit.ly/Master_Python_44
➡️ C++ Programming Bootcamp Series for $9.99 : Over 23 Hrs + 53 Videos + Quizzes + Graded Assignments + New Videos Every Month bit.ly/C_Course_44
➡️ FREE 15 hour Golang Course!!! : bit.ly/go-tutorial5 (100 Available)
The most requested next C++ app you guys asked for was a calculator, so here it is. We'll make a C++ GUI Calculator app in one video. Along the way we'll learn a lot! We'll cover a topic which confuses many people which is how to setup event handling with Signals and Slots. We'll also cover how to work with widgets in many ways, setting up an interface, stylesheets, casting, regular expressions and much more.
Brought to you thanks to contributions from my Patreon subscribers such as perl6.org/

Пікірлер: 259
@sebastianschimper5556
@sebastianschimper5556 3 жыл бұрын
In case anyone is following the tutorial with Qt6: QRegExp is depreciated. To spare you a look in the documentation, the interior of the "CangeNumberSign()" function can be re-written as follows: #include // [...] void Calculator::ChangeNumberSign() { QString displayVal = ui->Display->text(); QRegularExpression reg("[-]?[0-9.]*"); QRegularExpressionMatch match = reg.match(displayVal); if(match.hasMatch()) { double dblDisplayVal = displayVal.toDouble(); double dblDisplayValSign = -1 * dblDisplayVal; ui->Display->setText(QString::number(dblDisplayValSign)); } }
@sebastianschimper5556
@sebastianschimper5556 2 жыл бұрын
@KiwiX No worries, glad I could be of help :)
@zloy_vorobushek5889
@zloy_vorobushek5889 2 жыл бұрын
Thank you very much, bro!
@ikramjmouhi4036
@ikramjmouhi4036 Жыл бұрын
Thank youuuuu!!
@yuikozhang5650
@yuikozhang5650 Жыл бұрын
Many many Thank YOU!!!
@gateausalaire1872
@gateausalaire1872 7 ай бұрын
Thank you so much for the help
@adriengrzesiak598
@adriengrzesiak598 2 жыл бұрын
Really nice packaged tutorial. I'm being enjoying a lot of your other tutorials in C++. Thank you Derek.
@lekjov6170
@lekjov6170 6 жыл бұрын
Thanks for everything you do and the time you spend on helping us. As someone whose main language is not English I can say that your voice is so unique that it can be understood perfectly without subtitles. Keep it up and wish you the best!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :) That is great to know that so many people find these helpful
@samweiss3248
@samweiss3248 5 жыл бұрын
Hi Derek. Thanks for the helpful tutorial. For whomever it may help, I found a couple of bugs. First, numbers are tacked onto the end of the current display when number buttons are pressed. This is a problem once the display switches over to scientific notation. The numbers get appended to the exponent instead of the main number. This can easily be fixed by getting rid of newVal in the NumPressed method and replacing dblNewVal with "double dblNewVal = displayVal.toDouble() * 10 + butVal.toDouble();". So basically, you multiply the current display by 10 and add it to the currently entered digit. The second bug is that your regex excludes scientific notation numbers from being negated. Perhaps I am missing something, but it looks like there is no need for a regex at all. All of the input is limited to what you can press on the calculator, so regex seems like overkill. Maybe just get rid of the regex in ChangeNumberSign and replace the condition of the if statement with "QString::compare(displayVal, "") != 0". This way, if the +/- sign is pressed in between operations (when the screen is blank), nothing will happen to the sign. Also the setText call in the same method should use the 'g' flag again to switch to scientific notation after 16 digits.
@cluelesssimmer5856
@cluelesssimmer5856 3 жыл бұрын
i've just started to learn C++ and QT. immensly helpful video. thank you
@akira1228
@akira1228 6 жыл бұрын
At last, QT Tutorial, that's what I've waited for ages. Thank You :)
@derekbanas
@derekbanas 6 жыл бұрын
I hope you find it useful :)
@KwabenaAmoah-ce3qj
@KwabenaAmoah-ce3qj 4 күн бұрын
Hi can you teach me how he added button 7,0 1,3,4..
@davidthompson3876
@davidthompson3876 4 жыл бұрын
The speed is just right. Thanks for a really great tutorial.
@derekbanas
@derekbanas 4 жыл бұрын
Thank you very much :)
@dildgemckenzie8597
@dildgemckenzie8597 6 жыл бұрын
This great Derek. Real use applications and learning.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) Many more are coming
@josbexerr5166
@josbexerr5166 5 жыл бұрын
Excelente Mister Dereck..... , a ver si nos deja un ejemplo de Qt usando Golang que es mi lenguaje favorito
@DrCrowie
@DrCrowie 4 жыл бұрын
Great tut as usual! Just one comment it might have been good to put your Math function triggers into a Container object like QList or QMap, it would have demonstrated some of the useful general purpose data types that come with Qt. It also would have meant a few less lines of code ;)
@Astran0th
@Astran0th 4 жыл бұрын
Really, really good Tutorial! Thank you a lot for that, helped me greatly.
@derekbanas
@derekbanas 4 жыл бұрын
I'm happy I could help :)
@harikrishnanb.a.628
@harikrishnanb.a.628 4 жыл бұрын
Sir, your videos give learners a perfect headstart. Expecting more videos...
@derekbanas
@derekbanas 4 жыл бұрын
Thank you very much :)
@rodrigodasilva8404
@rodrigodasilva8404 6 жыл бұрын
Some times I think. How can he knows all this things? Would you make a video teaching how to learn better?
@derekbanas
@derekbanas 6 жыл бұрын
I'm working on it. It is a matter of having the right tools and breaking learning up into bite sized pieces through out the day
@amirhassan6549
@amirhassan6549 3 жыл бұрын
@@derekbanas Qt has a lot of things in his documentation.
@YoungMesrine
@YoungMesrine 3 жыл бұрын
@@amirhassan6549 too much things for real, they should show us the technics they use.
@arminized3210
@arminized3210 6 жыл бұрын
thanks for this good tutorial.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you for watching it :)
@chrisschick6054
@chrisschick6054 5 жыл бұрын
(5 calculations into testing the app...) "THIS CALCULATOR HAS NO DECIMAL!!!" Super fun tutorial, can't wait to Qt it up some more.
@derekbanas
@derekbanas 5 жыл бұрын
That's funny :) Either way I'm happy you liked it
@2271masoud
@2271masoud 6 жыл бұрын
I enjoyed watching this video Thanks Derek
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
@kenfuciusfpv2800
@kenfuciusfpv2800 5 жыл бұрын
Derek, I can sit down and do these things, but my biggest blocker is I never have the environment setup right. Can you go over some "how to setup your environment in one video" lessons, and maybe do it for several environments (pycharm, several C++ free environments, setting up one with maybe other editors like that popular one, sublime text, maybe one for Mac vs Windows users. These environment setups really stop me from doing a lot.) Thanks!
@huzaifaimran9468
@huzaifaimran9468 4 жыл бұрын
I too had this problem man Here's the link to a demo video kzbin.info/www/bejne/n5Cyf4WngLGZh9U
@brock2k1
@brock2k1 5 жыл бұрын
Spent hours trying to find out how to do some stuff before I found the answer here. Great video, thank you.
@derekbanas
@derekbanas 5 жыл бұрын
Thank you :) I'm happy I could help
@vivek3861
@vivek3861 6 жыл бұрын
Best channel on KZbin and great teacher.......
@derekbanas
@derekbanas 6 жыл бұрын
Thank you for the nice compliment :)
@skd1860
@skd1860 6 жыл бұрын
Make tutorials on ai.
@derekbanas
@derekbanas 6 жыл бұрын
I'm working on it
@developerninja619
@developerninja619 4 жыл бұрын
@@derekbanas can you please tell me is Qt good for mobile (I mean both Android and iOS) development?
@azizulkarim5619
@azizulkarim5619 6 жыл бұрын
Thanks a lot for other good qt tutorial. Expecting more tutorials on qt.
@derekbanas
@derekbanas 6 жыл бұрын
I'm happy you liked them :)
@jessicalaursen1790
@jessicalaursen1790 6 жыл бұрын
Amazing! You make it look so simple and fun to do! Great video! I'll start and check this out for myself. Thanks Derek...continue making great videos!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you for the nice compliment :) Many more are coming
@KwabenaAmoah-ce3qj
@KwabenaAmoah-ce3qj 4 күн бұрын
​@@derekbanas Hi can you teach me how he added button 7,0 1,3,4..
@safhardy8978
@safhardy8978 6 жыл бұрын
From Bangladesh, thanks Derek for another wonderful video, you are amazing!
@derekbanas
@derekbanas 6 жыл бұрын
You're very kind thank you :)
@user-ql7pw7ld1n
@user-ql7pw7ld1n 2 ай бұрын
fantastic loved it
@chinmaydas4053
@chinmaydas4053 5 жыл бұрын
Thank you sir,we want lot of videos on different applications made by c++,qt.. it's possible by great like you sir...
@derekbanas
@derekbanas 5 жыл бұрын
Thank you :) I'm happy I could help
@conradpretorius_remaxjac
@conradpretorius_remaxjac 2 жыл бұрын
Hi Derek, should each widget have its own header file or each widget rather defined as a class in the .cpp?
@sabaudzilauri7307
@sabaudzilauri7307 4 жыл бұрын
Very talented teacher! thanks.
@derekbanas
@derekbanas 4 жыл бұрын
Thank you very much :)
@qianbang_
@qianbang_ 6 жыл бұрын
wow another Qt tutorial. I really need to learn C++ to enjoy these
@derekbanas
@derekbanas 6 жыл бұрын
A bunch more are coming. Qt is great
@hjw9347
@hjw9347 3 жыл бұрын
Really good Tutorial, thanks for posting
@derekbanas
@derekbanas 3 жыл бұрын
Thank you :) I'm happy I could help
@ahmadel-bobou276
@ahmadel-bobou276 6 жыл бұрын
Hey, Derek! Thanks for creating these videos. Do you mind me asking how you learned Qt?
@derekbanas
@derekbanas 6 жыл бұрын
I'm happy you liked it :) Mainly from the website
@jessj9877
@jessj9877 5 жыл бұрын
Derek, how could we implement the buttons to activate with the keyboard as an optional input method?
@sealbatross
@sealbatross 3 жыл бұрын
thank you!
@larrybishop5139
@larrybishop5139 6 жыл бұрын
Derek thankyou for the amazing tutorial. Would you consider doing a C++ tutorial for Unreal Engine 4?
@derekbanas
@derekbanas 6 жыл бұрын
I'll do anything if I get enough requests.
@bubel40
@bubel40 5 жыл бұрын
you are the best, thanks for this tutorial
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much :)
@kenlaw3376
@kenlaw3376 6 жыл бұрын
Thanks for the tutorial! Is there a reason you used if else instead of a switch statement?
@derekbanas
@derekbanas 6 жыл бұрын
I'm happy it helped :) Personal preference was the reason
@nestorcolt
@nestorcolt 5 жыл бұрын
Hey mate, a question: in Calculator::NumPressed() method, minute 22 -> why do you create a new QPushButton *button to get the sender ? is this not possible just by setting up a parameter in this method by default and sending the widget in the SLOT(NumPressed(widget)) ? . I come from PyQt this is why I'm asking this kind of question. thanks in advance
@pijusmankus6838
@pijusmankus6838 4 жыл бұрын
I might be add some ClearButton function like: void colculator::on_Clear_clicked() { ui->Display->setText("0.0"); }
@Vitonolable
@Vitonolable 6 ай бұрын
my version is: void Calculator::on_btn_Clear_released() { double calcVal = 0.0; ui->Display->setText(""); }
@zdspider6778
@zdspider6778 3 ай бұрын
Such a deceptively simple concept, _a calculator._ But you learn SO MUCH by adding functionality to it. Like period support, backspace support, keyboard input support (hint: the "*" and "/" keys are called "Qt::Key::Key_Asterisk" and "Qt::Key::Key_Slash", not "Qt::Key::Key_division" and "Qt::Key::Key_multiply").
@danielmoisemontezima9098
@danielmoisemontezima9098 4 жыл бұрын
I don't fully understand the course yet. But I like the delivery. Thumbs up teacher!
@derekbanas
@derekbanas 4 жыл бұрын
Thank you very much :)
@RobertWildling
@RobertWildling 3 жыл бұрын
Nice! Thank you very much! - But shouldn't a calculator have at least a comma button?
@draoi99
@draoi99 6 жыл бұрын
Very good tutorial thank you.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
@JustinZaf
@JustinZaf 5 жыл бұрын
thanks for replying me back there and man you're like an idol too me,i just want to gain knowledge as much as you have i hope i can meet you someday can you please tell me how to get started into os development like a step by step approach ?
@zdspider6778
@zdspider6778 3 ай бұрын
Thank you! This was incredibly educational. 21:54 That 'if' condition doesn't make any sense. Because ".toDouble()" gives you a 'double'. Don't compare it to an 'int'. Both conditions are identical. 27:09 "Qt::CaseInsensitive" seems unnecessary since there's no uppercase or lowercase there. Those are symbols. 31:11 Don't just blindly divide... Check if you're dividing by zero first! I'm surprised it doesn't crash. Qt must be catching exceptions under the hood.
@8010225325
@8010225325 6 жыл бұрын
please don't stop here. Make more videos on Qt :)
@derekbanas
@derekbanas 6 жыл бұрын
I'm planning at least 2 more
@daanielacosta2395
@daanielacosta2395 6 жыл бұрын
Thank you derek bananas :D
@derekbanas
@derekbanas 6 жыл бұрын
I'm happy to help :)
@navoiy17
@navoiy17 4 жыл бұрын
Cool! Elin dert gormesin, gardash! Ko'p yashang!
@russellmcnamara6107
@russellmcnamara6107 6 жыл бұрын
Derek I have been in jail for about a year and just got out I thought of you and your videos every single day I was in jail you are an inspiration to me everything about your videos is amazing
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :) I wish you all the best for your future
@gopinathkrm58
@gopinathkrm58 6 жыл бұрын
Very nice tutorial.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
@FritsvanDoorn
@FritsvanDoorn 6 жыл бұрын
Hi Derek, some years ago you made a series about refactoring. I think that this example will be a valuable cadidate for another splendid refactoring video. By the way, I found this video more interesting than the World Championship in Russia. :)
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) Yes I plan on making a bigger algorithms and refactoring tutorial series for C++. When I made one for Java I cut them a bit short because at the time nobody was watching them. I would have loved to watch the World Cup because I'm a soccer coach, but I've been obsessed with learning Japanese for the last 2 months.
@ikramjmouhi4036
@ikramjmouhi4036 Жыл бұрын
in case someone needs the other functions here's how I did it : void Calculator::Memoire() { QString displayVal = ui->Display->text(); MemoireVal = displayVal.toDouble(); ui->Display->setText(""); } void Calculator::MemoireCall() { ui->Display->setText(QString::number(MemoireVal)); } void Calculator::MemoireClear() { MemoireVal = 0.0; } void Calculator::Clear() { ui->Display->setText(""); }
@russelwebb8853
@russelwebb8853 6 жыл бұрын
Thanks dude
@derekbanas
@derekbanas 6 жыл бұрын
I'm happy to be of help :)
@gloatsticks
@gloatsticks 5 жыл бұрын
I get to 19:15 and I'm wondering where did you get the function release() from? I'm having a rough time setting up my onclick listener with slots.
@gloatsticks
@gloatsticks 5 жыл бұрын
also up to this point, where do you specify the function of numPressed()? I apologize, I have a function written as a class in c++ and I can NOT for the life of my get it to activate when I press on a button.
@vishalghuman
@vishalghuman 6 жыл бұрын
Derek please on html5 With meta and division tags more covering
@derekbanas
@derekbanas 6 жыл бұрын
Here is an HTML5 tutorial kzbin.info/www/bejne/oXXce4FtprZ4iqM and CSS3 kzbin.info/www/bejne/eYbbeZKojLh8Z80
@amirhassan6549
@amirhassan6549 3 жыл бұрын
Please upload more and more projects Project building is a great way of learning. Most important thing is how will you deploy this as a software having DLL and exe files where we can easily start our software if you dont mind make a video on deployment of software.
@adharshrnair8284
@adharshrnair8284 6 жыл бұрын
Please try to do a tutorial for creating DLL files in C++ And keep up the good work
@derekbanas
@derekbanas 6 жыл бұрын
I'll see what I can do :)
@Hejizo
@Hejizo 4 жыл бұрын
Hello< when i compile the program i got : Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use: QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors. QT_SCREEN_SCALE_FACTORS to set per-screen DPI. QT_SCALE_FACTOR to set the application global scale factor. i've used qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", QByteArray("1")); in the main but still the same
@GobblowGalaxyGamer
@GobblowGalaxyGamer 6 жыл бұрын
Hey Derek! I'm going to be applying to some internships this year and I've heard that personal/side projects are a good way of increasing your chances of getting a job. What are some simple, easy, yet great personal coding projects to build that will look good on my resume? :)
@derekbanas
@derekbanas 6 жыл бұрын
Yes most definitely. It needs to be a project you are passionate about. I got hired at Apple mainly because I made a VR system with a custom head mounted display and a hacked Nintendo power glove. It doesn't matter what the project is, but it should be big and something you love merged with programming or electronics.
@GobblowGalaxyGamer
@GobblowGalaxyGamer 6 жыл бұрын
Wait you work at Apple? How come you never made a video called "What it's like working at Apple", or "How to get an interview at Apple?". I think a lot of people would love to see that.
@8010225325
@8010225325 6 жыл бұрын
Derek i read somewhere in one of your videos. You use xamarin for mobile app dev , how is it compared to Qt ?. Qt also allows mobile dev and which framework or tech stack you use for web dev ?
@derekbanas
@derekbanas 6 жыл бұрын
Yes I use Xamarin and I much prefer it over Qt for mobile development
@8010225325
@8010225325 6 жыл бұрын
Oh okay. I have only used Qt so far for mobile app dev, never tried Xamarin till now maybe i will give it a shot
@mitchelldonnelly1971
@mitchelldonnelly1971 5 жыл бұрын
Am I the only one horrified by the use of global variables?
@zenomat
@zenomat 4 жыл бұрын
Am I the only one horrified by the constant use of the word "aaaaanddd ... " ?
@ephestos2144
@ephestos2144 4 жыл бұрын
its not a problem for such small projects if one codes like he does in this video. Even less of a problem when using long meaningful names. For much bigger projects are definitely a minefield. I would not recommend their usage either, because a beginner is very likely to use short generic names where name clashing even in small code becomes a big issue and a big pain.
@jvapr27
@jvapr27 Жыл бұрын
Yeah. If he was teaching proper coding styles, I would agree with you. I feel like he isn't though. More like how to use qt.
@KwabenaAmoah-ce3qj
@KwabenaAmoah-ce3qj 4 күн бұрын
Hi can you teach me how he added button 7,0 1,3,4..
@nazirhussain7116
@nazirhussain7116 2 жыл бұрын
love you
@smileifyoupoopie9926
@smileifyoupoopie9926 4 жыл бұрын
duude you have many habits that are considered as "smelly" in Cpp. Global variables, complicated nested cs, deprecated casting style, not using modern features like auto keyword (which is boss in Qt5 btw) etc. Anyway that's a good work. Have a nice day!
@sanjaybhat4260
@sanjaybhat4260 3 жыл бұрын
Hey thats incomplete tutorial, how will u render the app and give it logo and all. do u need to open IDE everytime and run it
@macinm97
@macinm97 6 жыл бұрын
Could you create tutorial where you explain how to connect qml and c++? Maybe any bigger project? I think that it's good idea. Please consider my mind.
@derekbanas
@derekbanas 6 жыл бұрын
Yes I plan on covering it
@macinm97
@macinm97 6 жыл бұрын
When i can expect it? ;)
@derekbanas
@derekbanas 6 жыл бұрын
Sorry I don't have a definite time frame. ASAP
@reemashrestha9718
@reemashrestha9718 3 жыл бұрын
why are we redefining the global variables? why is it wrong if we don't do that? could you explain it a bit further?
@gorgoneimpertinence4805
@gorgoneimpertinence4805 6 жыл бұрын
Very nice Video please continue with common use cases using/read/write configs/files, create settings editor, control/execute/detect system apps python bash zsh
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) I'll try to do my best
@revtube9294
@revtube9294 2 жыл бұрын
I don't know why but my program doesn't accept QRegExp but accepts QRegularExpression and again says Syntax Error. I added #Include and then nextline with reg.exactMatch, it says exactMatch is no member in QRegularExpression.. Can you please help me???
@ZiadxKabakibi
@ZiadxKabakibi 3 жыл бұрын
Some people *don't have the form file calculator.ui nor calculator.cpp nor calculator.h* It's because that class has a different name (I think it's because of Qt edition they changed the way to name classes) To solve this (for me it was mainwindow) just write *MainWindow::* instead of *Calculator::* I hope it's clear why this is the solution
@saugatpaudel8777
@saugatpaudel8777 6 жыл бұрын
How do you know so much man? I am amazed. Is there some way you learn or are you just that talented?
@derekbanas
@derekbanas 6 жыл бұрын
I'm not that smart. I'm sure of that. I'm going to upload a video soon on how I study, but I think I basically do the same as everyone else. Flash cards, studying all day in short bursts when I'm not busy, exercise when I get stressed out by learning, etc.
@derekbanas
@derekbanas 6 жыл бұрын
Here is a short day in my life. 1. Wake up and study while I drink a smoothie and coffee (Flash cards or book) (1 hr) 2. Shower and then work on regular job stuff (2 hrs) 3. Run 30 minutes 4. Work 1.5 hrs 5. Lunch while studying (Flash cards or book) 30 minutes 6. Work 2 hrs 7. Run 45 minutes 8. Study while drinking water (Flash cards or book) 30 minutes 9. Make dinner while studying 1 hr 10. After dinner I study or work during time remaining for the day I hope that helps
@saugatpaudel8777
@saugatpaudel8777 6 жыл бұрын
Derek Banas I am quite sure I'll learn from that video as well..please upload as soon as possible.
@yolamontalvan9502
@yolamontalvan9502 5 жыл бұрын
Can you make a video on How to Learn a Programming Language like you? or How to be like you?
@derekbanas
@derekbanas 5 жыл бұрын
I mainly break things down into roman numeral lists and then memorize and maintain knowledge with a free program called Anki. Look for my Anki tutorial on youtube
@lulsec
@lulsec 6 жыл бұрын
Just one question sir how do you learned so many programming languages 😫😌😅
@guillermo4472
@guillermo4472 3 жыл бұрын
What's that font? Looks cool
@gsniteesh3794
@gsniteesh3794 6 жыл бұрын
what does namespace ui{ class calculator; } mean ? Is it equal to declaring calculator class inside the namespace
@derekbanas
@derekbanas 6 жыл бұрын
We use namespaces to avoid conflicts if other code uses a function of the same name.
@parthmaurya3868
@parthmaurya3868 4 жыл бұрын
Hi at the run time this demo on Linux machine I am getting this warning: QObject::connect: Cannot connect (nullptr)::clicked() to Calculator::NumPressed() and during the pressing button nothing is happening ...
@duyduy5595
@duyduy5595 11 ай бұрын
Can you make incremental search function?
@dumisilendlovu3777
@dumisilendlovu3777 5 жыл бұрын
dd u install all the tools for this qt
@daristotell
@daristotell 6 жыл бұрын
Adobe animate tutorial? Also thank you for all your tutorials. Your hard work is appreciated.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you for watching :) Sorry I don't own AA
@daristotell
@daristotell 6 жыл бұрын
No problem Can you do any adobe cc tutorial or is it out of question?
@derekbanas
@derekbanas 6 жыл бұрын
Sorry I only have my outdated Adobe tutorials at the moment
@daristotell
@daristotell 6 жыл бұрын
Derek Banas Don't worry sir. You don't have to do everything.
@fabianzh5577
@fabianzh5577 4 жыл бұрын
Alhamdulillah tubes saya terbantu
@dharshikas458
@dharshikas458 Жыл бұрын
i need hmi program qt creator for converting (km/hr to m/s ) using labels(eg:pushbutton,label,lineedit)
@MyOnlineSupportchannel
@MyOnlineSupportchannel 3 жыл бұрын
QT or RAD studio ?
@texasaggie2378
@texasaggie2378 6 жыл бұрын
Please do cmake next
@derekbanas
@derekbanas 6 жыл бұрын
I'll see what I can do
@pranavlabdhe4657
@pranavlabdhe4657 5 жыл бұрын
please help me i am getting this error warning: no previous extern declaration for non-static variable.
@muhammetalperdem9901
@muhammetalperdem9901 5 жыл бұрын
Same here
@meerawounders292
@meerawounders292 3 жыл бұрын
Actually I have a doubts the output should show like this (1+1+2*3/) how we get both numbers and operators in a display
@mr.veryqqinteresting879
@mr.veryqqinteresting879 6 жыл бұрын
First comment, first like, without watching the full video :D.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :)
@phoenix2464
@phoenix2464 6 жыл бұрын
Are you going to do some c++ networking ?
@derekbanas
@derekbanas 6 жыл бұрын
Yes at some point
@vivek3861
@vivek3861 6 жыл бұрын
Sir can you teach it with gtk library too which is also a cross platform gui library and it is free. Because some major applications like VLC media player is also built on it according to my knowledge. Please........................
@derekbanas
@derekbanas 6 жыл бұрын
I'll see what I can do
@hamidurrahman3183
@hamidurrahman3183 6 жыл бұрын
Can you please do a tutorial in JavaFx and JDBC? Thanks
@derekbanas
@derekbanas 6 жыл бұрын
I'll see what I can do
@bachandhakal5863
@bachandhakal5863 3 жыл бұрын
my PC 2 GB ram 1.8ghz cpu 64 bit processor No graphic card Can qt run in my pc No then what are light framework or editor for app development.
@enescerrahoglu
@enescerrahoglu 3 жыл бұрын
'QRegExp' was not declared in this scope. I get this error
@adamw4323
@adamw4323 5 жыл бұрын
member acces into incomplete type 'class Ui::Calculator' I can't figure out what's wrong and why I am getting this error, anybody knows?
@ZiadxKabakibi
@ZiadxKabakibi 3 жыл бұрын
Your main ui file is not called Calculator.ui so you have instead mainwindows instead. Thus, you should use MainWindow:: everywhere he wrote Calculator:: I guess it's because we have different editions so the classes' names were different from the tutorial gonna copy this comment outside also
@fafamnzm3126
@fafamnzm3126 6 жыл бұрын
Do you have any tutorials on how to setup a website? Like from scratch to the top. One that is practical. Whether with WordPress or without it.
@derekbanas
@derekbanas 6 жыл бұрын
Do you mean the design? I have tutorials on all of the above. I make a whole site design here kzbin.info/www/bejne/b5erhJWfeK6GhaM Wordpress design here kzbin.info/www/bejne/fZnRo6udoJKdecU I have other tutorials on my channel for PHP, MySQL, JavaScript, JQuery, etc....
@fafamnzm3126
@fafamnzm3126 6 жыл бұрын
Derek Banas yeah, I saw them last night. Do you mean the one with designing a webpage and inkspace. I didn't get it how that designed the webpage, as it turned into a simple image. I mean like what is a host and setup a website from getting the domain and a host and how to connect a android app to the website. You teach very well and thank you.
@derekbanas
@derekbanas 6 жыл бұрын
If you get an account at a place like Go Daddy, or any other they'll have a thing called the control panel in which you upload your code. If you want to use Wordpress you'll click on a link on the site and it will install Wordpress. Do a search for the hosting company and Wordpress and they'll show you everything step by step. I hope that helps
@fafamnzm3126
@fafamnzm3126 6 жыл бұрын
Derek Banas ok, tnx. I also thought it would be a good topic to cover as the demand for it is at a high level and many people would enjoy it too. 😊🤗 or as a summary to all the topics related covered. Like build from scratch and update it using php or asp.net. thanks for your great channel ❤
@fazilklkt8247
@fazilklkt8247 6 жыл бұрын
Love from INDIA
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) I have many friends from India
@fazilklkt8247
@fazilklkt8247 6 жыл бұрын
I'm a begginer and I learned a lot from you
@derekbanas
@derekbanas 6 жыл бұрын
I'm very happy to be of help :)
@lulsec
@lulsec 6 жыл бұрын
Ilya Zhidkov 😂😂😂🤣🤣🤣🤣👍
@ashishkumarverma4985
@ashishkumarverma4985 6 жыл бұрын
Make a tutorial on how to make games in Javascript covering canvas sprite movement mouse evnt etc all that from which we can create our own games and please focus on object touching and crashing part i m waiting for this thank you derek
@derekbanas
@derekbanas 6 жыл бұрын
I'll see what I can do. I made a huge game series with Unity already
@ashishkumarverma4985
@ashishkumarverma4985 6 жыл бұрын
No not i in unity only on webbrowser because everyone do not have unity so i cannot demonstrate please make a 🙏🙏🙏🙏. Please please
@frenchmike
@frenchmike 4 жыл бұрын
when I created the project, and got into Kit Selection, nothing was highlighted and I am not sure what to add, any help?
@angucbac2655
@angucbac2655 4 жыл бұрын
you should install the Qt again, i think the offline install is better.
@Hidalgo_71
@Hidalgo_71 4 жыл бұрын
I have an error QObject::connect: Cannot connect (nullptr)::released() to MainWindow::numPressed()
@jaguarjaguar5619
@jaguarjaguar5619 6 жыл бұрын
I need gravit designer tutorials
@Steven-um9st
@Steven-um9st 2 жыл бұрын
But In qt 6 It will be go like that QString display=ui->label->text(); QRegularExpression reg("[-]?[0-9.]*"); QRegularExpressionMatch match=reg.match(display); if(match.hasMatch()){ double dblDisplay=display.toDouble(); double dblDisplayValSign=-1*dblDisplay; ui->label->setText(QString::number(dblDisplayValSign)); }
@nitinchauhan_18
@nitinchauhan_18 6 жыл бұрын
sir, please tell which text editor use in this series .
@derekbanas
@derekbanas 6 жыл бұрын
I'm using Qt Creator. I show how to set it up in the first video
@nitinchauhan_18
@nitinchauhan_18 6 жыл бұрын
Thank you sir
@hakzhub
@hakzhub 4 жыл бұрын
Hey man I know am 2 years late and all but I am having a assembler message error can you please help
@kyleb8211
@kyleb8211 5 жыл бұрын
Please help! In the calculator.cpp at 15:14, my Qt says: allocation of incomplete type 'Ui::Calc'. How do I fix this?
@derekbanas
@derekbanas 5 жыл бұрын
I have the code here for free www.newthinktank.com/2018/06/qt-tutorial-2-c-calculator/
@achabra7541
@achabra7541 3 жыл бұрын
I had this same problem, for me it was because while creating the project in the beginning I didn't rename Class Name from "MainWindow" to "Calculator". I then tried renaming it after the project was created and got that error.
@filipbehindmountain7427
@filipbehindmountain7427 5 жыл бұрын
When i type "double calcVal = 0.0;" there appears an error: "no previous extern delcaration for non-static variable 'calcVal' ". I'm doing everything EXACTLY the same like on video. Can't really find any solution in the internet. Can someone help me?
@derekbanas
@derekbanas 5 жыл бұрын
Put static in front of it and it will go away
@coz_DS
@coz_DS 5 жыл бұрын
Hello, I realize this was done about a year ago, however I just found it today. I think, for my taste, you forgot the decimal point. I would really like to learn to make a nice "big" calculator for my laptop touch screen. I use Fedora 30 Mate, QT Creator 4.9.1, and know very little to nothing about programming. Your video had me with great hopes until I didn't see the decimal point, unless I missed something. If I did, I apologize. However, I have not found any video or online stuff for building a calculator that fits what I need. But still, Many many thanks for as far as this video took me. If you have any suggestions, I would more than appreciate it.
@derekbanas
@derekbanas 5 жыл бұрын
Sorry about the decimal. I made a JavaScript calculator with a decimal here and it would be easy to use that code as a guide to add that functionality kzbin.info/www/bejne/aGO0cqCMmNl0g8U
Qt Tutorial : C++ Notepad App
38:18
Derek Banas
Рет қаралды 442 М.
the TRUTH about C++ (is it worth your time?)
3:17
Low Level Learning
Рет қаралды 637 М.
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 5 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 53 МЛН
Qt Calculator GUI Tutorial Part 1
15:02
Programming Liftoff
Рет қаралды 133 М.
How to use Qt Layouts
19:18
Velcode
Рет қаралды 90 М.
Cross Platform Graphical User Interfaces in C++
44:49
javidx9
Рет қаралды 861 М.
C++ Tutorial 17 : Sequence Containers
22:48
Derek Banas
Рет қаралды 25 М.
Use Arc Instead of Vec
15:21
Logan Smith
Рет қаралды 138 М.
Video 1.2 -  QT   Simple calculator
7:14
icgindia
Рет қаралды 2 М.
C++ Tutorial 10 : Object Oriented Programming
40:25
Derek Banas
Рет қаралды 240 М.
C++ Tutorial 8 : Recursion Algorithms & Overloaded Functions
31:43
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 5 МЛН