Results 1 to 20 of 154

Thread: How to use separate threads for pushbuttons in QT (like SwingWorker in Java)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #28
    Join Date
    Mar 2015
    Posts
    125
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: How to use separate threads for pushbuttons in QT (like SwingWorker in Java)

    "terminate called after throwing an instance of 'std::bad_alloc'
    what(): std::bad_alloc
    terminate called recursively..."
    if I put connect before start of thread (I need click button twice so it incorrect in principle as it was without nested concnet())
    Anyway as in other way. there is bad_alloc, despite I put Lister::listed2 on heap memory: bad_alloc is when I put in the end
    delete Lister::listed2; I need probably uqual it to Null. But in my first variant-- evrything works fine despite temporal freezing.
    But after 2-3 minutes the whole buncg of xml from WINDOWS folder is shown in textview.
    Last edited by artt; 9th January 2016 at 01:49.

Similar Threads

  1. Replies: 1
    Last Post: 1st April 2014, 08:48
  2. Destruction in separate threads
    By KevinKnowles in forum Qt Programming
    Replies: 3
    Last Post: 19th March 2012, 09:49
  3. Problem with QProcess in two separate threads
    By viheaho in forum Qt Programming
    Replies: 2
    Last Post: 18th March 2010, 22:52
  4. Replies: 1
    Last Post: 7th December 2009, 07:26
  5. Calling same method from separate threads
    By steg90 in forum Qt Programming
    Replies: 2
    Last Post: 19th July 2007, 08:55

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.