Results 1 to 5 of 5

Thread: Software Layout (Multithreading, QWorkspace, Fileoperations)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2007
    Location
    Bielefeld, Germany
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Software Layout (Multithreading, QWorkspace, Fileoperations)

    To give a bit more background:

    Some software writes all clients to a csv file. Then creates a subdir with clients name and puts a logfile there (also csv-based). I'd like my application to be able to open a single TableView for each of these logfiles in the workspace.

    So for every selected client, a new analysis-widget will be opened and filled from the corresponding logfile .

    I hope, this explains the purpose somewhat better.

  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: Software Layout (Multithreading, QWorkspace, Fileoperations)

    You could do it without threads at all... If you process files chunk by chunk, you can iterate all open files and do everything without blocking the GUI for too long.

  3. #3
    Join Date
    Mar 2007
    Location
    Bielefeld, Germany
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Software Layout (Multithreading, QWorkspace, Fileoperations)

    It turned out, that I need an importer-thread, because the files may be quite large( processing takes about one minute for a 75MB file, but time is not a vital factor here). But wysota's chunk-hint gave me the idea of simply checking an "abort"-Variable and taking all necessary measures, before calling exit(), resp. terminate() if it turns out to be needed, after every processed chunk of data.

    Seems to work, thanks

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.