Qt Tutorials For Beginners 3 - First Qt Application

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

ความคิดเห็น • 104

  • @lvmyfam11
    @lvmyfam11 7 ปีที่แล้ว +14

    This is an AMAZING breakdown of the foundation to QT. It is a reference that I come back to. Thank you so much!!!

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  8 ปีที่แล้ว +5

    Code for this video - www.codebind.com/c-tutorial/qt-tutorials-for-beginners-create-first-qt-application/

  • @slayzekyriarchy6354
    @slayzekyriarchy6354 4 ปีที่แล้ว +5

    This tutorial is so much better than Qt's official tutorials!

  • @jesperthrringdamgaard3593
    @jesperthrringdamgaard3593 7 ปีที่แล้ว +13

    4:36 please note that this is only a check and NOT a definition which major version of QT is used.
    The line "greaterThan(QT_MAJOR_VERSION, 4) : QT += widgets" only checks whether the defined value of QT_MAJOR_VERSION (defined by qmake automatically) is greater than 4. If this is true, then widgets is added to QT.
    This is done as only QT major version 5 (and up) have to include widgets, thus it won't be included if e.g. major version 4 is used. Hope this clarifies the code a bit.

    • @ruhiraj9551
      @ruhiraj9551 ปีที่แล้ว

      R6rrrrtyrrrrrrdyrrryytrrtrsrrrryrytrrrr

    • @ruhiraj9551
      @ruhiraj9551 ปีที่แล้ว

      5rryrr6trrt6rerryrr7rr6rrrt6rr6rrrrtrrrrrrrrrrrttyrr

  • @TheCallumFerguson
    @TheCallumFerguson 8 ปีที่แล้ว +39

    Great video, but please get a pop filter for your mic.

    • @romkagm7756
      @romkagm7756 3 ปีที่แล้ว +1

      set speed 1.25 and its ok than

  • @優さん-n7m
    @優さん-n7m 10 หลายเดือนก่อน

    These tutorials are great, they should be updated since these are more than 7 years old and software technology moves ahead quite fast.

  • @yongjunyao1992
    @yongjunyao1992 6 ปีที่แล้ว +1

    Help me! I right click on the "HelloWorld" project, but the "add new file" button is unavailable.

  • @zakariachahboun
    @zakariachahboun 7 ปีที่แล้ว +1

    thank you man !
    " . .to record a good vocals, put your mic in your left or right side, or get a pop filter " :)

  • @Rob-bh9gt
    @Rob-bh9gt 5 ปีที่แล้ว +7

    i see your keep your development environment in you ~/Pictures directory. way to stick it to the man.

  • @brookeblake3324
    @brookeblake3324 6 ปีที่แล้ว +9

    If you find QApplication not included, be sure to check if you have saved(control + s) the pro file

  • @kaushalpanchal7211
    @kaushalpanchal7211 6 ปีที่แล้ว +2

    Hi There !! i just started learning QT. Is there any recommended book for QT to dig in to it ?

  • @brookeblake3324
    @brookeblake3324 6 ปีที่แล้ว +6

    if you find problem when click build, then right click the project name(in the example is "HelloWorld"), and choose execute qmake, which will solve the problem

    • @nikolakostadinov9830
      @nikolakostadinov9830 3 ปีที่แล้ว

      You are a life saver, I was panicking why ```QApplication``` is not found, thanks!

  • @ameersalam8477
    @ameersalam8477 หลายเดือนก่อน

    Thank you for this wonderful tutorial!

  • @denizyce
    @denizyce 4 ปีที่แล้ว +2

    it says QApplication is not found?????

  • @優さん-n7m
    @優さん-n7m 10 หลายเดือนก่อน

    What do you mean compile using QtWidgets?

  • @georgiosdoumas2446
    @georgiosdoumas2446 6 ปีที่แล้ว

    At 1:00 I see the options for "Other project" have as first possibility the "Qt Unit Test " . But my QtCreator offers me "Auto Test Project" ,and not "Qt Unit Test" , nor "Qt quick controls UI" that I see in your screen. What version do you have in the video?
    I have Qt Creator 4.7.0-rc1 (4.6.84)
    Based on Qt 5.11.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit )

  • @mert1354
    @mert1354 8 หลายเดือนก่อน

    how can ı solve when ı use #include my qt program give me not found library error

  • @oscarbalbo5276
    @oscarbalbo5276 7 ปีที่แล้ว

    Hi! I can't digit curly brackets. When i press alt and the code for curly brackets the application switch between the windows of the debugger console.

  • @afridthenebanda7702
    @afridthenebanda7702 2 ปีที่แล้ว

    i m getting the error when i run application " the code execution cannot proceed because qt6core.dll was not found", please help how to fix this

  • @PerHultqvist
    @PerHultqvist 5 ปีที่แล้ว +1

    Thanks for this series, I am just getting started with QT on Linux. One thing I did not get, why are you using the label pointer to set window properties? To me it would have felt a lot more natural to use the app (QApplication) object to do that. Isn't 'app' the application (or window) and 'label' the actual label?
    I have not coded c++ in 15 years so I have forgotten most of it, and of course back then it was just basic non-gui-coding :-)

  • @Zenene-ok5el
    @Zenene-ok5el 6 ปีที่แล้ว +4

    What do I do if my QT version doesn't let me add any new files into a preexisting projects?

    • @bySimyna
      @bySimyna 5 ปีที่แล้ว

      I had the same problem. I fixed it by checking the box for desktop qt MinGw when you get to Kit selection (min 1:37 in the video)

  • @gurpreetsinghguller8016
    @gurpreetsinghguller8016 5 ปีที่แล้ว

    sir your given links in description for other courses is not working. Please as soon as possible,Update the link

  • @aashimagupta9207
    @aashimagupta9207 6 ปีที่แล้ว

    Hey isn't there any Drag and Drop Technique instead of writing codes??

  • @alvaroparra1411
    @alvaroparra1411 7 ปีที่แล้ว

    Are these tutorials also applicable for the qt add in visual studio?

  • @belgacemmessaoud1867
    @belgacemmessaoud1867 4 ปีที่แล้ว

    if i try to build the project, the compiler returns an error, saying that he program has unexpectedly finished.
    The process was ended forcefully., anyone can help with that?

  • @BAT_24
    @BAT_24 6 ปีที่แล้ว +1

    what do i do if there is no QApplication library...??

  • @SamuelTravnicek
    @SamuelTravnicek 5 ปีที่แล้ว

    I didn't find out, why the window title is changed through label? It doesn't make sense...

  • @johnkrajewski655
    @johnkrajewski655 6 ปีที่แล้ว +2

    Absolutely Brilliant Tutorial, Well Done!

  • @d4mbass
    @d4mbass 21 วันที่ผ่านมา

    1:38 Bro, I may not pass by this screen, btw i may not choose any of the options. Can u help me pls?

  • @friedbertmoessner2625
    @friedbertmoessner2625 3 ปีที่แล้ว +1

    Thanks, works well

  • @kavie8257
    @kavie8257 6 ปีที่แล้ว

    Hi,
    Thanks for this tutorial. I'm using QT creator for creating Empty Qmake Project.After creating the project i'm getting error mentioned below
    Project ERROR: Cannot run compiler 'cl'. Maybe you forgot to setup the environment?
    Error while parsing file D:\QT_Practice\HelloQmake\HelloQmake.pro. Giving up.

  • @chandrakantkumarchoudhary1144
    @chandrakantkumarchoudhary1144 3 หลายเดือนก่อน

    I am using QT6 but I am not able to see any class QApplication.

  • @arjanbal3972
    @arjanbal3972 7 ปีที่แล้ว +1

    you sound a bit like sal khan from ka, and great video!

  • @maryjunej.sumonod6650
    @maryjunej.sumonod6650 ปีที่แล้ว

    Why don't I have a separate Source folder when I make the main.cpp ?

    • @just_exist_ezz
      @just_exist_ezz ปีที่แล้ว

      is this tutorial still relevent ?
      as qt may have developed over the years

  • @baonguyenquoc8437
    @baonguyenquoc8437 8 ปีที่แล้ว +4

    why i.m don't include libary QApplication, it's appear QApplicationStateChangeEvent?

    • @tsaarinen
      @tsaarinen 8 ปีที่แล้ว

      I have same problem :(

    • @tsaarinen
      @tsaarinen 8 ปีที่แล้ว

      Solved!!! I just restart QT and missing libary found :)

    • @miguelvaldez35
      @miguelvaldez35 8 ปีที่แล้ว +2

      also try
      #include

    • @lars3960
      @lars3960 6 ปีที่แล้ว +1

      he doesnt need to learn english grammar to get into Qt

  • @yaduveerAudios
    @yaduveerAudios 6 ปีที่แล้ว

    Very well explained for begginers ... Thanks a lot Sir

  • @userpurpose
    @userpurpose 11 หลายเดือนก่อน

    is it not possible to install it in ios?

  • @bhagyashreethange4267
    @bhagyashreethange4267 4 ปีที่แล้ว

    Can you please make some vedios on qt for python( pyside2) in qt creator??

  • @simonemastroianni1985
    @simonemastroianni1985 7 ปีที่แล้ว

    Help Me! When I build, all it's normal, but when I run the code, appear the following error: This application has requested the runtime to terminate it in an unusual way. Please contact the application's support team for more information

    • @simonemastroianni1985
      @simonemastroianni1985 7 ปีที่แล้ว

      I solved the problem!! I had to include a folder in the path: "C: \ Qt \ qt version \ your compiler (in my case, MinGW) \ plugins \" and copy the folder named "platforms" next to the executable program, and there will be no more errors ! Good luck! :)

  • @staywithola9724
    @staywithola9724 6 ปีที่แล้ว

    Please, how can I deploy my finished application on Qt 5.1??

  • @AliRaza-hl8yy
    @AliRaza-hl8yy 7 ปีที่แล้ว

    Error while building/deploying project first (kit: Desktop Qt 5.8.0 MSVC2015_64bit)
    When executing step "qmake" how to remove this error

  • @AliRaza-hl8yy
    @AliRaza-hl8yy 7 ปีที่แล้ว

    sir when i have build project it also gave deployment error how to solve it...

  • @DungVu-di7dz
    @DungVu-di7dz 11 หลายเดือนก่อน

    this video helpful, thank you

  • @BAT_24
    @BAT_24 6 ปีที่แล้ว

    sir, I have installed Qt on raspi2, when i tried to build n run it shows me that "Cannot run: No command given.: " i had followed all the step of set up..help me out.

  • @Vlad_Ofitserov
    @Vlad_Ofitserov ปีที่แล้ว

    Thanks a lot for this video!

  • @berkcan2439
    @berkcan2439 6 ปีที่แล้ว

    When i try open .exe file from debug directory bam QT5cored.dll missing.

  • @charleso5940
    @charleso5940 7 ปีที่แล้ว

    Thank you for your tutorials. They are very helpful!

  • @nandhannatarajan2127
    @nandhannatarajan2127 5 ปีที่แล้ว +2

    Why you never deleted label?

  • @swkim88888
    @swkim88888 3 ปีที่แล้ว

    Thx your code and video lecture

  • @jaywantpatel4169
    @jaywantpatel4169 ปีที่แล้ว +4

    but the real qt is you mah g

  • @Nick-yf4pc
    @Nick-yf4pc 4 หลายเดือนก่อน

    awesome thank you!!!!!!

  • @TheFeralEngineer
    @TheFeralEngineer 3 ปีที่แล้ว

    Great videos, but you need a pop screen on your microphone

  • @manikantanc9215
    @manikantanc9215 4 ปีที่แล้ว

    Very good video

  • @anothernickname3354
    @anothernickname3354 7 ปีที่แล้ว

    Great tutorial ! Thanks!

  • @christiannunez8353
    @christiannunez8353 8 ปีที่แล้ว

    Wow this one lost me a little bit. I was a little confident until you started entering those arguments and codes...do they automatically generate? like the formulas in other programs? or do I have to enter them always? ughhhhhhhffff. Lets see lesson 4 so far so good. Thanks

  • @samadakbarzai6678
    @samadakbarzai6678 3 ปีที่แล้ว

    Hello sir i cant add new file to my project why sir please tell me

    • @md-kk7ob
      @md-kk7ob 3 ปีที่แล้ว

      mee too

  • @pawebrysch151
    @pawebrysch151 6 ปีที่แล้ว

    label->setWindowTitle()
    label->resize()

  • @lukeduggan9629
    @lukeduggan9629 4 ปีที่แล้ว

    Great tutorial!

  • @PramodKumarTrueFriend
    @PramodKumarTrueFriend 3 ปีที่แล้ว

    Thank you :)

  • @LoloWars313
    @LoloWars313 4 ปีที่แล้ว

    thank you

  • @pixarfilmz4769
    @pixarfilmz4769 6 ปีที่แล้ว

    Really helpful thanks :)

  • @jianlao6858
    @jianlao6858 6 ปีที่แล้ว

    Good video~~ Thanks!

  • @tusharnaik4757
    @tusharnaik4757 7 ปีที่แล้ว

    How to use graphics.h header file in that

  • @peteradeyemo1093
    @peteradeyemo1093 5 ปีที่แล้ว

    how about QT for python tutorial

  • @schalkzijlstra878
    @schalkzijlstra878 5 ปีที่แล้ว

    Also error:Id returned 1 exit status

  • @akust
    @akust 4 ปีที่แล้ว

    Although I have basic knowlegde with scripting I just can't come into Qt. Now I watch this and it keeps me alone with so many details.
    You create a cpp file because.. I couldn't find the reason. cpp is .. C++ source file, not Class not Header, ok..(?). So I guess this is C++, not Qt, or Qt in C++, what means that Qt is just an library for C++? I don't get it.
    You explained the .pro file as cmake in C++, but.. isn't all based on C++? Why an .pro file and not cmake or make file?
    "then just write plus, equlas, widgets, ok?" No! don't ask ok, if there is no one who can answer or nod. What means "+=" ? why "widgets" ? we make a widgets application with.. : QT += widgets? And "add a '+' to the QT above.. ok?" what, not ok. why?
    And so on.. I feel lost :( Should I maybe learn C++ first?

    • @hervesv9529
      @hervesv9529 4 ปีที่แล้ว

      Yes, you should definitely learn C++ first, it isn't exactly the easiest language out there. Or you could try using the Qt bindings for other languages such a python, I haven't tried it myself, but python is a simpler language to learn.

  • @sparklee6994
    @sparklee6994 5 หลายเดือนก่อน

    good tutorial, but font is too small to see.

  • @christosgolsouzidis1286
    @christosgolsouzidis1286 6 ปีที่แล้ว +7

    I am getting sick when I see "hello world"

  • @nikoszervo
    @nikoszervo 5 ปีที่แล้ว

    It seems really weird to me to access the window properties from a Label object. These methods should exist in the app object or at least in a Window class. What the fuck qt developers were thinking when they designed qt?

  • @rossty777
    @rossty777 6 ปีที่แล้ว +1

    I can't add new......Nice beginning lmao

  • @mrjacobsidhu3625
    @mrjacobsidhu3625 4 หลายเดือนก่อน

    05:50 what ?

  • @tusharnaik4757
    @tusharnaik4757 7 ปีที่แล้ว

    becuse it gives error

  • @mountolympus1098
    @mountolympus1098 7 ปีที่แล้ว

    everything came by itself😂😂

  • @attentionseeker7951
    @attentionseeker7951 4 ปีที่แล้ว

    unknown type name 'QApplication'

  • @matteodamore2804
    @matteodamore2804 5 ปีที่แล้ว

    Lebon al mike, sardinium fighter

  • @romkagm7756
    @romkagm7756 3 ปีที่แล้ว

    oke?

  • @incodewetrust8862
    @incodewetrust8862 หลายเดือนก่อน

    'QAplication' file not found
    /home/../../../main.cpp:4: error: Unknown type name 'QApplication'
    /home/../../../main.cpp:5: error: Unknown type name 'QLabel'
    /home/../../../main.cpp:5: error: Unknown type name 'QLabel'

  • @schalkzijlstra878
    @schalkzijlstra878 5 ปีที่แล้ว

    So I tried to build but it says "cannot open output file debug\HelloWorld.exe: Permission denied

    • @schalkzijlstra878
      @schalkzijlstra878 5 ปีที่แล้ว

      SOLVED: I clicked run way before we made the Label and it started the program but had no window for it. So just closed Qt and opened again, forcing all the closures.

  • @mdhafizurrahman5858
    @mdhafizurrahman5858 7 ปีที่แล้ว

    when i tried to build the first code. the compiler says" QApplication: No such file or directory"
    What can i do now? plz help.

    • @LetTheWritersWrite
      @LetTheWritersWrite 7 ปีที่แล้ว

      md rahman it means you didn't include the qt library.

    • @温瑞峰-c5n
      @温瑞峰-c5n 7 หลายเดือนก่อน

      少库@@LetTheWritersWrite