Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. QGraphicsView showEvent not working.
QtWS25 Last Chance

QGraphicsView showEvent not working.

Scheduled Pinned Locked Moved Unsolved Qt for Python
pyqt5showevent
23 Posts 6 Posters 3.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JonBJ JonB

    @jeremy_k said in QGraphicsView showEvent not working.:

    A view without a scene is blank, but still a valid and showable QWidget.

    I was not aware of this. Your code shows showEvent being printed. Originally you said "Test never be printed out". So what is the situation?

    jeremy_kJ Offline
    jeremy_kJ Offline
    jeremy_k
    wrote on last edited by jeremy_k
    #21

    @JonB said in QGraphicsView showEvent not working.:

    @jeremy_k said in QGraphicsView showEvent not working.:

    A view without a scene is blank, but still a valid and showable QWidget.

    I was not aware of this. Your code shows showEvent being printed. Originally you said "Test never be printed out".

    I'm not the OP.

    Asking a question about code? http://eel.is/iso-c++/testcase/

    JonBJ 1 Reply Last reply
    1
    • jeremy_kJ jeremy_k

      @JonB said in QGraphicsView showEvent not working.:

      @jeremy_k said in QGraphicsView showEvent not working.:

      A view without a scene is blank, but still a valid and showable QWidget.

      I was not aware of this. Your code shows showEvent being printed. Originally you said "Test never be printed out".

      I'm not the OP.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #22

      @jeremy_k
      Oh, LOL, sorry about that! Well @darrenleeleelee1, what is the difference between your case where you say showEvent() is not hit and @jeremy_k's case where he shows it being hit? Or has this been solved and I am not understanding?!

      1 Reply Last reply
      1
      • D Offline
        D Offline
        darrenleeleelee1
        wrote on last edited by
        #23

        thanks guy I get my goal by the other way

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved