Qt 6 - Episode 3 - Hello Qt

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

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

  • @Rurattee
    @Rurattee 3 ปีที่แล้ว +109

    Just a heads up for any Windows users. If your program shows up in "3 Application Output," std::getline() won't work. You need to go to Tools -> Options... -> Build & Run -> General, scroll down, then set "Default for 'Run in terminal':" to "Enabled."

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

    Watching this brings back memories when I was in high school, when I got task from my school to build an exam mobile app, I decided to use Qt, using QML and Javascript for UI and binding with Java for accessing Android APIs, God I miss those times...

    • @VoidRealms
      @VoidRealms  3 ปีที่แล้ว +2

      Good times!

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

      @@VoidRealms I'm curious, did Qt has include Android API without the need to bind with Java? To be honest, binding with Java is truly painful...

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

      @@franklincollintamboto8637 from what I've read the new version of qt can optionally bind a Java but I haven't played with it yet

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

    18:25 got a chuckle out of Hello "Bryan" as if Qt is expressing passive skepticism over what you've told it.

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

    Love you Brian, keep up the good work man.

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

      You probably dont care but if you're stoned like me during the covid times you can stream all the new movies on InstaFlixxer. Been streaming with my girlfriend for the last couple of weeks xD

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

      @Kareem Kohen Yea, have been using instaflixxer for years myself :D

  • @IntuitiveLeap
    @IntuitiveLeap 3 ปีที่แล้ว +11

    Windows users may need to tweak some settings in the Console Project or receive some missing .dll errors. I had to activate the setting "Run in terminal" found in "Run Settings" for the project. You would think that it would already be set for a console application, but it was not in my case. Haha!

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

      Interesting, i did not have that on my win10 box.

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

      @@VoidRealms Windows 10 I can't get the console to appear when running. What is the exact steps in Windows 10 QT 6 to find how to activate the console in the project?

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

      Muchas gracias

    • @kjvisual7
      @kjvisual7 3 ปีที่แล้ว +2

      Thank you!!! My Win10 install had the same problem. I was worried that I would have to spend hours digging through the app just to make Hello World work. Phew, hair is still in tact.

    • @dantaxxx
      @dantaxxx 3 ปีที่แล้ว +2

      @@jerjerrybear Go to Projects -> Run -> set "Run in terminal"

  • @cassolmedia
    @cassolmedia 3 ปีที่แล้ว +2

    great video! love the teaching style. just bought the udemy course.

  • @GursimarSinghMiglani-ym7nu
    @GursimarSinghMiglani-ym7nu 7 หลายเดือนก่อน

    excited to start learning qt!

  • @easyprogramming969
    @easyprogramming969 3 ปีที่แล้ว +2

    I developed a music app with qt5 and c++ that works on Android, but the app size is big!
    Is there a way to reduce the size of the application?

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

      I think you can sign it in release build and it shrinks it down a lot: forum.qt.io/topic/100304/apk-file-size-too-big/6

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

    You are s fantastic Teacher!

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

    Thanks for the qt6 content. I'm looking forward to the advanced qt6 on udemy.

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

    There was a problem, when creating the project, an error " 'QCoreApplication' file not found" immediately occurred. What to do?

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

    7:01 i can't run for the first time. When build and run this, console not popup. I'm a absolute beginner in qt. Please

    • @nicknamenomatter.4299
      @nicknamenomatter.4299 2 ปีที่แล้ว +4

      Hi, I had the same problem. All you gotta do is to find a projects button ( in the left side) then choose Build and Run--> Run and then check the box Run in terminal.

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

      @@nicknamenomatter.4299 mann thankyou so much

  • @dujelimic3198
    @dujelimic3198 3 ปีที่แล้ว +2

    Hi everyone. I have an issue with this one. I enter the code (i have qt5 tbh), i set run in terminal, and it is asking for input, but when i give it input and press enter, it just goes to the next line and doesnt continue executing the code. I also tried to set terminal settings in options-enviroment-system-terminal. Currently it is /usr/bin/xterm -e, but im not sure if thats the right one for manjaro. Did anyone have this issue, what am i doing wrong? thanks...

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

      Two quick things, first grab the code off GitHub and it might pay possible you miss type something, and recommend asking these kind of questions in the voidrealms Facebook group as TH-cam comments are largely unmonitored due to the volume of them

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

      how did you solve this issue?

    • @nathankassai9766
      @nathankassai9766 2 ปีที่แล้ว +1

      ​@@viktorstefanov4848 Hey there! I believe you were trying to type in the Application Output section (I made that same mistake, lol). Go to Projects (found on far left side)/Build & Run/Run, and make sure that the Run In Terminal box is checked. This will open up a terminal for you to both see the output and send input to your program

    • @Wellensittichfreund
      @Wellensittichfreund 2 ปีที่แล้ว +1

      I have the same problem on debian with qt6. "run in terminal"-box is checked. Any solutions? I don't have facebook so that's off the table.
      edit: stackoverflow.com/questions/70506485/in-qt6-cin-getline-does-not-read-any-input-for-me
      Link to the solution that worked for me. There has to be a newline (
      or std::endl) at the end of cout

  • @MagicGladiatorMandrake
    @MagicGladiatorMandrake 3 ปีที่แล้ว +5

    am having problem with the output, it doesn't read the input at print it.
    19:52:50: Starting C:\Users\softd\Documents\QTQML\build-gt6-e3-Desktop_Qt_6_0_4_MinGW_64_bit-Debug\gt6-e3.exe ...
    Please enter your name: Harold
    when I press Enter nothing happen.

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

      i had the same problem, resolved with "Run in terminal" into Run option. Apply and restart qt creator

  • @krys-mp
    @krys-mp 3 ปีที่แล้ว +1

    I would like to learn C++ and Qt and looks like your series it's what I need. Your C++ videos are quite old, are they still a good start before this tutorial or there is a different C++ course or book that you would suggest?

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

      Join the voidrealms Facebook group I regularly out coupons in there for my udemy courses. (coupons also in the description of this video)

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

    Hello, have some problems with qInfo, it says I have a reference to non-static member function.
    What should I do?

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

      The problem was I didn't use brackets after qInfo, though it is a function:))

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

    can I follow the same steps and code with python instead of c++?

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

    hi, can i know is it possible for us to learn straightaway qt widget without learning qt core? for qt core we only learn about json or others that doesnt really support in STL c++

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

      QT widgets is built around QT core so it would be very challenging to use without learning QT core

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

    when I compile and start I have this following error on MACOS : "Unable to open "tmplj44px66" because (null) is not allowed to open documents in Terminal."
    How can I solve it ?

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

      Maybe Qt sucks for macOS I don't know

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

    Can someone who's never done Qt previously begin directly from Qt6?

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

    I will keep an eye open when you do an android app using 6.0. I have yet to get it to work! I am still using the latest 5 version.

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

    I'm running Qt6 Community edition on my Windows 10 PC. When starting a new project, I'm asked what kit I want to use: MSVC2019 or MinGW. Which one is recommended and why?
    Great video series, by the way!

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

      MinGW includes a port of GCC, the go-to C/C++/Fortran compiler. Never been a fan of msvc.

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

    thanks a ton for the tutorials

  • @zaregg.
    @zaregg. 3 ปีที่แล้ว

    i read that Qt6 won’t have a LTS version, is this a problem or is this a minor inconvenience?

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

      I had not heard this, and I am sure they would have an LTS version (probably into the 6.5 or beyond)

    • @QtStudios
      @QtStudios 3 ปีที่แล้ว +5

      Qt 6.2 will be LTS

    • @VoidRealms
      @VoidRealms  3 ปีที่แล้ว +2

      @@QtStudios you rock !

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

      @@VoidRealms Thanks for making these vids - they are great!

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

      @@QtStudios Too kind! - I have been working hard on theses and the Udemy courses, want to re-record everything in Qt6 so they be viable for a long time

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

    i think c++ is best way 🙂🙂🙂🙂🙂

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

    certainly for me, cpp way is more comfortable.. idk

  • @МаксимМаксимов-щ4д3ч
    @МаксимМаксимов-щ4д3ч 3 ปีที่แล้ว

    Well done, now let us write thread-safe singleton debug module)

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

    Honestly Cpp way is way simpler