View Full Version : Open a image from the QTableWidget
qtlinuxnewbie
4th March 2010, 11:31
hi,
my app contains a table widget in which one of the column contains path where the image stored in my sys.
so when i select that column and press show image button . i should display the image .
Could any one suggest me , an easier way to do this?
Thnkz in advance.
@qtlinuxnewbie.
Lykurg
4th March 2010, 11:53
an easier way to do this?
For doing what exactly?
qtlinuxnewbie
4th March 2010, 12:30
to display the image
i mean
wht is the easier way.
like : when show image button clicked .. image is shown any web browser or any qt widget etc.,,
Lykurg
4th March 2010, 13:24
Well then simply connect the clicked signal with a custom slot where you read the full path of your image and send a proper signal, like showImage("/path/to/file.png"). Connect that signal to any other part of your application create a Pixmap out of the path and display it. (Or react direct on the clicked signal without sending a second signal. This depends on your design.)
qtlinuxnewbie
6th March 2010, 05:58
create a Pixmap out of the path and display it.
i have done the job.
is it possible to open that image in any image viewers.?
i am working in Linux
@qtlinuxnewbie
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.