Results 1 to 6 of 6

Thread: Change Event Function

  1. #1
    Join Date
    Jul 2012
    Location
    Hyderabad
    Posts
    82
    Thanks
    5
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Smile Change Event Function

    Dear Forums,

    I have a doubt hope you guys have a clear idea about it..See i have a form consisting of five fields and what i need is when i give data in one field lets say license number it should fill the rest of the fields related to that license number such as name etc as the fields are name,address etc. I know it in Java but when comes to QT i am not understanding how to put it in code..Any Solution would be appreciable............


    Regards,


    Venugopal.
    Last edited by wysota; 24th July 2012 at 13:46. Reason: reformatted to look better

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Change Event Function

    What exactly don't you understand? The code structure for C++ will be the same as for Java.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Change Event Function

    Using signal-slot mechanism will be a better option here, instead of Event
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  4. #4
    Join Date
    Jul 2012
    Location
    Hyderabad
    Posts
    82
    Thanks
    5
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Change Event Function

    Dear Santosh Reddy,

    Thank you for the reply that you sent me........Santosh it would be good if you send me the function or the sample code which will be very useful for me as im very new to QT.Any solution would be appreciable.


    Regards,

    Venugopal.

  5. #5
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Change Event Function

    Check this out
    Attached Files Attached Files
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  6. #6
    Join Date
    Jul 2012
    Location
    Hyderabad
    Posts
    82
    Thanks
    5
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Change Event Function

    Dear santosh,

    Thanks for the code that you sent me .......Its working but i have some problem where should i write my query to get the details when i give one data coz you u have written an simple array right can you suggest me with this.........Any solution would be appreciable.........



    Regards,

    Venugopal

Similar Threads

  1. How to declare a function for click button event
    By prajnaranjan.das in forum Newbie
    Replies: 8
    Last Post: 24th December 2010, 12:17
  2. Paint event function in key press event
    By soumya in forum Qt Programming
    Replies: 6
    Last Post: 2nd February 2010, 12:40
  3. [noob] How can I have a widget event call a function?
    By Envergure in forum Qt Programming
    Replies: 5
    Last Post: 26th November 2008, 23:17
  4. function to stop receiving event
    By babu198649 in forum Qt Programming
    Replies: 11
    Last Post: 19th November 2007, 08:45
  5. Modal dialog in QMainWindow's event() function
    By tanminh in forum Qt Programming
    Replies: 1
    Last Post: 22nd June 2007, 09:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.