Results 1 to 2 of 2

Thread: "GUI" and "worker" threads

  1. #1
    Join Date
    Sep 2008
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default "GUI" and "worker" threads

    Dear everybody,

    I would like to submit a question about how I have decided to implement the GUI and worker threads in my
    application. I'm working on Windows CE 5.0 and Qt 4.7.4. My problem is that the application is slow when
    it has to render the GUI pages.

    In the GUI thread I have created all of the GUI classes. Each class derives from a QFrame widget which
    has been defined as top-level window. For each class which represents a page of my application I have
    installed all the widgets needed from that page, reparented to the base QFrame. Also, each class has its
    own worker thread which make some calculations and updates the GUI parts of its widgets.

    So, I make GUI updates from some worker threads which call methods of widgets which live in the GUI
    thread. Is the correct way to approach the GUI updating ? Is this the reason why I'm experiencing the
    slowness when the application shows a new page ?

    Best Regards

    /Alessandro

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

    Default Re: "GUI" and "worker" threads

    Quote Originally Posted by ale301168 View Post
    Also, each class has its
    own worker thread which make some calculations and updates the GUI parts of its widgets.
    How is this implemented?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 1
    Last Post: 7th April 2010, 21:46
  2. Replies: 3
    Last Post: 15th February 2010, 17:27
  3. Replies: 3
    Last Post: 8th July 2008, 19:37
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

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.