Results 1 to 2 of 2

Thread: Can't see widget, yet isVisible() returns true

  1. #1
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Can't see widget, yet isVisible() returns true

    Hello,

    This is happening in Windows 7 only, not Ubuntu, so there shouldn't be some fundamental problem with my code. My program has a QGLWidget subclass as its main window--as in, main.cpp looks like this:

    Qt Code:
    1. int main(int argc, char *argv[])
    2. {
    3. QApplication a(argc, argv);
    4. MyGLWidget w;
    5. w.show();
    6. return a.exec();
    7. }
    To copy to clipboard, switch view to plain text mode 

    When I run this in Windows, the widget never appears on screen, nor does an icon for it appear in the taskbar (i.e. the bar on the bottom of the screen where program icons go). However, the executable *does* appear in the Processes list on the Task Manager; and within the program, I use a timer to check whether the widget has appeared yet with 'isVisible()', and this returns true. Does anybody know what could be going on? In general I am able to run Qt programs in Windows 7. Thanks--

    Matt

  2. #2
    Join Date
    Jul 2010
    Location
    /home/hakermania/
    Posts
    233
    Thanks
    129
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Can't see widget, yet isVisible() returns true

    It is now happening on ubuntu
    follow: http://www.qtcentre.org/threads/3665...868#post168868
    When you 're trying to help somebody in the newbie section, don't forget that he is a newbie. Be specific and give examples.

Similar Threads

  1. Replies: 2
    Last Post: 2nd October 2009, 15:32
  2. why Qt's forever macro is for(;;) rather than while(true).
    By babu198649 in forum General Programming
    Replies: 1
    Last Post: 13th June 2009, 14:21
  3. Is this true, Qt lgpl license..
    By tgreaves in forum General Discussion
    Replies: 5
    Last Post: 8th March 2009, 11:34
  4. problem with QFrame isVisible()
    By impeteperry in forum Qt Programming
    Replies: 1
    Last Post: 5th August 2008, 16:29
  5. connect() returns true but slot not called
    By OriginalCopy in forum Qt Programming
    Replies: 6
    Last Post: 4th November 2007, 18:54

Tags for this Thread

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.