Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Filter function is not working
Forum Update on Monday, May 27th 2025

Filter function is not working

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 321 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Paulus_rin
    wrote on last edited by Paulus_rin
    #1
    This post is deleted!
    jsulmJ 1 Reply Last reply
    0
    • P Paulus_rin

      This post is deleted!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @Paulus_rin What exactly does not work?
      Is myList empty?
      Does myList.filter not work? If so - how does the regular expression look like?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Paulus_rin What exactly does not work?
        Is myList empty?
        Does myList.filter not work? If so - how does the regular expression look like?

        P Offline
        P Offline
        Paulus_rin
        wrote on last edited by
        #3

        @jsulm the problem is that the groceries are not shown in the listWidget.
        myList.filter is not working too, because there is nothing in it

        this is in my header file

        "private:
        Ui::Lebensmittelsuche *ui;

        QStringList myList;"
        

        And with
        "myList = myPath.entryList();"
        I thought that myList is filled with all the groceries , because I showed him "myPath".

        But Im new to Qt, maybe there is an easier way to implement something likely

        jsulmJ 1 Reply Last reply
        0
        • P Paulus_rin

          @jsulm the problem is that the groceries are not shown in the listWidget.
          myList.filter is not working too, because there is nothing in it

          this is in my header file

          "private:
          Ui::Lebensmittelsuche *ui;

          QStringList myList;"
          

          And with
          "myList = myPath.entryList();"
          I thought that myList is filled with all the groceries , because I showed him "myPath".

          But Im new to Qt, maybe there is an easier way to implement something likely

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Paulus_rin said in Filter function is not working:

          I thought that myList is filled with all the groceries , because I showed him "myPath".

          It is really not clear what you're writing. So, does myList contain anything after "myList = myPath.entryList();" or not?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved