Qt Tutorial : C++ Notepad App

Поделиться
HTML-код
  • Опубликовано: 4 сен 2024
  • Code & Icons Here : bit.ly/qttut
    Subscribe to Me: bit.ly/2FWQZTx
    Best Qt5 Book : amzn.to/2Mg4LC9
    I thought it would be fun to make a real app in this Qt Tutorial, so I made a working Notepad app. We'll install Qt for Windows and MacOS. Then we'll cover Qt Basics, Dialogs, Widgets, Drag and Drop Interfaces, Creating / Opening / Saving Files, Menus, Toolbars, Icons, Printing, and much more.
    Qt is an amazing framework for creating cross platform C++ GUI applications.
    MY UDEMY COURSES ARE 87.5% OFF TIL February 13th ($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_...
    ➡️ C++ Programming Bootcamp Series for $9.99 : Over 23 Hrs + 53 Videos + Quizzes + Graded Assignments + New Videos Every Month bit.ly/C_Cours...
    ➡️ FREE 15 hour Golang Course!!! : bit.ly/go-tuto... (100 Available)
    Like the channel? Consider becoming a Patreon! Check it out here:
    ►► / derekbanas
    Watch More Learn in One Videos
    ►► Java - • Java Tutorial
    ►► C++ - • C++ Programming
    ►► Python - • Python Programming
    ►► MySQL - • MySQL Tutorial
    ►► PHP - • PHP Programming
    ►► Kotlin - • Kotlin Tutorial
    ►► C# - • C# Tutorial
    ►► JavaScript - • JavaScript Tutorial

Комментарии • 500

  • @derekbanas
    @derekbanas  5 лет назад +25

    Learn in One Videos for Every Programming Language
    Subscribe to Bookmark them: bit.ly/2FWQZTx
    C++ : ruclips.net/video/Rub-JsjMhWY/видео.html
    Python : ruclips.net/video/N4mEzFDjqtA/видео.html
    Java : ruclips.net/video/n-xAqcBCws4/видео.html
    PHP : ruclips.net/video/7TF00hJI78Y/видео.html
    MySQL : ruclips.net/video/yPu6qV5byu4/видео.html
    JavaScript : ruclips.net/video/fju9ii8YsGs/видео.html
    C# : ruclips.net/video/lisiwUZJXqQ/видео.html
    HTML5 : ruclips.net/video/kDyJN7qQETA/видео.html
    CSS3 : ruclips.net/video/CUxH_rWSI1k/видео.html
    JQuery : ruclips.net/video/BWXggB-T1jQ/видео.html
    TypeScript : ruclips.net/video/-PR_XqW9JJU/видео.html
    ECMAScript : ruclips.net/video/Jakoi0G8lBg/видео.html
    Swift : ruclips.net/video/dKaojOZ-az8/видео.html
    R : ruclips.net/video/s3FozVfd7q4/видео.html
    Haskell : ruclips.net/video/02_H3LjqMr8/видео.html
    Handlebars : ruclips.net/video/4HuAnM6b2d8/видео.html
    Bootstrap : ruclips.net/video/gqOEoUR5RHg/видео.html
    Rust : ruclips.net/video/U1EFgCNLDB8/видео.html
    Matlab : ruclips.net/video/NSSTkkKRabI/видео.html
    Arduino : ruclips.net/video/QO_Jlz1qpDw/видео.html
    Crystal : ruclips.net/video/DxFP-Wjqtsc/видео.html
    Emacs : ruclips.net/video/Iagbv974GlQ/видео.html
    Clojure : ruclips.net/video/ciGyHkDuPAE/видео.html
    Shell : ruclips.net/video/hwrnmQumtPw/видео.html
    Perl : ruclips.net/video/WEghIXs8F6c/видео.html
    Perl6 : ruclips.net/video/l0zPwhgWTgM/видео.html
    Elixir : ruclips.net/video/pBNOavRoNL0/видео.html
    D : ruclips.net/video/rwZFTnf9bDU/видео.html
    Fortran : ruclips.net/video/__2UgFNYgf8/видео.html
    LaTeX : ruclips.net/video/VhmkLrOjLsw/видео.html
    F# : ruclips.net/video/c7eNDJN758U/видео.html
    Kotlin : ruclips.net/video/H_oGi8uuDpA/видео.html
    Erlang : ruclips.net/video/IEhwc2q1zG4/видео.html
    Groovy : ruclips.net/video/B98jc8hdu9g/видео.html
    Scala : ruclips.net/video/DzFt0YkZo8M/видео.html
    Lua : ruclips.net/video/iMacxZQMPXs/видео.html
    Ruby : ruclips.net/video/Dji9ALCgfpM/видео.html
    Go : ruclips.net/video/CF9S4QZuV30/видео.html
    Objective C : ruclips.net/video/5esQqZIJ83g/видео.html
    Prolog : ruclips.net/video/SykxWpFwMGs/видео.html
    LISP : ruclips.net/video/ymSq4wHrqyU/видео.html
    Express : ruclips.net/video/xDCKcNBFsuI/видео.html
    Jade : ruclips.net/video/l5AXcXAP4r8/видео.html
    Sass : ruclips.net/video/wz3kElLbEHE/видео.html

    • @christiantutoriels1075
      @christiantutoriels1075 10 месяцев назад

      😅

    • @techeurekaexplore
      @techeurekaexplore 8 месяцев назад

      ruclips.net/video/MmosXE1KKhQ/видео.html

    • @user-ww2lc1yo9c
      @user-ww2lc1yo9c 5 месяцев назад

      I did not fully understand the description about the qobject given at around 12:30. Where can I find more details of this thing called qobject?

    • @user-ww2lc1yo9c
      @user-ww2lc1yo9c 5 месяцев назад

      About the constructor, what does "explicit" mean?
      Also, why isn't the pointer set to NULL but to 0 instead?

    • @user-ww2lc1yo9c
      @user-ww2lc1yo9c 5 месяцев назад

      Why not just use ui->textEdit->setText(""); ???

  • @narnbrez
    @narnbrez 4 года назад +172

    As of mid-Apr 2020 the toolbar is no longer included automatically. To get it, right click on your MainWindow object in the Object Tree [whatever you want to call it, the top right] and select add toolbar.
    Thanks for the vid Derek.

  • @2271masoud
    @2271masoud 6 лет назад +13

    I'm speechless. I don't know what to say. a fully functional notepad app in 30 minutes?! that's amazing Derek. you killed it. some people compare you with other youtubers but in my opinion you are incomparable. you are AWESOME. keep up the good job

    • @derekbanas
      @derekbanas  6 лет назад +1

      I'm very happy you liked it :) I do my best to cover a lot in one video

  • @fredericroland8204
    @fredericroland8204 4 года назад +2

    Thank you for this tutorial. I stopped C++ 18 years ago when I started C# at work and I feel the need to go back to my roots and you refresh my old C++ knowledge + teach me Qt at the same time.

  • @carlyc4357
    @carlyc4357 4 года назад +4

    I just downloaded Qt based on a recommendation from a friend, as soon as I saw your name pop up in a tutorial search I knew I'd learn something! Thanks, Derek!

    • @derekbanas
      @derekbanas  4 года назад +3

      Thank you for the nice compliment :)

  • @AnalogDude_
    @AnalogDude_ 5 лет назад +56

    i guess printSupport changed,
    #include
    #include

    • @AnalogDude_
      @AnalogDude_ 5 лет назад +12

      QString currentFile = "";, wont get accepted in QT5.7 and should be QString currentFile;
      QString filename = QFileDialog::getOpenFileName((this,"open the file")); should be: QString filename = QFileDialog::getOpenFileName(this,"open the file");,

    • @spctcl_
      @spctcl_ 4 года назад

      @@AnalogDude_ also you are the goat as well

    • @AnalogDude_
      @AnalogDude_ 4 года назад

      @@spctcl_ what's the problem?

    • @spctcl_
      @spctcl_ 4 года назад +3

      @@AnalogDude_ I was saying that you are the GOAT aka the greatest of all time for illuminating the problems with the syntax and updated QT. No problem anymore, thanks to you 😁

    • @AnalogDude_
      @AnalogDude_ 4 года назад +2

      @@spctcl_ Thnx, well it didn't compile and i had to find out why and i learned something new ... GOAT ... hahaha

  • @HephaistosForge
    @HephaistosForge 4 года назад +5

    You are my hero, Sir. I had some issues with some missing Kits, but that was fairly easy resolved as the installer only installed QT STudio and not QT itself. I run the QTMaintainance Application and Added QT under Components. Cheers Mate.

  • @ImpulseGundam
    @ImpulseGundam 3 года назад +10

    I learned more in this video than my entire Fall semester.

  • @oussamasingle7815
    @oussamasingle7815 6 лет назад +29

    Finally 😍 derek starts Qt series 😍😍 thanks man

    • @derekbanas
      @derekbanas  6 лет назад +14

      Sorry it took so long. I was sick for over a week, but I'm healthy again :D

    • @oussamasingle7815
      @oussamasingle7815 6 лет назад +7

      Derek Banas god bless you derek ❤

    • @derekbanas
      @derekbanas  6 лет назад +10

      May God bless you as well :)

  • @johnsknows3135
    @johnsknows3135 Год назад +5

    This was brilliant sir!
    Not sure how I would learn Qt without you!
    Thanks a bunch!

    • @ASTom3125
      @ASTom3125 Год назад

      yeap!he's amazing!

    • @techeurekaexplore
      @techeurekaexplore 8 месяцев назад

      ruclips.net/video/MmosXE1KKhQ/видео.html

  • @soda9023
    @soda9023 4 года назад +45

    Alright time to recreate the entirety of the Borland C++ IDE

    • @thehumanchannel9004
      @thehumanchannel9004 4 года назад +5

      Wow, it's been ages since I used any Borland product. You're taking me to the age before Facebook

    • @DeclanOKaneMD
      @DeclanOKaneMD 3 года назад +1

      Delphi 7 forever

    • @FPChris
      @FPChris 3 года назад +1

      Yep. Watching this I was almost feeling at home after YEARS of missing it.

    • @FPChris
      @FPChris 3 года назад

      27:00 what if user cancels the file open dialog?

  • @kateryna1611
    @kateryna1611 3 года назад +3

    If anyone is having problems with including QPrinter and QPrintDialog, it worked for me when I typed
    #include
    #include
    I don't know if it works correctly, but the error messages disappeared :)

    • @xavierreigneau41
      @xavierreigneau41 2 года назад

      I didn't need to import any libraries by doing this (33:26):
      QPrinter printer;
      printer.setPrinterName("Printer Name");
      QPrintDialog pDialog(&printer, this);

  • @russelwebb8853
    @russelwebb8853 6 лет назад +1

    A repository of knowledge, you are. Just a 20 year old checking in here; I strive to someday share this quality with you. I love this passion you have of teaching complete strangers all that you know.

    • @derekbanas
      @derekbanas  6 лет назад +3

      It is my pleasure to help and I use it as an excuse for spending numerous hours learning just about everything. I'm currently teaching myself Japanese, Machine Learning and Piano for tutorials that I'll probably start uploading a year from now :)

    • @russelwebb8853
      @russelwebb8853 6 лет назад

      Derek Banas For your tutorials on piano, I suggest not teaching chords themselves. Teach some general patterns shared in chords with key placements and such. I just uploaded a video of myself playing a Steinway and Sons grand piano for 16 minutes. Maybe try approaching music from a more psychological/emotional level, and the power of music to convey feelings.

  • @FritsvanDoorn
    @FritsvanDoorn 6 лет назад +1

    This is a true Derek Banas instructional video! In 2015 I did a project with Qt and C++ but then I did not had the Qt IDE available to use. It was an automatic control loop to verify the functioning of pressure transducers. My collegues all went on a Qt course, but on assigning parts of the project they discovered that they were one man short so they asked me. But I had not followed the Qt course. I read a book and just started using it and I finished the project with full satisfaction. I recently discovered that I used a lot the Facade Design Pattern to simplify the Qt calls. Guess where I learned to bring Design Patterns to practice. Thanks for the extra fun you bring in programming to the world.

    • @derekbanas
      @derekbanas  6 лет назад +1

      Thank you for the nice message :) I still find it hard to believe that people are actually finding my tutorials useful. Hearing the stories definitely motivates me to make more.

    • @sethtaylor7519
      @sethtaylor7519 6 лет назад

      They are VERY valuable, to many people, in many areas of skill. Keep up the great work!

  • @eddyecko94
    @eddyecko94 6 лет назад +30

    Hi Derek,
    I can't continue because my "Kits" field is empty unlike yours, I am a novice at QT thus I'll need some guidance to select the kit. Thanking you.

    • @meisam7144
      @meisam7144 5 лет назад +7

      Apparently you also have to install MinGW compiler. go to Qt>MaintenanceTool.exe and add MinGW to be installed.

    • @mryup6100
      @mryup6100 4 года назад +4

      To add more detail to Meisam's comment check out the following link to a QT forum about this issue: forum.qt.io/topic/84198/no-valid-kits-found/4

    • @mryup6100
      @mryup6100 4 года назад +3

      Also, if you get "incompatible with C++98" warnings check out this forum: forum.qt.io/topic/109856/incompatible-with-c-98-warnings-since-qt-creater-update

  • @dancobb2199
    @dancobb2199 4 года назад +3

    You, Derek Banas, are everywhere :-) I've been through most of your C++ tuts for my job, and I also need to dive into Qt (pronounce "cute" ;-) ) and of course, I found you here. You're the best! You're a hero.

  • @BobCornell_nbd
    @BobCornell_nbd 2 года назад +4

    This is really helpful in re-acquainting myself with Qt. However, for newbies like me, it's incredibly confusing when objects or variables are given names that could be confused with objects built in to Qt e.g. "text", "fileName" or "textFile". In C++ and other languages I work with I use prefixes such as "str" for Strings (strMyString), "bool" for Boolean (boolCycleIndex), "int" for integers (intCyclesToGo) or "flt" for floating point variables (fltDistanceToTheMoon). I look forward to following more of your tutorials.

  • @forzaparma5
    @forzaparma5 2 года назад +2

    For those getting the error:
    mainwindow.cpp:27:53: error: cannot initialize a parameter of type 'QWidget *' with an lvalue of type 'const char [14]'
    qfiledialog.h:195:45: note: passing argument to parameter 'parent' here
    In the mainwindow.cpp file, when assigning an action to the open button, just remove two parentheses as follows:
    FROM:
    QString fileName = QFileDialog::getOpenFileName((this, "Open the file"));
    TO:
    QString fileName = QFileDialog::getOpenFileName(this, "Open the file");

  • @texasaggie2378
    @texasaggie2378 6 лет назад +42

    You should do cmake next, one of my friends on stack overflow said it is very useful to learn. I can't find good documentation nor videos on the topic can you do one please!

    • @yiandev4368
      @yiandev4368 5 лет назад +6

      cmake is garbage avoid at all costs

    • @y.z.6517
      @y.z.6517 5 лет назад +14

      @@yiandev4368 Except that a lot of great projects use that "garbage". You'd better know it, if only to read other people's projects and resolve bugs.

    • @ShivamJha00
      @ShivamJha00 5 лет назад

      @@y.z.6517 true lol

    • @mortyjr2334
      @mortyjr2334 5 лет назад +1

      @@y.z.6517 cmake is absolute trash lol.

  • @AW_77
    @AW_77 6 лет назад +4

    I've been interested in finding more about Qt. I first came across it when installing KDE 1.1 in 1999.
    So I gather that since then it's spread from Linux to anything that can be coded in C++.

    • @derekbanas
      @derekbanas  6 лет назад +2

      Yes it is an awesome cross platform framework

  • @thefamily512
    @thefamily512 8 месяцев назад +1

    Tired of seeing Hello World examples, why cant there be more tutorials out there that jump right into the action? We need more people like Derek in the world. Let's help him get rich. Who's with me on this?

  • @LinaAliceAnderson
    @LinaAliceAnderson 5 лет назад +4

    To make the app more complete it would be nice to handle the cases when a user presses cancel/X instead of specifying the file path/name in Open or Save as. The return value in these cases is an empty string, so:
    if (fileName.isEmpty()) return;
    To add a custom icon one can add the following to the main file:
    w.setWindowIcon(QIcon(":/imgs/your-icon-name.icon-extension"));
    The .exe file will be represented by the icon in Explorer if one adds in .pro file:
    RC_ICONS = your-icon-name.icon-extension

  • @skaruts
    @skaruts 6 лет назад +29

    *_"Learn bit shifting sorcery in one video!"_*
    I personally would love to see that. :)

    • @linuxguy1199
      @linuxguy1199 6 лет назад +1

      skaruts Yes please, earlier today I finished up a C++ library for the ST7735 and I had to a shitton of bitshiftery since it has a 5 bits red, 6 bits green, and 5 bits blue scheme for setting the pixels you can see the source code at github.com/abc123me/fbgl

    • @neonz2712
      @neonz2712 3 года назад +1

      I once made a calculator without using any arithmetic operators, only bit-shifting. There's really no practical purpose behind it.

  • @akagaming9431
    @akagaming9431 6 лет назад +9

    Your experience and skill-sets are unparalleled(I'd go as far as to say you're even more experienced, if not as good as Bucky Roberts from thenewboston). I wish and aim to be as good as you in the future. I wanna learn more from you!
    Thanks for the video!

    • @derekbanas
      @derekbanas  6 лет назад +3

      Thanks for the nice compliment :) I promise anything I can do anyone else can do. It just takes time

    • @zulumopuku5370
      @zulumopuku5370 6 лет назад +1

      Bucky Roberts from thenewboston ? are u kidding me? Derek is a genius

    • @navidafzal1305
      @navidafzal1305 6 лет назад +2

      Top troll comment, 10/10

  • @chukwuka-steveorefo1812
    @chukwuka-steveorefo1812 6 лет назад +13

    OMG freaking awesome been waiting for this Qt tutorial!! Thanks Derek!!

    • @derekbanas
      @derekbanas  6 лет назад +2

      Thank you :) I hope you like it

  • @k.alipardhan6957
    @k.alipardhan6957 6 лет назад +2

    OMG this playlist is exactly want i tried to look for 6 months ago, i had no idea Qt existed. All the frameworks looked old and windows XP-ish.
    I knew there had to be something like swing and javaFX, for C++

  • @benjaminsmus8553
    @benjaminsmus8553 2 года назад

    To follow the tutorial verbatim, use qmake as your build tool. It makes your file structure look that same as the tutorial, and everything works. When I was using cmake, some things weren't working.

  • @PurushNahiMahaPurush
    @PurushNahiMahaPurush 4 года назад

    This looks so much better than wpf! Whenever I am using wpf, it takes an insane amount of time to do seemingly simple things that WinForms did with a couple of clicks. The learning curve for wpf is just insane. Its powerful if you know what you are doing, but for beginners and amateurs, it just sucks

    • @derekbanas
      @derekbanas  4 года назад

      I'm happy I could help :)

  • @misraaditya9213
    @misraaditya9213 2 года назад +1

    New here. The current installer for Qt configures things a bit differently. Notably, there's an additional configuration for the build system and the Clang kit is not available in the default installation.
    For someone who's played around with the older version too, what other settings have changed from the tutorials?

  • @davidconnelly
    @davidconnelly 3 года назад

    That's really great and you'd have to admit, the end product is better than Vim.

    • @derekbanas
      @derekbanas  3 года назад

      That's funny :) I'm happy you enjoyed it

  • @Lumary
    @Lumary 6 лет назад +1

    You helped me and some other students of my Semester to finish the first year of our Software Engineering studies successfully. Cant thank you enough, you are awesome! :)

    • @derekbanas
      @derekbanas  6 лет назад

      Thank you very much :) I'm happy I could be of help

    • @mrr4912
      @mrr4912 4 года назад

      Sorry, but is third year topic

  • @Hevletica
    @Hevletica Год назад

    Perfect kickstarting project for Qt in C++!

  • @beachwave5705
    @beachwave5705 5 месяцев назад

    have a SE internship interview wednesday!! someone on linkedin told me they will ask about QT experience. i have never coded in c++ (though i program in c, so a lot of stuff i feel like makes sense logic and syntax wise), and can go in atleast being able to say i have basic projects! (fake it till u make it lol)

  • @johnsilver5783
    @johnsilver5783 6 лет назад +44

    OpenGL tutorial?

  • @ronandaly5428
    @ronandaly5428 6 лет назад

    Thank you for your hard work...... If it was not for youtube tutorials like yours I would have never had the confidence to learn programming

    • @derekbanas
      @derekbanas  6 лет назад

      It is my pleasure to be of help :) It is great to know that my videos have helped so many people

  • @Chalisque
    @Chalisque 3 года назад

    If I am not mistaken, the file.close() lines are redundant since when the file object goes out of scope, its destructor will close the file. (RAII and all that.)

  • @philipchama2858
    @philipchama2858 6 лет назад +1

    Thank you so much, Sir. Enjoyed the lesson. I was wondering, how many videos do you plan to make in the Qt series? much appreciated as always.

    • @derekbanas
      @derekbanas  6 лет назад +2

      Thank you :) I'm not sure at this point. It depends on demand, and so far people seem to like it

  • @aorusaki
    @aorusaki 4 года назад +2

    Great and useful video! came here after looking for something similar to XCode or Android Studio but for C++ and cross platform gui development!

  • @fortifiedconcept4260
    @fortifiedconcept4260 6 лет назад

    You are the best derek! I am learning everyday from your videos. And I hope I will still learning from your great tutorials... Thank you very very much.

    • @derekbanas
      @derekbanas  6 лет назад

      Thank you very much :) I'm very happy that you are enjoying the videos

  • @koki10190
    @koki10190 2 года назад

    This is so easy and sick!

  • @jessib6966
    @jessib6966 6 лет назад +2

    I like the fast pace, thx a bunch the other tutorials make me sleep :-)

    • @derekbanas
      @derekbanas  6 лет назад +1

      I'm happy you liked it :)

  • @humeilmakhija9812
    @humeilmakhija9812 6 лет назад +1

    I Appreciate your HARD work brother......your tutorials are AWESOME as always. Can u make videos related to DATA Science??

    • @derekbanas
      @derekbanas  6 лет назад +1

      Thank you :) I'm working towards covering more advanced topics, but I'm trying to think of an interesting way to cover the math required such as linear algebra, statistics and calculus. I'll get there

  • @xiaonaiheme
    @xiaonaiheme Год назад

    Got best tut on gui..though 2022 new features a little time extra will take to understand

  • @xavierreigneau41
    @xavierreigneau41 2 года назад +1

    At 4:34 my options are all "grey" and I cannot check any of the boxes to proceed to the next step. Anyone run into this issue and knows how to fix it?

  • @markkohut153
    @markkohut153 3 года назад

    TY very much for this useful tutorial

    • @derekbanas
      @derekbanas  3 года назад

      I'm happy that you found it useful

  • @aleXelaMec
    @aleXelaMec Год назад

    Big thanks. Good and clear tutor. Just what I needed.

  • @salmonsalmon4668
    @salmonsalmon4668 Год назад

    Thank you for this tutorial!

  • @qianbang_
    @qianbang_ 6 лет назад +9

    I like to pronounce is cutie instead of cute. I realized I'm not alone.

    • @derekbanas
      @derekbanas  6 лет назад +2

      I agree that cutie sounds better :)

  • @exodus8814
    @exodus8814 6 лет назад

    Hello Derek :) I have a couple of questions that I've foune answers to, but I got confused.
    1- Different ways to instantiate a class.
    For example, suppose that we have a class called Ui, when should I instantiate it using pointers and new? Ui* p = new Ui(_passing normal arguments_ ) ;
    Then, why should we delete it using delete p?? What happens?
    2- The & reference operator.
    When we're cycling through a vector, why sometimes we include the & in the loop? Example, for(int& x:vector)? And I even saw && double reference operator.
    3-What exactly is a deconstructor? Why should we use one? I really didn't get the point of it, freeing resources.
    Honestly, every thing in C++ seems understandable, except for pointers, they are my biggest drawback.
    Thank you Derek :), I seriously hope that wasn't too much.

    • @derekbanas
      @derekbanas  6 лет назад

      && is an rvalue reference. Here is a great explanation because it is a rather complex topic www.artima.com/cppsource/rvalue.html Destructors just free up memory. Most of the time they are called automatically so you don't need to worry to much about them. A pointer stores a memory address using this format int* pVal. You can then retrieve a values address using the reference operator like this pVal = &otherVal. You can get the value at an address with the dereference operator *pVal. Play around and experiment and you'll get it. new is used when we want to create and initialize a new object, however sometimes objects are set up to initialize themselves by calling a containing function. This is how singletons work. I hope that helps

    • @exodus8814
      @exodus8814 6 лет назад

      Derek Banas Thank you very much Derek :), apologies for not searching that up, I regularly spend some time on stackoverflow browsing explanations, but for some reason I didn't and went straight into asking it here, sorry for that:)
      Yes I do understand pointers, but sometimes it just gets rather complicated especially with classes and structs. Speaking of structs I actually left a comment on your "C Tutorial 6". Might as well check it out if you have the time:)

  • @eleganteatinginjapan659
    @eleganteatinginjapan659 6 лет назад +2

    Exactly what I was looking for

  • @fab0527
    @fab0527 4 года назад

    Hey Derek, new to Qt. Trying to understand what the purpose of main.cpp is in qt, as opposed to CLI applications. Is the main window basically a replacement for main() ?

  • @theriddler2129
    @theriddler2129 2 года назад

    This tutorial is awesome! Thank you!

    • @derekbanas
      @derekbanas  2 года назад +1

      Thank you :) I'm happy you enjoyed it

  • @jongdonglu
    @jongdonglu 3 года назад

    Hi i dont know if you had this at the time of the video or not, but i have the clear(); function available for ui->textEdit-> and i just tried it and it seems to do the same as setText(QString()); i am wondering is there a difference or a benefit of one over the other? thanks!

  • @AdiosOcelote
    @AdiosOcelote 4 года назад +1

    Hi. I wanted to ask if Qt is actually free? I see everywhere that it is, but then I check their website and I only can buy, use it for 30 days for free or pick the open source one, and the open source download says "Simply put, this is how it works: In return for the value you receive from using Qt to create your application, you are expected to give back by contributing to Qt or buying Qt.", which basically tells me I HAVE TO contribute in Qt in a way in order to use it freely.
    Buying it doesn't come into account at all as I am one guy only and the pricing is insane.

    • @misraaditya9213
      @misraaditya9213 2 года назад

      For personal open source projects, you can use it for free.
      However, you will have to register for a Qt account.

  • @mattiaguazzaloca3363
    @mattiaguazzaloca3363 6 лет назад

    Awesome Tut Derek! I can't wait for seeing new episodes!!

    • @derekbanas
      @derekbanas  6 лет назад

      Thank you :) Many more are coming

  • @vishnukiran6162
    @vishnukiran6162 4 года назад +1

    The latest version of Qt isn't creating mainToolbar automatically. Any workarounds for this?

    • @krumpkrumpkrumpkrump
      @krumpkrumpkrumpkrump 4 года назад +1

      right click in the area and add it yourself. I did it just a moment ago

    • @zdspider6778
      @zdspider6778 5 месяцев назад

      @@krumpkrumpkrumpkrump Thank you.

  • @MijeshDeuja
    @MijeshDeuja 6 лет назад

    Really nice continuation of the C++ series.

    • @derekbanas
      @derekbanas  6 лет назад

      Thank you :) more are coming

  • @ProgrammingGuru
    @ProgrammingGuru 6 лет назад +1

    Great video Derek 👍
    I was just wondering that can we make this notepad a stand alone app for windows which works without Qt platform, as a real notepad does in Windows, which run on its own (like an app installed from its setup)? And how can we achieve that?
    Thanks for making these videos. 😀

    • @derekbanas
      @derekbanas  6 лет назад +1

      I'm happy you liked it :) Yes it will compile to a stand alone program

  • @hakimbettayeb6434
    @hakimbettayeb6434 4 года назад

    Hi, I do have a question though hoping to reach you out
    Suppose i want to add QKeyEvent for CTRL+S as a shortcut in the saveAs Function, How can one do the implementation?
    Thank you!

  • @zuneli1933
    @zuneli1933 3 года назад

    nice Qt tutorial

  • @manuelnovella39
    @manuelnovella39 6 лет назад

    What an amazing man you are, sir!

  • @russelwebb8853
    @russelwebb8853 6 лет назад

    I love how on the day I was thinking about how I should learn Qt, you post a video. Good man. Can you use OpenGL or Vulkan with Qt? (Ubuntu 18.04)

    • @derekbanas
      @derekbanas  6 лет назад

      That's cool. I'll make the next video ASAP. This info should help doc.qt.io/qt-5/qtgui-index.html

  • @usama_khalid
    @usama_khalid 4 года назад

    your videos are awesome. can you make video on wxWidgets plz plz plz....

  • @noctua7771
    @noctua7771 6 лет назад +1

    On windows if you click "normal on" it changes right back to "normal off" so the icons never show.
    Why does it do that?

  • @qianbang_
    @qianbang_ 6 лет назад

    hope this will make a series. Perhaps a standalone app than can store data like renting or library system

    • @derekbanas
      @derekbanas  6 лет назад +1

      Yes many more are coming

    • @qianbang_
      @qianbang_ 6 лет назад

      thanks for all the awesome videos that make me smarter

  • @rodrigoccamargos
    @rodrigoccamargos 6 лет назад

    Very good tutorial. Thank you very much!

  • @noctua7771
    @noctua7771 6 лет назад

    Derek this is insanely awesome!

  • @charleshuff7486
    @charleshuff7486 2 года назад

    do you answer specific Qt 6 questions? how / where do I ask them if possible?

  • @conradpretorius_remaxjac
    @conradpretorius_remaxjac 2 года назад

    How can I go about to ask a user a question (just label widget?) and make use of a lineEdit (textEdit?) where a user can input text? The signal is triggered() ?

    • @NicolasMorais
      @NicolasMorais 2 года назад

      You can get the text the user typed in with ui->lineEdit->text() or use the signal QLineEdit::textChanged(QString)

  • @sayyidalisajjadrizavi7418
    @sayyidalisajjadrizavi7418 4 года назад

    Hi Derek Banas! Nice tutorial! Could you please guide me if I can use Selenium Chrome Webdriver with Qt C++ GUI application? I want to make a software I built in C# .NET Windows, which I want to build for Linux.

  • @hemangshrimali6308
    @hemangshrimali6308 4 года назад

    Derek i am not able to run the latest Qt version 5.14 I tried searching everywhere for what to do but got no help.So is there a problem with the latest version as it took only 2.12 gb of my disk space so i am concerned whether i am installing the right drivers or not. Please anyone help me regarding this.

  • @tronictl
    @tronictl 6 лет назад

    A video on Qt! Is this a dream!? Nope not a dream ... pain is real. Musta woken up a week early, full series starting next week!!!? ;)

    • @derekbanas
      @derekbanas  6 лет назад

      I'm very happy that you liked it :) It should be a fun series

  • @exodus8814
    @exodus8814 6 лет назад +3

    OMG DEREKKKKKK!! THANK YOU VERY VERY MUCH :))))) I APPRECIATE THAT A LOT!!!

    • @derekbanas
      @derekbanas  6 лет назад +1

      I hope you find it useful. It was fun to make a real app in about 30 minutes

    • @exodus8814
      @exodus8814 6 лет назад

      Derek Banas Of course I will!!!! Your tutorials are superb Derek :) Hands down the best hands-on, fully explained C++ Course ever created on RUclips. It would take other RUclipsrs about 3-4 videos to create a single hello world program using C++ or any other language.
      You're awesome Derek :))) I'm very grateful for these tutorials. I hope I can repay you throughout my life. You'll still going to see my comments on every video you create:)

    • @derekbanas
      @derekbanas  6 лет назад +2

      I greatly appreciate you taking the time to always write a message!!! It is wonderful to know that people are following my videos :)

    • @exodus8814
      @exodus8814 6 лет назад

      Derek Banas You're very welcome Derek, it's the least I can do :)

  • @Xiefux
    @Xiefux 3 года назад

    i keep getting
    error: undefined reference to `QPrinter::QPrinter(QPrinter::PrinterMode)'
    and yes i did add
    #include
    #include

  • @arbymohamed6136
    @arbymohamed6136 3 года назад

    Is it possible to add a compiler to this note pad to make some sort of ide

  •  6 лет назад

    I must say, Qt isn't as bad as i had rembered it. Great introductionary video :D

    • @derekbanas
      @derekbanas  6 лет назад +1

      Thank you :) Yes it has improved a lot

  • @bwijnb746
    @bwijnb746 3 года назад +1

    Your accent so cute😆
    each of word at the end ,,,,,, just like → ~ level up

  • @exodus8814
    @exodus8814 6 лет назад

    Hello again Derek.
    First of all I'm sorry to ask a lot of question. So this is my last one.
    I have a C program.
    #include
    int main(){
    char* array[3] = {"one","two","three"};
    void* ptr = array ;
    printf("Cast 1 : %p
    ", (char**)ptr) ;
    printf("Cast 1 : %p
    ", (char*)ptr) ;
    //Both prints the same address 0056DE07
    printf("Deref1: %s
    ", *(char**)ptr) ;
    printf("Deref2: %s
    ", *(char*)ptr) ;
    //the Deref 2 causes an error
    }
    Since both cast 1 and cast 2 have the same memory address, why dereferencing the second caused an error? When i dereference, shouldn't the pointer go to 0056DE07 and get the values which in this case is "one"?
    *why should it be (char**) and not (char*) since both returned the same address?*

  • @zhaoxujun1088
    @zhaoxujun1088 2 года назад

    Excellent tutorial of QT, but it would be nice if you can improve the resolution of the video.

  • @luongnguyen895
    @luongnguyen895 6 лет назад

    it's really helpful. hope u will make more video about qt C++ app

    • @luongnguyen895
      @luongnguyen895 6 лет назад

      but the screen is litle bit small...can u scale it next time

    • @derekbanas
      @derekbanas  6 лет назад +1

      More are coming. I'll try to make it bigger next time

  • @Adam-cn5ib
    @Adam-cn5ib 6 лет назад

    What do you think of SFML? Is there a usecase for that? For games I personally think it's not very good as we have UE4 but is there anything else I could work using that?

    • @derekbanas
      @derekbanas  6 лет назад

      I prefer other frameworks for game development

  • @arcanelore168
    @arcanelore168 6 лет назад +8

    GTK+ PLEASE!

    • @soda9023
      @soda9023 4 года назад +2

      Enjoy your broken fonts!

    • @drakee144
      @drakee144 4 года назад +1

      Gtk is trash

  • @shahinabdullayev3340
    @shahinabdullayev3340 9 месяцев назад

    The file which ends with .pro doesn't exist in QT Creator. How can I find it?

  • @laaste5393
    @laaste5393 5 лет назад

    Trying it on windows 10 but most of triggers dont react :|
    Debug + Compile are going without 1 error but this doesnt do anything expect visual look o.O
    For example when i try to open a text file this don't do anything, this keep clear textEdit.
    Even when i copy all the code from your side nothing changes.

  • @cooltechandmore
    @cooltechandmore 4 года назад +3

    show the completed app first then show how to code it

  • @elkhoukhi
    @elkhoukhi 6 лет назад

    Derek I love you man!

    • @derekbanas
      @derekbanas  6 лет назад

      I love all of you guys too :)

  • @YogeshKumar-nx5lt
    @YogeshKumar-nx5lt 3 года назад

    cannot initialize a parameter of type 'QWidget *' with an lvalue of type const char on on_actionOpen_triggered()

  • @chainonsmanquants1630
    @chainonsmanquants1630 3 года назад

    Thanks

  • @exodus8814
    @exodus8814 6 лет назад

    Hello again Derek :) Extreme apologies for asking a ton of questions. But i really do have questions that i really haven't found answers to on the internet.
    Basically i need to create a C++ function that asks for string input *without* using string class.
    Char* ask() {
    char* p;
    Std::cin >> p;
    return p;
    }
    It raises an error, i know for certain that cin is causing that.

    • @derekbanas
      @derekbanas  6 лет назад +1

      Hi Exodus :) Always feel free to ask questions. Here is a great example that also will answer the next question you'll need an answer for stackoverflow.com/questions/16870485/how-can-i-read-an-input-string-of-unknown-length

    • @exodus8814
      @exodus8814 6 лет назад

      Derek Banas Thank you very much Derek :) Do you think it's worth to learn Crystal Programming?

    • @derekbanas
      @derekbanas  6 лет назад +1

      I'd never bother learning something in beta. The whole language could change or just be dropped all together. That holds true no matter who is behind it including Google

  • @aimarm6906
    @aimarm6906 6 лет назад

    thanx for it
    pls more C++ videos

  • @shiftnizzle
    @shiftnizzle 6 лет назад

    For anyone running this on Ubuntu 18.04, you're going to get an exit 1 status from collect2. No big deal, just install libgl1-mesa-dev:
    sudo apt update
    sudo apt install libgl1-mesa-dev
    Happy coding!

    • @derekbanas
      @derekbanas  6 лет назад

      Thank you for taking the time to help :)

    • @shiftnizzle
      @shiftnizzle 6 лет назад

      Thank you for the tutorial!

  • @jsfaulds
    @jsfaulds 6 лет назад

    I wanted to get one and found out they were launching in the UK this Autumn 2018, An update would be good

  • @tekoScott
    @tekoScott 6 лет назад +1

    Are you going to do more Qt tutorials?

  • @sabrinalevina_
    @sabrinalevina_ 4 года назад

    Thank you so much!!!!

  • @anitafeng148
    @anitafeng148 3 года назад

    When I create a new project it looks a little different. After selecting Template and choosing a Location, It asks me to define Build System and there is a dropdown menu (qmake, cmake, and Qbs). Which one should I choose for this tutorial?

  • @freetoothpicks
    @freetoothpicks 2 года назад

    Thank you so much you saved my ass!

  • @alexgora7530
    @alexgora7530 6 месяцев назад

    Is IDE free? What are sys requirements? It's heavy I suppose

  • @lgamer5133
    @lgamer5133 4 года назад

    I love the cutie framework

    • @bluehornet6752
      @bluehornet6752 3 года назад

      LOL... "cutie"
      In literally about 20 seconds of watching pretty much ANY video on the official Qt video, it would be apparent as to how to pronounce the name.

    • @lgamer5133
      @lgamer5133 3 года назад

      @@bluehornet6752 it just pronouns as cutie but you write Qt

  • @subhajitghosh8
    @subhajitghosh8 3 года назад

    Just perfect!

  • @siriacopereira3153
    @siriacopereira3153 6 лет назад

    Pretty freaking cool! You`re the man!!!

    • @derekbanas
      @derekbanas  6 лет назад +1

      Thank you :) I'm glad you liked it

    • @siriacopereira3153
      @siriacopereira3153 6 лет назад

      Can I conect my cellphone to install the app into it?