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. how to get the QListWidgetItem/QTreeWidgetItem 's position on screen?
Forum Updated to NodeBB v4.3 + New Features

how to get the QListWidgetItem/QTreeWidgetItem 's position on screen?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.8k 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.
  • O Offline
    O Offline
    opengpu2
    wrote on last edited by
    #1

    how to get the QListWidgetItem/QTreeWidgetItem 's position on screen?
    visualItemRect() returns the rect relative to QListWidget/QTreeWidget.

    HarbH 1 Reply Last reply
    0
    • O opengpu2

      how to get the QListWidgetItem/QTreeWidgetItem 's position on screen?
      visualItemRect() returns the rect relative to QListWidget/QTreeWidget.

      HarbH Offline
      HarbH Offline
      Harb
      wrote on last edited by
      #2

      @opengpu2 Hi! I think you can use mapToGloba() function. Its is method of QWidget.

      O 1 Reply Last reply
      0
      • HarbH Harb

        @opengpu2 Hi! I think you can use mapToGloba() function. Its is method of QWidget.

        O Offline
        O Offline
        opengpu2
        wrote on last edited by
        #3

        @Harb thank you i will have a try

        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