Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Copy all screen

Copy all screen

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 210 Views 1 Watching
  • 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.
  • L Offline
    L Offline
    leandrogmuller
    wrote on last edited by
    #1

    Hello.

    I need to mark and copy the screen on pyqt.
    I have many labels on QGridLayout and I set setTextInteractionFlags(Qt.TextSelectableByMouse) at the all QLabels.
    But this method I need to mark one by one to copy.
    Is there any method to copy all text on screen?
    I would like to do look like HTML on browser, that we can mark and copy.

    Pl45m4P 1 Reply Last reply
    0
    • L leandrogmuller

      Hello.

      I need to mark and copy the screen on pyqt.
      I have many labels on QGridLayout and I set setTextInteractionFlags(Qt.TextSelectableByMouse) at the all QLabels.
      But this method I need to mark one by one to copy.
      Is there any method to copy all text on screen?
      I would like to do look like HTML on browser, that we can mark and copy.

      Pl45m4P Online
      Pl45m4P Online
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @leandrogmuller

      Access all your labels and simply get their text?! You want to use your label variables not get, what is written on your screen programmatically.

      To do that, you could iterate through your layout (if it only contains your labels) and get all the text.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      1

      • Login

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