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. How to view Images
Forum Updated to NodeBB v4.3 + New Features

How to view Images

Scheduled Pinned Locked Moved Mobile and Embedded
10 Posts 5 Posters 4.7k 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.
  • P Offline
    P Offline
    prajnaranjan.das
    wrote on last edited by
    #1

    I have placed images in QLabel and want to view it larger when I clicks it ......

    Prajnaranjan Das

    e mail: prajnaranjan.das@gmail.com

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexander
      wrote on last edited by
      #2

      In a new window or resize QLabel?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on last edited by
        #3

        If you want to achieve such things, you have to react on the click, either by sub classing QLabel or by an eventFilter.
        If you want to enlarge the label, you can set minimum size etc, otherwise you can create a dialog / top level window or whatever you need there.

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply
        0
        • P Offline
          P Offline
          prajnaranjan.das
          wrote on last edited by
          #4

          thanks for your reply....Can you please give me a link related to keyPress and mousePressEvent or any example for this....

          Prajnaranjan Das

          e mail: prajnaranjan.das@gmail.com

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dangelog
            wrote on last edited by
            #5

            Subclass and override the event handlers. See the QWidget docs for it.

            Software Engineer
            KDAB (UK) Ltd., a KDAB Group company

            1 Reply Last reply
            0
            • P Offline
              P Offline
              prajnaranjan.das
              wrote on last edited by
              #6

              can you please give me the link.......

              Prajnaranjan Das

              e mail: prajnaranjan.das@gmail.com

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vcsala
                wrote on last edited by
                #7

                "QWidget keyPressEvent":http://doc.qt.nokia.com/4.7/qwidget.html#keyPressEvent

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vcsala
                  wrote on last edited by
                  #8

                  Anyway it is always a good starting point to search the documentation

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    vcsala
                    wrote on last edited by
                    #9

                    Regarding examples: you can download the examples for the book C++ GUI Programming with Qt4, 2nd Edition "here":http://www.informit.com/store/product.aspx?isbn=0132354160. This also can be helpful to learn from practical examples.

                    1 Reply Last reply
                    0
                    • ? This user is from outside of this forum
                      ? This user is from outside of this forum
                      Guest
                      wrote on last edited by
                      #10

                      [quote author="Prajnaranjan Das" date="1292591323"]thanks for your reply....Can you please give me a link related to keyPress and mousePressEvent or any example for this....[/quote]

                      you can check the scribble example that ships with Qt SDK

                      also see "this":http://doc.qt.nokia.com/latest/statemachine-rogue-movementtransition-h.html

                      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