Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Display images in a Windows
Forum Updated to NodeBB v4.3 + New Features

Display images in a Windows

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 3.3k Views 1 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.
  • C Offline
    C Offline
    clairsang
    wrote on last edited by
    #1

    I have a file. Txt contains about 100 lines in the following form:
    / home/clairsang/Bureau/TPE/GoogleImage/0001.jpg
    / home/clairsang/Bureau/TPE/GoogleImage/0078.jpg
    / home/clairsang/Bureau/TPE/GoogleImage/0148.jpg
    ....

    Now, I want to create a windows with one button, when pressed on this button pops up a new window, this window displays 100 images contained in the above file.

    Thanks.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      welcome to devnet

      Probably one of the examples can guide you toward your target. One of those could be the "basic graphics example":http://qt-project.org/doc/qt-4.8/graphicsview-basicgraphicslayouts.html However, you may want to study other examples as well.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mlong
        wrote on last edited by
        #3

        One hundred images in a grid? In a flipbook? Horizontally? Vertically?

        Are the images full sized? Resized?

        Software Engineer
        My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          clairsang
          wrote on last edited by
          #4

          !http://nk0.upanh.com/b4.s27.d2/c29e04c8acd8185b8f0d16e433376849_43310820.capture.png(Show images)!

          Actually, I only want to show up, like in the photo above is ok.
          Thanks for your answer.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            clairsang
            wrote on last edited by
            #5

            I have found two examples of this, but difficult to apply.

            http://qt-project.org/doc/qt-4.8/demos-declarative-flickr.html

            http://qt-project.org/doc/qt-4.8/demos-declarative-photoviewer.html

            1 Reply Last reply
            0
            • G Offline
              G Offline
              gmaro
              wrote on last edited by
              #6

              You may also consider using QGraphicsView.
              Create a set of QGraphicsPixmapItem from your resource images. Set proper size for them, put into layout (i.e. "QGraphicsGridLayout":http://qt-project.org/doc/qt-4.8/qgraphicsgridlayout.html) or align manually and you're done.

              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