Skip to content
  • 0 Votes
    15 Posts
    5k Views
    Taz742T

    @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.

  • 0 Votes
    10 Posts
    5k Views
    TheBadgerT

    Reading that report and thinking about it it makes sense that it is not an actual bug.

    For [a-z] it should not be escaped, since you want to match all characters from a up to character z.

    For [a\-z] you want to match character a, or character hyphen or character z.