Results 1 to 3 of 3

Thread: QWidget or MainWindow display problem at Desktop environment

  1. #1
    Join Date
    Sep 2008
    Posts
    12
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default QWidget or MainWindow display problem at Desktop environment

    Hi,

    Here (http://rafb.net/p/LDKkJZ10.html) is simple pyqt4 code that just
    enables and disables the wireless status with the same time displaying a
    transparent pic. I assigned this application to a key combination at my
    Desktop environment. The problem is when i press the keys i don't see
    the GUI in the front of the Desktop. I created a simple MainWindow
    application and assigned it to the key combination this time. When i
    pressed the keys it shows the window. I am not sure why the widget is
    not beinng showed although i can see the GUI when i ran from terminal
    via python mysapplication.py

    I am using Gnome. I will be happy if someone help me to find how can i fix it so that i
    will see the pixmap when i press the keys.

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

    Default Re: QWidget or MainWindow display problem at Desktop environment

    I think the problem is that you are using relative path to the image. Try starting the application using console with an absolute path when your current directory is different than where your app resides and see if the problem reveals itself there as well. I mean something like:

    cd /tmp
    /home/.../.../myapp/myapp

    If I'm right, you shouldn't see the widget as well.

  3. #3
    Join Date
    Sep 2008
    Posts
    12
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QWidget or MainWindow display problem at Desktop environment

    The problem was related with the paths. After using the absolute paths the problem is solved.
    Thanx.

Similar Threads

  1. problem with indexes
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 10th December 2007, 14:55

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.