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. Get what is pressed inside QTextEdit
Forum Updated to NodeBB v4.3 + New Features

Get what is pressed inside QTextEdit

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtexteditcursortable
1 Posts 1 Posters 309 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.
  • P Offline
    P Offline
    publicusernameyo
    wrote on 9 Dec 2019, 20:03 last edited by
    #1

    I am trying to get what has been pressed inside a QTextEdit. More specifically I am trying to get if the user pressed on one of the edges of a cell of a table inside the QTextEdit. I can do this on the web using simple JS but since QTextEdit cannot use JS I am forced to use other methods. I cannot find anything on the internet about resizing a table inside QTextEdit using your cursor.

    I am thinking that I have to map out where the cursor pressed and then count the height of the characters and the height of the cells on that Y-axis and then see if the cursor is in an interval of a cell wall and then take the width of all characters as well as the padding and margin into account to see if the cursor is in the X-axis interval of a cell wall? Anybody got another idea since this will take hours, possibly days, to code and is quite ugly. If it is possible.

    1 Reply Last reply
    0

    1/1

    9 Dec 2019, 20:03

    • Login

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