PDA

View Full Version : gui problem



deekayt
1st June 2006, 16:46
dear freinds



I have made a GUI in QT 3.3.4 ( on Suse10) . I have utilized the Main Dialog.
All the objects are created from FORM class (which itself is derived from QMainWindow as class Form : public QMainWindow)
Now my requirement is to be able to show an image / any ( not only text) file when i click on a button in this form or when a image /text file is selected from a file menu and copied to a textedit widget.
I have tried using system commands like system ( " gedit filename " or " "image veiwer filename")
but this blocks the application and one has to close the gedit window to do anything on the form.
Moreover the filename is static in this scenario. So i tried script file by inputing the name of the file and running the script( which also had the system command giving the same problem)
hence i tried qprocess.h

_-------------------------------------------------------
i have now done the following

#include <qprocess.h>
void Form :: showimage()
{
QProcess* proc = new QProcess( this );
proc->addArgument( "eog " );
proc->addArgument("/root/images/dk.jpg"
proc->start();
}

// where showimage is a slot connected by pushbutton
i am able to qmake and make also
but when i run
i get the following message
---------------------------------------------------------------------------
linux:~/prac # ./prac
name = latin
name = ipa-x-sampa
name = viqr
name = hangul2
name = hangul3
name = romaja
name = tutcode
name = tcode
name = skk
name = canna
name = anthy
name = py
name = pyunihan
name = pinyin-big5
name = direct
WARNING: please edit ~/.scim/global and change /DefaultConfigModule to kconfig

i am not able to find ~/.scim/global in the directories even after an extensive search .
please guide me .

wysota
1st June 2006, 16:49
Please don't crosspost (http://www.qtcentre.org/forum/showthread.php?t=2473). There is already one thread about that subject open.