Qt Tutorials For Beginners 5 - Qt Signal and slots

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ม.ค. 2025

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

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

    New syntax for SIGNAL in Qt 5
    connect(ui->horizontalSlider,&QSlider::valueChanged,ui->progressBar,&QProgressBar::setValue);

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

    Code for this video
    www.codebind.com/c-tutorial/qt-tutorials-for-beginners-qt-signal-and-slots/

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

      ɷɷ Heeyy Friendsssss I Have F0undd Workingggggg Online Hacck visitttt : - t.co/HdHZtqUtfW

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

      :3 why i'm a student and i don't any money hhhh :p

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

    Also for this part of the course thank you so much. Works well on MX-Linux

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

    Very good tutorials! Thanks for the effort!

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

    A very good tutorial for beginners

  • @Max-mn1qn
    @Max-mn1qn 2 ปีที่แล้ว

    These tutorials are great. Thank you so much.

  • @shardulnsiddhesh
    @shardulnsiddhesh 6 หลายเดือนก่อน +1

    Hey! Nice tutorials. Its a pity that I didnt watch your videos before. Any plans of creating a new series based on latest Qt updates? I believe several things have changed or simplified. Also, an end to end intermediate to advanced project (please no library and bank management system!) would be really helpful. For example, an Automotive UI dashboard and, Time tracking system. Thanks!

  • @dandymcgee
    @dandymcgee 5 ปีที่แล้ว +36

    This video needs a low pass filter so bad.. those S's are brutal.

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

      TheSSe SSSS killed me.

    • @TheMR-777
      @TheMR-777 3 ปีที่แล้ว

      I can't listen to it only due to this. Leaving now

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

      no. these low quality mics fits these tutorials lol

  • @sassySQ123
    @sassySQ123 7 ปีที่แล้ว +2

    Very useful tutorial, thank you!

  • @優さん-n7m
    @優さん-n7m ปีที่แล้ว

    It would be great if you had also covered how the scrollbar can send signal to line edit so scrolling the scroll bar would show its value in the line edit

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

    thank you! very helpful :)

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

    why we cant use ```void MainWindow::on_horizontalSlider_sliderMoved(int position)``` way to create signal and slot

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

    First of all, congratulations for the tutorials, are amazing. My question is about the use of a global variable to change the progress bar, or maybe use the connect function with the first parameter being an ui component. I mean "connect(variable, SIGNAL(valuechange(int)), ui->progressBar,SLOT(setValue(int);"
    Best regards!

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

    very usefull, thanks you so much

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

    Excellent Delivery

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

    Very very very good very impressed

  • @優さん-n7m
    @優さん-n7m ปีที่แล้ว

    What you wrote in code for the signal and slot does exactly the same thing as the initial method used in the GUI of the Qt Creator. Is it not suppoesd to be more flexible than this?

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

    Hello
    I'm learning from your QT tutorials
    I would like to know about using C ++ with QT Creator I could use Python with QT Creator
    Have you done or can you do tutorials on this?

  • @優さん-n7m
    @優さん-n7m ปีที่แล้ว

    Would be great to update these tutorials, do you have a paid version?

  • @thoughte2432
    @thoughte2432 7 ปีที่แล้ว +54

    he's talking slooomotion, put the video speed to x1.5 and it's like he's talking normal xD

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

      So true lol!!

    • @erufeanor2182
      @erufeanor2182 7 ปีที่แล้ว +2

      I am even at speed 2 and can understand him just fine xD

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

      Watched this at 4x until the part i wanted to know where i still was at 2.25.

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

      no shit, i'd rename this video to "signals and sloth".

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

      Not so much talking so but going so slow.

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

    Hello, when i use in video Beginners 5-QT Signal and slots, connect(ui->horizontalSlider_2,SIGNAL(valueChanged(int)),ui->progressBar_2,SLOT(setvalue(int))); it not works
    When i move the slider the ProgressBar not change.
    I think you did one step in background, but forget to it show.

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

    Many thanks!

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

    Excuse me. Can that progress bar display without slider? just random display data?

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

    I'm working on a mac and the progress bar percentage isn't shown, how can i add it?

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

    شرح متميز جزاك الله خيرا والله اكبر

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

    Okay I'm new to Qt. I wanted to move from CLI to GUI programming for a long time now. Some questions are popping up. One of them is why are we writing the connect function in mainwindow.cpp and not in main.cpp?

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

      And couldn't we connect the button and the label the same in the previous video?

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

      Or you could just right click the slider and choose "Go to slot..." and code the progress bar "setValue(int)" there :)

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

    Thanks you for guide

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

    am really stucked with the compiler issue on my window 7 64bit qtvs 2015 5.8 ,it keeps telling me to set it kit what eva pls help

  • @優さん-n7m
    @優さん-n7m ปีที่แล้ว

    The signal and slot seems quite simple and not very powerful since signal from one thing gets connected to another thing, no data transformation takes place?

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

    Hi I have been watching your videos and learned alot. i have been trying so hard to find solution to my problem but failed. i hope you will help me. i simply want to pass value from my main form (Mainwindow2) to a dialog box when i click push button on main form to open dialog box. the value from lineedit in main foirm needs to goto lineedit in dialogbox. can you please help me. many thanks

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

    Qt rectangle shape forming method sir

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

    Anyone Watch 2020

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

    Thnaks

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

    how to connect different forms?

  • @Zack-xz1ph
    @Zack-xz1ph 7 ปีที่แล้ว +1

    Why doesn't the progress bar go to 100%?

    • @Zack-xz1ph
      @Zack-xz1ph 7 ปีที่แล้ว +2

      figured it out. the default value of the slider is 99, change it to 100.

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

    How to use a slot "Toggled(bool)"

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

    These codes aren't working on QTCreator 5

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

      connect(ui->horizontalSlider,&QSlider::valueChanged,ui->progressBar,&QProgressBar::setValue);

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

    connect / disconnect - wlacza, wylacza linki pomiedzy obiektami

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

    good video, thank you! :-)

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

    Ah QT too expensive for me to consider at the momment.

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

    do you pronounce it qt or qt?

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

    Can only slide to 99%

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

      how do you fix that? help please!

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

      TARIQLES Apparently you can use min, max values to change this, but for specifics you gotta do your own research.