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 the current Cursor position in a Console programm

Get the current Cursor position in a Console programm

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 626 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.
  • A Offline
    A Offline
    Allinev
    wrote on last edited by
    #1

    How can i get the current position of the cursor
    x and y ?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      http://doc.qt.io/qt-5/qcursor.html#pos

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Allinev
        wrote on last edited by
        #3

        hi the link u send me is for qt gui applications if im not wrong.
        i want to try it in a console program

        Thank you for you reply

        aha_1980A 1 Reply Last reply
        0
        • A Allinev

          hi the link u send me is for qt gui applications if im not wrong.
          i want to try it in a console program

          Thank you for you reply

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Allinev

          In a default console program, there is no (platform independent) way.

          You will need libraries like ncurses for that.

          Qt has to stay free or it will die.

          1 Reply Last reply
          3

          • Login

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