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. On Focus Event alternative? && returning a value from dialog
QtWS25 Last Chance

On Focus Event alternative? && returning a value from dialog

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.6k 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.
  • V Offline
    V Offline
    vezprog
    wrote on last edited by
    #1

    What I am trying to do is make is so when I click a QLineEdit, and keypad Dialog opens. When the user has completed his/her number combination on the keypad and presses ok, I would like the value to be passed back to the main form.

    The only way I have found so far from researching on the net is to use an on focus event, so when the user sets focus on the text box, the box opens. Is there a better way to do this? like a on click event that I am missing for a text box? seems like there should be...

    Also, when I create an instance of a dialog, is there a way to return a value when after the OK button has been pressed on the dialog box and it closes (keypad). Its really nothing I have experimented with before so I am trying to plan before I attack at this one :)

    I am developing on linux / Qt4

    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