PDA

View Full Version : Displaying Multiple Images such that image size can be set to window's width.



shakayb
15th August 2011, 12:25
Hi All!
I am a newbie and hasn't worked too much in Qt.I am stuck with a problem.If somebody can provide a code for following problem i will be much more thankful:
Problem:
I want to Display two images in my window. I did that with QLable using QGridLayout but there were some problems,i.e.
i) Images took only half of the width of window while i need my images to take full width of window in which they are displayed.
ii) Images were not supporting User Interaction i.e. I need my Labels to be touch enabled so that i Can take appropriate action accordingly.
I just realized at the end that QLabel doesn't support User interface.

Therefore if some body can provide me with the full code having above mentioned functionality' it will help me out in my problem.Its a request.Thanks.

wysota
15th August 2011, 18:17
Therefore if some body can provide me with the full code having above mentioned functionality' it will help me out in my problem.
What are you offering in return?