Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. line edit
    Log in to post

    • SOLVED Getting QStringList text to line edit based on a string inserted on another line edit
      General and Desktop • qtcreator qstringlist line edit indexof • • Lasith  

      15
      0
      Votes
      15
      Posts
      2967
      Views

      @Lasith Your problems: You only once call the returning function of the index, and in the designer. (In fact, when ui->name text changes, the function should be called every time.) @Lasith said in Getting QStringList text to line edit based on a string inserted on another line edit: QString index; Name=ui->name->text(); for(int i=0;i<names.size();i++) { if(names[i]==Name){ index=i; } You want the string but in your cycle the 'i' of the integer. Why do not you pay attention to this(index = i)? Try compile the app? If yes, the compiler would inform you about it. From your profile it seems that you are using Qt too several months. But it does not seem to be at all. Do not try to conquer the peak, learn to walk first.
    • SOLVED Using singals and slots in an efficient way
      General and Desktop • qtcreator signals & slots line edit directly • • Lasith  

      4
      0
      Votes
      4
      Posts
      791
      Views

      @Lasith No, in this case use QSignalMapper.
    • UNSOLVED Storing previously entered words in cache
      General and Desktop • qtcreator line edit caching username • • Lasith  

      4
      0
      Votes
      4
      Posts
      671
      Views

      Store a QStringList in QSettings and pass it to a QStringListModel and then to the completer, maybe
    • SOLVED Getting proper folder path
      General and Desktop • qt creator button line edit folder path • • Lasith  

      5
      0
      Votes
      5
      Posts
      1026
      Views

      @J.Hilk Thanx mate :) I had been too complex
    • UNSOLVED Getting QLineedit values to qt header files
      General and Desktop • qtcreator line edit input header cpp qt • • Lasith  

      7
      0
      Votes
      7
      Posts
      1148
      Views

      Hi, Your code won't work, your QSqlDatabase object is invalid. Please take the time to look at the code example in QSqlDatabase's documentation as well as the example provided. It' also discouraged to store database object like that locally. QSqlDatabase allows for easy connection handling without the need for these local copies.
    • SOLVED IP Editor Plugin key_tab issues
      General and Desktop • plugin line edit keypressevent ip editor keytab • • Sh1gs  

      3
      0
      Votes
      3
      Posts
      1075
      Views

      Thank you @jsulm, I thought I read the documentation through, but apparently not. Also, I'm not calling QFrame. I saw the link I posted and used it as more of a guideline to create an IP Editor for my needs. Thank you for your help :)
    • SOLVED IP Address Editor with popup numberpad
      General and Desktop • widget line edit touch screen ip address • • Sh1gs  

      6
      0
      Votes
      6
      Posts
      2493
      Views

      I am going to mark this topic as Solved. I used a lot of the methodologies from this topic. I used 4 lineedits because I'm building a plugin and I want the user to be able to enter each input mask individually.
    • SOLVED Stylesheets for widgets on a Dynamic GUI
      General and Desktop • stylesheet widgets line edit textedit dynamic gui • • Sh1gs  

      12
      0
      Votes
      12
      Posts
      2988
      Views

      Try this , where you create ur control "dynamically" QLineEdit * m_edit=new QLineEdit(this); m_edit->setStyleSheet(":focus{background:white}"); /*this should set the stylesheet*/
    • UNSOLVED LineEdit style sheet
      General and Desktop • stylesheet line edit • • gabor53  

      5
      0
      Votes
      5
      Posts
      5695
      Views

      QLineEdit{ background-color:rgb(202, 255, 227); border: 2px solid gray; border-radius: 10px; padding: 0 8px; selection-background-color: darkgray; font-size: 16px;} QLineEdit:focus { background-color:rgb(192, 192, 255);} Try to add this to your lineedit in the Designer.
    • SOLVED LineEdit .isEmpty() Problem
      General and Desktop • qt 5.4.1 problem line edit empty • • M4RZB4Ni  

      4
      0
      Votes
      4
      Posts
      2413
      Views

      @SGaist Thank You so much , My problem solved! :)
    • UNSOLVED Handling QInputMethodEvent
      General and Desktop • qt5.4 event line edit inputmethod japanese • • DivyPrakash  

      1
      0
      Votes
      1
      Posts
      617
      Views

      No one has replied

    • UNSOLVED How do I connect to an event of line edit completion/exit and catch it in a QTreeView?
      General and Desktop • qtreeview tableview event line edit qlinedit • • lancelotrose  

      6
      0
      Votes
      6
      Posts
      2007
      Views

      Sounds pretty crazy...
    • SOLVED QDoubleValidate Switching
      General and Desktop • line edit qvalidator switching switch • • Dan90  

      7
      0
      Votes
      7
      Posts
      1518
      Views

      @kshegunov Allright, thanks for the help.
    • SOLVED Are Widgets like LineEdit affected by scope ?
      General and Desktop • line edit scope • • mrmorph  

      11
      0
      Votes
      11
      Posts
      2475
      Views

      Hi, Just a quick note, if your widget on stack (i.e. leDimWidth) gets a parent, you'll have a double delete problem since it will get destroyed when the parent is and again when your Stacker object gets destroyed.
    • UNSOLVED how to enter a character to qlineEdits from pushButtons depending on the selected lineEdit
      General and Desktop • line edit push button • • Saad_Rafey  

      2
      0
      Votes
      2
      Posts
      553
      Views

      Hi look at this sample http://www.java2s.com/Code/Cpp/Qt/Calculatorwithpushbuttons.htm Shows how to hook up buttons etc. (its numeric keypad) you can change it to use QApplication::focusWidget () const to input to whatever LineEdit that is selected.
    • UNSOLVED QlineEdit with constant text and editable text fields
      General and Desktop • widget qt 5.4.2 line edit • • Embitel_qt  

      13
      0
      Votes
      13
      Posts
      5602
      Views

      might be slightly more compact to use the fill method. :) http://doc.qt.io/qt-5/qstring.html#fill
    • Push button clicked event executed simultaneously with returnedPressed() event of a LineEdit - *SOLVED*
      General and Desktop • line edit push button clicked returnpressed • • Raim  

      1
      0
      Votes
      1
      Posts
      567
      Views

      No one has replied