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 use key event even if line edit was focused

how to use key event even if line edit was focused

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 701 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    i was trying keypressevent and it didn't work when qline edit is focused .
    so is there a way to do some thing when key is pressed without disable Qlineedit focus policy?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Best way is to use eventFilter, install on lineEdit and process it.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      ? 1 Reply Last reply
      2
      • dheerendraD dheerendra

        Best way is to use eventFilter, install on lineEdit and process it.

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @dheerendra can you send me an example

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          You can look at git

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          ? 1 Reply Last reply
          3
          • dheerendraD dheerendra

            You can look at git

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @dheerendra thank you so much

            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