Results 1 to 3 of 3

Thread: Connect QLabel and QLineEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2007
    Posts
    52
    Thanks
    6

    Default Connect QLabel and QLineEdit

    Hey,

    I have a really big program that i am working on and I have multiple windows for editing/viewing the same data. I want one window to have come LineEdits and another one to have the labels. As soon as the LineEdit is changed I would like it to change the label. Is there a way to connect the two without using connects...something like how you can have a view change the models data and it will update on all the views.

    I hope my explanation makes sense. Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Connect QLabel and QLineEdit

    If you have a model, you can use QDataWidgetMapper.

  3. The following user says thank you to jacek for this useful post:

    abbapatris (8th January 2008)

  4. #3
    Join Date
    Jun 2007
    Posts
    52
    Thanks
    6

    Default Re: Connect QLabel and QLineEdit

    Thanks, that helps me out a lot...

Similar Threads

  1. Replies: 1
    Last Post: 26th November 2006, 09:32
  2. QLineEdit && QLabel
    By eleanor in forum Newbie
    Replies: 16
    Last Post: 12th November 2006, 17:30

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
  •  
Qt is a trademark of The Qt Company.