Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Designer » How to Load Image on Main Window use PixmapLabel and Implement Canny Edge Detection » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page How to Load Image on Main Window use PixmapLabel and Implement Canny Edge Detection
Author
Post « Previous Thread | Next Thread »
ton_malaka ton_malaka is a male
Assistant


Registration Date: 28.03.2008
Posts: 7
Location: Bali-Indonesia

Level: 7 [?]
Experience: 346
Next Level: 443

97 points of experience needed for next level

How to Load Image on Main Window use PixmapLabel and Implement Canny Edge Detection Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hello, my name is ton_malaka. I'm newbie on Qt Designer. I use Qt Designer 3.3.8 on openSuSE 10.3.

I try to implement Canny Edge Detection with Qt Designer. First of all, I must try to load image from file location on Main Window Form. I've been tried to follow a example code (showimage.cpp) on Qt Assistant, but that's example just have been built with Qt (not Qt Designer).

I attach the code that I modified on attachments. The code still have error. The error message is :

QPaintDevice: Must construct a QApplication before a QPaintDevice

If you don't mind, can you help me to solve the problem ? I want modify the code like this :
1. The application just use a MainWindow with MenuBar.
2. Load the image file and show it on the "PixmapLabel". I gave the name with "PixmapLabelIn".
3. After load image successfull on "PixmapLabelIn", next process is detect the edge image on "PixmapLabelIn" with Canny Edge Detection method. The result is shown on "PixmapLabelOut".

I say thank you so much for your help.

ton_malaka

Attachment:
unknown frakmeans-qt.tar.gz (329.48 KB, 11 downloads)


__________________
..::Keep'n Free Minded::..
22.04.2008 07:44 ton_malaka is offline Send an Email to ton_malaka Search for Posts by ton_malaka Add ton_malaka to your Buddy List YIM Account Name of ton_malaka: funk_ynot_24
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Qt Designer » How to Load Image on Main Window use PixmapLabel and Implement Canny Edge Detection

views today: 9.708 | views yesterday: 17.520 | total views: 10.243.077


Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -  SMS Gewinnspiel -  Hotels -  Stadtpläne -  Branchenbuch & Stadtplan

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich