Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. what is way to know we already displayed given directory on ui screen ?
Forum Updated to NodeBB v4.3 + New Features

what is way to know we already displayed given directory on ui screen ?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 4 Posters 576 Views 2 Watching
  • 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.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by Qt embedded developer
    #1

    i have displayed directory list wise images but i don't know how to know this directory list is already opened

    for example : directory with name '20 Nov 2020' is already opened on ui screen with images

    DirectoryAlreadyDisplayed.png

    if any body know then let me know how to find and avoid this situation using qt c++ code ?

    raven-worxR 1 Reply Last reply
    0
    • Q Qt embedded developer

      @SGaist which method is used to find already added widget in Gridlayout ?

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #7

      @Qt-embedded-developer You could simply use a https://doc.qt.io/qt-5/qset.html where you store already loaded directories (QString) and check it before loading new directories...

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

      1 Reply Last reply
      1
      • Q Qt embedded developer

        i have displayed directory list wise images but i don't know how to know this directory list is already opened

        for example : directory with name '20 Nov 2020' is already opened on ui screen with images

        DirectoryAlreadyDisplayed.png

        if any body know then let me know how to find and avoid this situation using qt c++ code ?

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #2

        @Qt-embedded-developer
        so you implemented an app showing some data, and we should tell you what to do how to interpret this data with a simple screenshot? am i right?

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        Q 1 Reply Last reply
        0
        • raven-worxR raven-worx

          @Qt-embedded-developer
          so you implemented an app showing some data, and we should tell you what to do how to interpret this data with a simple screenshot? am i right?

          Q Offline
          Q Offline
          Qt embedded developer
          wrote on last edited by
          #3

          @raven-worx No. i want concept to handle problem. In my screen shot you can see that directory with name ' 20 Nov 21' is shown 2 time. i want to show it only one time.
          i need to show distinct non empty directory list. on mouse event i am adding image and directory. but on event already opened directory again get displayed. i want right approach to handle and manage this problem.

          Note that i am reading thumbnail of photos and images from directory inside sdcard

          jsulmJ 1 Reply Last reply
          0
          • Q Qt embedded developer

            @raven-worx No. i want concept to handle problem. In my screen shot you can see that directory with name ' 20 Nov 21' is shown 2 time. i want to show it only one time.
            i need to show distinct non empty directory list. on mouse event i am adding image and directory. but on event already opened directory again get displayed. i want right approach to handle and manage this problem.

            Note that i am reading thumbnail of photos and images from directory inside sdcard

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

            @Qt-embedded-developer Sorry, but without posting your code others can only guess what you're doing wrong...

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

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #5

              Hi,

              Before adding new data, check what you already have loaded.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              Q 1 Reply Last reply
              0
              • SGaistS SGaist

                Hi,

                Before adding new data, check what you already have loaded.

                Q Offline
                Q Offline
                Qt embedded developer
                wrote on last edited by
                #6

                @SGaist which method is used to find already added widget in Gridlayout ?

                jsulmJ 1 Reply Last reply
                0
                • Q Qt embedded developer

                  @SGaist which method is used to find already added widget in Gridlayout ?

                  jsulmJ Online
                  jsulmJ Online
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #7

                  @Qt-embedded-developer You could simply use a https://doc.qt.io/qt-5/qset.html where you store already loaded directories (QString) and check it before loading new directories...

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

                  1 Reply Last reply
                  1

                  • Login

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