Results 1 to 2 of 2

Thread: QLineEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2014
    Posts
    71
    Thanks
    13
    Qt products
    Qt5
    Platforms
    Windows

    Question QLineEdit

    Hello

    In my GUI I have 12 QLineEdit ,where the name I have given are below
    le_ecu2uss1_time
    le_ecu2uss2_time
    ----
    ----
    le_ecu2uss12_time

    I want to use the 12 lineEdit in Loop.
    How to convert this name for the use in Loop.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QLineEdit

    Simply : create QList<QLineEdit*> with pointers and :

    1. If UI is created by program remeber addresses.
    2. If UI is created by designer create list with QObject::findChildren.

Similar Threads

  1. qlineedit
    By madhukumar in forum Qt Programming
    Replies: 3
    Last Post: 3rd May 2014, 08:19
  2. Replies: 1
    Last Post: 12th October 2010, 22:20
  3. QLineEdit
    By bismitapadhy in forum Qt Programming
    Replies: 3
    Last Post: 11th August 2009, 08:24
  4. QLineEdit
    By rick_st3 in forum Newbie
    Replies: 1
    Last Post: 14th June 2008, 09:05
  5. About QLineEdit
    By vijay anandh in forum Newbie
    Replies: 2
    Last Post: 19th October 2006, 10:45

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.