Results 1 to 2 of 2

Thread: gui problem

  1. #1
    Join Date
    May 2006
    Posts
    68
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    10

    Default gui problem

    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 .

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: gui problem

    Please don't crosspost. There is already one thread about that subject open.

Similar Threads

  1. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 13:45
  2. Problem with receiving events from QDateEdit
    By gunhelstr in forum Qt Programming
    Replies: 4
    Last Post: 20th April 2006, 12:21
  3. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 15:08
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 22:36
  5. Replies: 16
    Last Post: 7th March 2006, 16:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.