Results 1 to 5 of 5

Thread: QWidget: Cannot create a QWidget when no GUI is being used

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QWidget: Cannot create a QWidget when no GUI is being used

    Can't you make those functions static( name, description)? This way a QWidget won't have to be instantiated when you call the functions, therefore no QtGui ( I think... ).

    But this is useful only if you can make them static...

    Anyway, it doesn't matter that you don't actually show the widget. It is there, so when you hide it ( I assume that's how you don't show it ) it will emit a QHideEvent... Who's gonna catch that?

    Regards
    Last edited by marcel; 23rd April 2007 at 20:20.

Similar Threads

  1. Replies: 3
    Last Post: 8th March 2007, 14:54
  2. Showing QMainWindow without showing a child QWidget
    By discostu in forum Qt Programming
    Replies: 3
    Last Post: 4th March 2007, 09:03
  3. QFormbuilder : can not create widget of Q3ListView
    By user_mail07 in forum Qt Programming
    Replies: 5
    Last Post: 26th January 2007, 23:12
  4. How to create an Insert/Submit button for a form.
    By fnmblot in forum Qt Programming
    Replies: 5
    Last Post: 4th August 2006, 16:18
  5. Replies: 1
    Last Post: 2nd May 2006, 21:11

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.