Results 1 to 10 of 10

Thread: Update GUI from another thread

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Update GUI from another thread

    Quote Originally Posted by Anne View Post
    I'm willing to pay for your time.
    If you want to offer a job, even if it is a small one, please use your "Jobs" forum.

    Nevertheless, if you found the answers usefull, nobody will stop you if you spend some money to QtCentre.org or KDE e.V. or or or...

  2. #2
    Join Date
    Jul 2010
    Posts
    3
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Update GUI from another thread

    Dear Lykurg and ^NyAw^,

    Wow, is it just that simple?! QT really amazes me.

    You really helped me out here, everything is perfectly clear right now. I was thinking too complicated. In Xcode / Cocoa it's actually much harder to do exactly this. If you ever have any Xcode / Cocoa related question, please contact me!

    Generally I never ask for help. I want to figure out things like these myself. In the long run this is the best way to learn a new language in my opinion. But in this case I was completely stuck.

    I did not really intend to offer a job, was just asking for an example. Please give me some info on how to donate to qtcentre.org (can't find the PayPal address). I love communities like these and always support them.

    All your help is greatly appreciated,
    Kind regards,
    Anne

  3. #3
    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: Update GUI from another thread

    Quote Originally Posted by Anne View Post
    Please give me some info on how to donate to qtcentre.org (can't find the PayPal address). I love communities like these and always support them.
    Qt Centre paypal account is foundation at qtcentre.org.
    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.


  4. #4
    Join Date
    Jul 2010
    Posts
    3
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Update GUI from another thread

    @wysota
    Thanks for the address!

    @^NyAw^ and Others
    I tried to open your sample project, but the folder does not contain any .pro files.
    The only files I see are .h, .cpp, .ui and .qrc.
    How can I open such an project directly with QT? The .qrc is not recognized?
    (Of cours I now just directly used the .cpp and .h files, but was just curious)

  5. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Update GUI from another thread

    You can run "qmake -project" inside that folder. Then Qt is generating a pro file for you.

  6. #6
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Update GUI from another thread

    Hi,

    Quote Originally Posted by Anne View Post
    @^NyAw^ and Others
    I tried to open your sample project, but the folder does not contain any .pro files.
    The only files I see are .h, .cpp, .ui and .qrc.
    How can I open such an project directly with QT? The .qrc is not recognized?
    (Of cours I now just directly used the .cpp and .h files, but was just curious)
    I just don't added the pro file because I'm using Visual Studio on Windows and I'm not using the pro file, but there is an option to create the pro file that then I can attach.
    Just use "qmake -project" as Lykurg said to create the "pro" file and then call "make" to compile the project.

    Quote Originally Posted by Anne View Post
    Generally I never ask for help
    It's a good idea to learn by yourself, but sometimes the examples don't show what you are expecting or you are not able really how something works. Then, ask the forum! (but first of all try to find similar posts on it).
    Òscar Llarch i Galán

Similar Threads

  1. Replies: 9
    Last Post: 28th November 2009, 20:31
  2. update a wigdet in a thread is no allow?
    By lanmanck in forum Qt Programming
    Replies: 8
    Last Post: 25th October 2009, 03:05
  3. Replies: 16
    Last Post: 7th October 2009, 08:17
  4. update widget from separate thread
    By method in forum Qt Programming
    Replies: 5
    Last Post: 10th July 2009, 14:33
  5. Main thread - worker thread communication.
    By kikapu in forum Newbie
    Replies: 25
    Last Post: 23rd May 2007, 22:09

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.