Results 1 to 3 of 3

Thread: How to show a "widget" immediately?

  1. #1
    Join Date
    Mar 2006
    Posts
    8
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11

    Default How to show a "widget" immediately?

    hi all:
    i want to show three button in a widget, such as
    void MyWidget :: showWidget()
    {
    ........
    showRedButton();
    ........
    showCyanButton();
    .......
    showBlackButton();
    .......
    }
    how can i show the "red button" on the screen immediately after i call the
    function "showRedButton()"?

    can anyone help me? thank you very much!

  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: How to show a "widget" immediately?

    By using QWidget::show()? If you really want it to be immediately, you might also want to call QApplication::processEvents().

  3. #3
    Join Date
    Mar 2006
    Posts
    8
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to show a "widget" immediately?

    i use "show()" and "repaint()",
    but both of them didn't work
    i really need to update the screen immediately,

    thank you, i'll have a try with your suggestion!

Similar Threads

  1. WYSIWYG html, Window show png icon mac no!
    By patrik08 in forum Qt Programming
    Replies: 10
    Last Post: 25th May 2006, 12:01
  2. QtSingleApplication
    By mule in forum Qt Programming
    Replies: 8
    Last Post: 28th February 2006, 19:21

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.