Re: [Interest] QThreadPool & writing to the DB

2014-08-19 Thread Dmitriy Purgin
Also, if you're using QThreadPool::globalInstance(), keep in mind that it's max thread count is set to number of cores on the system by default [1]. If you're using an instance of QThreadPool (set by default) for long-running threads as well as for DB queries, you could end up in a situation where

Re: [Interest] QThreadPool & writing to the DB

2014-08-19 Thread Dmitriy Purgin
Hi, In addition to what Sze-Howe told, you should consider the backend used by the Qt database driver. In your case of SQLite you could end up in a situtation where multiple simultaneous INSERT queries seriously degrade the performance of SQLite engine which uses file locks to isolate transactions

Re: [Interest] selection in QTableWidget

2014-08-19 Thread Felix morack
The data i want to represent is row-columns based, and tableview seemed the only option that leaves the column/row management to me. That is, the items can be numbered from 0 to x, counting right to left, up to down. The number of columns is specified by the user. 0 - 1 - 2 - 3 4 - 5 - 6 - 7

Re: [Interest] selection in QTableWidget

2014-08-19 Thread André Somers
Felix morack schreef op 19-8-2014 09:59: > hello, > > > the selection (mode: selectitems) in a qtablewidget is by default a > square. For many purposes it would be better if the selection included > all items in between starting point and end point. This is well > illustrated here: > > https://i

[Interest] selection in QTableWidget

2014-08-19 Thread Felix morack
hello, the selection (mode: selectitems) in a qtablewidget is by default a square. For many purposes it would be better if the selection included all items in between starting point and end point. This is well illustrated here: https://i.imgur.com/9FBPr5I.png The question is: how to do this? M