How to detect selected and deselected cells on a QTableWidget | PyQt5 Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ต.ค. 2024
  • In this PyQt5 tutorial, I will cover how to track and detect cells selection and deselection using selectionChanged signal on a QTableWidget.
    📑 Source Code: learndataanaly...
    Buy Me a Coffee? Your support is much appreciated!
    ----------------------------------------------------------------------------------------------------------------
    PayPal Me: www.paypal.me/...
    Venmo: @Jie-Jenn
    Support my channel so I can continue making free contents
    ---------------------------------------------------------------------------------------------------------------
    Patreon: / jiejenn
    By shopping on Amazon → amzn.to/2JkGeMD
    More tutorial videos on my website → LearnDataAnaly...
    Business Inquiring: TH-cam@LearnDataAnalysis.org
    #PyQt5 #Python #PyQt6

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

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

    This is just what i am searching for almost 10 weeks. I just could thank to you. All my best

  • @Erfanhosseini-c6k
    @Erfanhosseini-c6k 8 หลายเดือนก่อน

    your voice is pretty good I really enjoy your voice I hope you be always happy

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

    All my day looking for this. Thanks you very much.

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

    This was really helpful it resolved my query
    God bless u * 10000000

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

    Excellent. How can I transform it to work with keyboard arrows selection?

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

    Thank you so much, you saved my day!

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

    thnakyou dost

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

    Very helpful!!!

  • @MJ-tn8tw
    @MJ-tn8tw 3 ปีที่แล้ว

    Hi can we do this by keeping col index fixed and printing the cell value alone

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

    1st view sir, nice quality content..

  • @せいちゃん-f7n
    @せいちゃん-f7n 3 ปีที่แล้ว

    Thank you! Really helpful!

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

    Thanks!!!

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

      Glad the video helped.

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

    how can i reach the text inside the selected cell? thx

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

    if the cell contains data , and i want to selecte cells and print there data to pdf how i do that ?

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

      if you found the answer tell me i want to do something similar

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

    Thank you very much! Like and sub

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

      Glad the video helped and thank you for subscribing.

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

    and how can I get the text instead index?

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

      to do that, you might use following: a = str( self..selectedItems()[].text() )

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

    luvvvvv uuuuuuuuuuuuuuuuuuuuus2s2s2s2s2s2s2s2