The Following User Says Thank You to noobmonkey For This Useful Post: | ||
![]() |
2010-02-15
, 11:35
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#2
|
What is the best widget thing in QT designer to use to show a picture? - also.... as i will be calling the above code line, i am assuming i need to wait until it has completed before i can load the picture (And probably learn to parse an error message if needed) - but assuming it works fine, is there a line of code i can use to set the widget thing to show the image ie.
[CODE]
Any help would be very much appreciated! (Bearing in mind i have a week or so experience in this field, i'm trying! hehe)
The Following User Says Thank You to krk969 For This Useful Post: | ||
![]() |
2010-02-15
, 11:37
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#3
|
You could use something as simple as a QLabel to display your image.
here is an example, but its in C++, maybe it will help you
![]() |
2010-02-15
, 12:54
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#4
|
gst-launch v4l2camsrc device=/dev/video1 num-buffers=1 ! omx_jpegenc ! filesink location=fcamtest.jpg
gst-launch v4l2camsrc device=/dev/video1 num-buffers=1 ! dspjpegenc ! filesink location=fcamtest.jpg
![]() |
2010-02-15
, 16:36
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#5
|
![]() |
Tags |
front camera, parse, pymaemo, qt designer, terminal |
|
I've learnt how to call commands from terminal and drag them into my program
(So far i have pulled the output from dpkg -l, still have to parse it all though!)
My next test is to put a picture into the form. More precisely i'm confirming the front camera works... so.... i'm calling this line from x-term
What is the best widget thing in QT designer to use to show a picture? - also.... as i will be calling the above code line, i am assuming i need to wait until it has completed before i can load the picture (And probably learn to parse an error message if needed) - but assuming it works fine, is there a line of code i can use to set the widget thing to show the image ie.
Any help would be very much appreciated! (Bearing in mind i have a week or so experience in this field, i'm trying! hehe)
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -