Re: [Development] QWidget::setWindowState(Qt::WindowStates) vs QWindow::setWindowState(Qt::WindowState)

2017-01-19 Thread Bo Thorsen
tracker. Bo Thorsen. Den 18-01-2017 kl. 16:21 skrev Thomas Søndergaard: I hope my previous email wasn't offensive or downright stupid; no one has replied. I certainly meant no disrespect. While I'm waiting for a response, let me throw a specific proposal out there. First, I assume the correct

Re: [Development] two questions about the build system of Qt

2016-12-02 Thread Bo Thorsen
review for more than a year now. Could you say a bit more about why you are doing this and what you are hoping to achieve? It's not often that I see someone investigating things like the two issues you found. Thanks, Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C

Re: [Development] Qt 5.9

2016-11-24 Thread Bo Thorsen
ever use MinGW myself unless a customer forces me to. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt-project.org http://lists.qt-project.org

Re: [Development] Notes on "Qt Build Systems" @ QtCon 2016

2016-09-08 Thread Bo Thorsen
ave to run moc exactly like if it was done by the qmake built makefiles, with exactly the same environment and arguments. Not impossible, but it does sound brittle. For example different qmake versions might do things differently. Bo Thorsen, Director, Viking Software. -- Viking Software Qt an

Re: [Development] Notes on "Qt Build Systems" @ QtCon 2016

2016-09-08 Thread Bo Thorsen
Den 08-09-2016 kl. 13:47 skrev Milian Wolff: On Donnerstag, 8. September 2016 13:41:21 CEST Bo Thorsen wrote: Den 05-09-2016 kl. 20:49 skrev Milian Wolff: As an incredibly simple example, make is inherently limited in that it cannot even represent a rule with multiple outputs (there are some

Re: [Development] Notes on "Qt Build Systems" @ QtCon 2016

2016-09-08 Thread Bo Thorsen
have a makefile generating step. Maybe this seems more important to me than others because I'm a huge fan of custom built code generators for stuff like database connections and client-server communications. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developer

Re: [Development] Behavior of mapToGlobal function when application is not the one active.

2016-08-02 Thread Bo Thorsen
list instead. This is not the appropriate list. And when you resent it, you have to send some code as well because the but will be in your code and we can't help with that unless we see it. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.

Re: [Development] [Interest] Native event filter in QtService

2016-06-24 Thread Bo Thorsen
service’s constructor and start()method, as well as using a local instance of NativeDeviceEventFilter, but none of these worked. The event just isn’t registered at all. Has anyone ever done something like this? Or is there another way to receive native messages (MSG structs) in a QtService? B

Re: [Development] QtSingleApplication in Qt proper?

2016-06-17 Thread Bo Thorsen
, stopping, automatic startup etc. It also provides methods for controlling this from code. It works very well. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list

Re: [Development] Can we use std::unique_ptr in Qt base/modules sources since Qt5.7 ?

2016-06-14 Thread Bo Thorsen
limited in it's use, but that doesn't mean it's unusable. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt-project.org http://lists.qt-project.org

Re: [Development] Can we use std::unique_ptr in Qt base/modules sources since Qt5.7 ?

2016-06-12 Thread Bo Thorsen
Den 12-06-2016 kl. 12:59 skrev Denis Shienkov: No, use of the C++11 Standard Library features is not permitted Lousy to hear it... How to do then RAII to avoid a leaks e.g. for Windows handles (HANDLE, HKEY, HDEVINFO and other stuff)? QScopedPointer? Bo Thorsen, Director, Viking Software

Re: [Development] Fixing QRect::width() / height()

2016-03-15 Thread Bo Thorsen
lem with this solution. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development

Re: [Development] templated QObjects [was: Re: We are planning to upgrade qdoc to use clang for parsing C++]

2016-02-29 Thread Bo Thorsen
happens... It sounds like this is something that would require qmake, moc and qdoc support, not just moc-ng. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list

Re: [Development] Question about QCoreApplicationData::*_libpaths

2016-01-21 Thread Bo Thorsen
. In my experience with profiling applications, the most hotspots can be fixed by adding reserve to loops where the size is known or can be guessed. This has a tremendous effect on runtime speed, also for QVector using realloc And this is how it is. Bo Thorsen, Director, Viking Software. -- Viking

Re: [Development] What kind of airplane we want to build?

2016-01-20 Thread Bo Thorsen
, too, so ... why do they use C++ if they so hate it? Why do you think people hate C++? I love C++ but I hate the string classes. I like some part of the std containers, I don't like their API. In the same category of argument, I love Qt, but I hate that we don't use exceptions. Bo Thors

Re: [Development] Question about QCoreApplicationData::*_libpaths

2016-01-19 Thread Bo Thorsen
, for example. And I would like to see Qt offer the use of std:: containers in the API. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt

Re: [Development] Question about QCoreApplicationData::*_libpaths

2016-01-15 Thread Bo Thorsen
anyone trying to use the horrible abominations that are std::string or std::wstring. Or the std streams *shudder*. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing

Re: [Development] RFC: more liberal 'auto' rules?

2015-12-30 Thread Bo Thorsen
in the same statement¹. Period. This is getting quite off-topic, even for this thread. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt-project.org http:

Re: [Development] Sending key events on Qt 5.5.0

2015-09-17 Thread Bo Thorsen
That's completely besides the point I was making. I'm saying you shouldn't abuse the shortcuts as a message system (which is exactly what you do). If you want to send events, find another way. Bo. Den 17-09-2015 kl. 12:16 skrev christian.paffhau...@ehrhardt-partner.com: > > Hi Bo T

Re: [Development] Sending key events on Qt 5.5.0

2015-09-17 Thread Bo Thorsen
s is a bad idea. That said, I also think you should report this as a bug. The behaviour change between 5.4 and 5.5 is bad. But I've seen 5.5 behaviour change bug reports closed as invalid for weird reasons, so you might not have any luck. I hope this helps. Bo Thorsen, Director, Viking Softwar

Re: [Development] Qt LTS C++11 plans (CopperSpice)

2015-07-03 Thread Bo Thorsen
Den 03-07-2015 kl. 07:09 skrev Ansel Sermersheim: On 7/2/15 2:23 PM, Milian Wolff wrote: On Thursday 02 July 2015 23:00:43 Bernhard wrote: Unfortunately adding signals of the template’s type is exactly what I would have needed several times. In that case there is no clean solution. I once

Re: [Development] -Winconsistent-missing-override warning with latest Xcode and Qt 5.5

2015-07-02 Thread Bo Thorsen
fine print ) I could not release software using unreleased versions of Qt Enterprise. Your boss should tell you not to release software based on a 2 day old x.y.0 release. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu

Re: [Development] date/time adjust for (auto) testing

2015-06-03 Thread Bo Thorsen
(or friends). Then we can't depend on the output being correct, which means any unit tests you write using it are useless. If you really want to modify the output of current...() then you might consider preloading a library over Qt that does it for you. Bo Thorsen, Director, Viking Software

Re: [Development] date/time adjust for (auto) testing

2015-06-03 Thread Bo Thorsen
to. Or at least that's possible in theory. I've never actually done it on windows. I can perfectly understand you don't want to mess with windows kernel hooks. But doing dll injection on Qt itself might be okay for running your unit tests. On linux you can do this with LD_PRELOAD as well. Bo

Re: [Development] Future of Qt Quick 1 in Qt 5

2015-05-10 Thread Bo Thorsen
, right? This makes it pretty trivial to port painter based items to QtQ2. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt-project.org http

Re: [Development] [Interest] Call for Papers to Qt World Summit now open

2015-05-10 Thread Bo Thorsen
this blog post: http://blog.qt.io/blog/2015/04/30/experts-wanted-call-for-papers-qt-world-summit-2015/ The deadline for submission is missing, isn't it? Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu

Re: [Development] QQmlEngine and ObjectOwnership

2015-04-28 Thread Bo Thorsen
of QML objects - there be mighty dragons. Careful where you go with this. It is much easier to avoid this area completely by using Loader objects and registering global objects to the contexts. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http

Re: [Development] Marking BB10 unsupported

2015-03-24 Thread Bo Thorsen
customers use the on screen BB keyboard on QNX, and this might have an impact. But other than weird stuff like this, I don't think you have to worry. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu

Re: [Development] Deprecating modules with 5.5

2015-03-18 Thread Bo Thorsen
Den 18-03-2015 kl. 08:31 skrev Knoll Lars: On 18/03/15 07:44, Bo Thorsen b...@vikingsoft.eu wrote: Den 17-03-2015 kl. 23:45 skrev Thiago Macieira: On Tuesday 17 March 2015 17:14:38 Jan Kundrát wrote: On Tuesday, 3 February 2015 08:33:46 CET, Knoll Lars wrote: * Qt WebKit While I understand

Re: [Development] Deprecating modules with 5.5

2015-03-18 Thread Bo Thorsen
Den 17-03-2015 kl. 23:45 skrev Thiago Macieira: On Tuesday 17 March 2015 17:14:38 Jan Kundrát wrote: On Tuesday, 3 February 2015 08:33:46 CET, Knoll Lars wrote: * Qt WebKit While I understand the reasons on why you want to remove this one, I think that this goes against the promise of

Re: [Development] Proposal: Deprecating platforms in Qt 5.6 that don't support lambda

2015-02-20 Thread Bo Thorsen
Den 20-02-2015 kl. 12:32 skrev Olivier Goffart: On Friday 20 February 2015 11:15:32 BogDan wrote: I fully agree with you, but, sadly, I think it will not be possible in 5.x. We started supporting C++98 during the course of Qt 4.x. We dropped MSVC 6, in Qt 4.5 (despite there was still people

Re: [Development] Proposal: Deprecating platforms in Qt 5.6 that don't support lambda

2015-02-20 Thread Bo Thorsen
about how this would change the API is a lot more interesting. I so far haven't seen a single case where someone has described how access to lambdas might improve the API. If they are there, I'd love to see them, because maybe this would teach me something I haven't figured out yet. Bo Thorsen

[Development] JSON 64 bit int

2015-02-11 Thread Bo Thorsen
, it gives me a double. I would like to have some more conversion available. uint, qint64 and quint64 would be great. It sucks that I have to find the place in the original string and parse it myself. Would patches for this be accepted or is there a reason those aren't added yet? Bo Thorsen

Re: [Development] Why can't QString use UTF-8 internally?

2015-02-11 Thread Bo Thorsen
isn't optimized for some cases. But I'll take a less optimized class any day over something that brings heaps of bugs. Then I have time to focus on optimizing the serious things instead of fixing bugs. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http

Re: [Development] Upgrading the sources to C++11 keywords (Q_NULLPTR, etc.)

2015-02-11 Thread Bo Thorsen
of the discussion nicely. +1. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo

Re: [Development] JSON 64 bit int

2015-02-11 Thread Bo Thorsen
Den 11-02-2015 kl. 11:58 skrev Giuseppe D'Angelo: On 11 February 2015 at 11:40, Bo Thorsen b...@vikingsoft.eu wrote: {i:1e33} gives a 0 if I convert the number to int (which is fair enough). If I convert to variant, it gives me a double. Because it _is_ a double, given that JSON is a subset

Re: [Development] JSON 64 bit int

2015-02-11 Thread Bo Thorsen
Den 11-02-2015 kl. 13:27 skrev Giuseppe D'Angelo: On 11 February 2015 at 12:12, Bo Thorsen b...@vikingsoft.eu wrote: It's so easy to say we just follow the standard. But I have two current projects where my customers say they send me a 64 bit database ID in a JSON value. Converting those

Re: [Development] Upgrading the sources to C++11 keywords (Q_NULLPTR, etc.)

2015-02-09 Thread Bo Thorsen
___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development Bo Thorsen, Director, Viking

[Development] qmake bug 17533

2015-02-09 Thread Bo Thorsen
. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development

Re: [Development] qmake bug 17533

2015-02-09 Thread Bo Thorsen
On 02/09/2015 02:07 PM, Oswald Buddenhagen wrote: On Mon, Feb 09, 2015 at 01:34:55PM +0100, Bo Thorsen wrote: I have been working on trying to fix https://bugreports.qt.io/browse/QTBUG-17533. The fix itself is really simple: [...] riight ... Well, it is. But it showed other problems

Re: [Development] Impossible to do review after a logon

2015-02-08 Thread Bo Thorsen
, to see any comments, and so on. What happens with codereview ? BR. Denis ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development Bo Thorsen, Director, Viking Software

Re: [Development] Deprecating modules with 5.5

2015-02-08 Thread Bo Thorsen
of TQtC. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development

Re: [Development] Upgrading the sources to C++11 keywords (Q_NULLPTR, etc.)

2015-02-08 Thread Bo Thorsen
about 0 for pointers. And that's impossible if at least the Qt headers are not clean for it. Whether we should use Q_NULLPTR in the cpp files is more of our own choice. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu

Re: [Development] Deprecating modules with 5.5

2015-02-04 Thread Bo Thorsen
Den 04-02-2015 kl. 15:56 skrev Olivier Goffart: On Wednesday 04 February 2015 09:23:12 Knoll Lars wrote: On 04/02/15 10:20, Olivier Goffart oliv...@woboq.com wrote: Also, is it not time to decide which platform are we going to stop supporting in Qt 5.6? For example, if we were to decide to

Re: [Development] 5.3 still open?

2015-02-03 Thread Bo Thorsen
Den 03-02-2015 kl. 13:18 skrev Tomasz Olszak: 2015-02-03 10:55 GMT+01:00 Bo Thorsen b...@vikingsoft.eu: Den 03-02-2015 kl. 08:35 skrev Knoll Lars: It’s not strictly closed, but I don’t think we’ll create a release from 5.3 anymore. Ok, that answers the question I posted, but not the next one

Re: [Development] 5.3 still open?

2015-02-03 Thread Bo Thorsen
then, so i think we can say it's dead. On Tue, Feb 03, 2015 at 01:20:13PM +0100, Bo Thorsen wrote: I already submitted the 5.3 patch to gerrit. I'm not sure how to handle a switch in the branch I'm sending it against. gerrit lacks a frontend feature to change the target branch of existing

Re: [Development] 5.3 still open?

2015-02-03 Thread Bo Thorsen
, Bo Thorsen b...@vikingsoft.eu wrote: Hi guys, I fixed a bug for 5.3, but Marc asked if it was still open. I don't know that it isn't? Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu

[Development] 5.3 still open?

2015-02-02 Thread Bo Thorsen
Hi guys, I fixed a bug for 5.3, but Marc asked if it was still open. I don't know that it isn't? Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list

Re: [Development] Requesting a break in behavior in QML Text element

2015-01-30 Thread Bo Thorsen
Den 30-01-2015 kl. 08:51 skrev Mathias Hasselmann: Am 30.01.2015 um 08:12 schrieb Bo Thorsen: Den 29-01-2015 kl. 23:24 skrev Robin Burchell: Hi, Rationale: Text.AutoFormat is a terrible misfeature in almost every case out there. [...] I agree that it would be better to set plain text

Re: [Development] Requesting a break in behavior in QML Text element

2015-01-29 Thread Bo Thorsen
Den 29-01-2015 kl. 23:24 skrev Robin Burchell: Hi, Rationale: Text.AutoFormat is a terrible misfeature in almost every case out there. [...] I agree that it would be better to set plain text as the default. In most cases it's what there is in the Text elements anyway. This is at least the

Re: [Development] C++ QML Interface thoughts

2015-01-07 Thread Bo Thorsen
to the real non-QObject object. Use aggregation instead of inheritance. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt-project.org http

Re: [Development] Compiler warnings

2014-10-17 Thread Bo Thorsen
Den 17-10-2014 12:22, Julien Blanc skrev: On 17/10/2014 10:15, Christian Kandeler wrote: On 10/17/2014 08:48 AM, Kurt Pattyn wrote: As we are developing for aerospace, avionics, defence and healthcare, we are confronted on a daily basis with a lot of very stringent rules that we have to

Re: [Development] Compiler warnings

2014-10-15 Thread Bo Thorsen
Kurt Pattyn: On 15 Oct 2014, at 09:48, Poenitz Andre andre.poen...@theqtcompany.com wrote: Kurt Pattyn pattyn.k...@gmail.com wrote: On 14 Oct 2014, at 10:21, Bo Thorsen b...@vikingsoft.eu wrote: Den 14-10-2014 08:59, Kurt Pattyn skrev: how do these applications comply with MISRA? MISRA

Re: [Development] Compiler warnings

2014-10-14 Thread Bo Thorsen
Den 14-10-2014 08:59, Kurt Pattyn skrev: how do these applications comply with MISRA? MISRA is impossible to comply with for a framework. For example, consider the required rule 0-1-11: There shall be no unused parameters (named or unnamed) in non-virtual functions. With this, void f(int

Re: [Development] Qt List Items in 5.3

2014-10-13 Thread Bo Thorsen
Den 13-10-2014 00:44, Lee Powell skrev: I know all you folks are busy as this is probably not a high community request, but if you would consider adding dashes and stars to list items at the very least that would be awesome. We'd be happy to implement first and raise a merge request with the

Re: [Development] QSettings refactor updates

2014-10-10 Thread Bo Thorsen
filename, optional QConfig) Thiago asked you not to use references. A design where you have an internally shared object that is the top config could work around this. But, as I said above, I'm not sure what your plans are for your QConfig class, and what the responsibilities of it are. Bo

Re: [Development] export gobal enums to QML

2014-09-02 Thread Bo Thorsen
this on devel or interest in the last couple of months. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt-project.org http://lists.qt-project.org

Re: [Development] QStorageInfo

2014-08-29 Thread Bo Thorsen
system, with any API. Is it possible to know that a folder is a Dropbox Synced folder? I don't think it is. Dropbox is completely local. They have an application that checks for local or remote changes and copies to the other side when that happens. Bo Thorsen, Director, Viking Software

Re: [Development] QStorageInfo

2014-08-29 Thread Bo Thorsen
with the absence of the optical flag set means that it's not an optical disk. Flags are bools, they don't mean yes, no or unknown. The flag shows the presence of something or the absence of something. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http

Re: [Development] QStorageInfo

2014-08-27 Thread Bo Thorsen
if you want a quad state that might grow to quintet, sextet and so on as new types emerge. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt

Re: [Development] QStorageInfo

2014-08-26 Thread Bo Thorsen
Den 25-08-2014 17:16, André Somers skrev: Thiago Macieira schreef op 25-8-2014 17:09: On Monday 25 August 2014 13:46:12 André Somers wrote: ?? schreef op 25-8-2014 13:24: Can you provide an usecase why you need this feature? Sure. In our product, we support having the user choose

Re: [Development] QOptional

2014-08-21 Thread Bo Thorsen
? *Please* don't add more stl copied classes just because the stl committee is slow. Please stay with the current implementation. Bo Thorsen, Director, Viking Software. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu

Re: [Development] QtWayland stable branch

2014-08-11 Thread Bo Thorsen
Den 12-08-2014 01:27, Thiago Macieira skrev: On Monday 11 August 2014 23:35:28 Robert Griebl wrote: Hi all, Someone deleted the 'stable' branch in the QtWayland repo (on Gitorious) today. Since this breaks the Yocto meta-qt5 recipe I'm wondering if (a) a stable branch will come back, or (b)

Re: [Development] Accept the contributor agreement

2014-06-18 Thread Bo Thorsen
Den 18-06-2014 09:05, Haataja Ismo skrev: Hi, Actually you are right, this seems to be a bug in the new gerrit version so please file a bug report here I just did: https://bugreports.qt-project.org/browse/QTQAINFRA-864 This was fixed yesterday so hopefully accepting contributor

[Development] Accept the contributor agreement

2014-06-17 Thread Bo Thorsen
. Any clues? Bo Thorsen. -- Viking Software Qt and C++ developers for hire http://www.vikingsoft.eu ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development

Re: [Development] Accept the contributor agreement

2014-06-17 Thread Bo Thorsen
Hi Sergio, Den 17-06-2014 14:23, Sergio Ahumada skrev: On 17.06.2014 13:28, Bo Thorsen wrote: Hi guys, I have left ICS and set up my own company again. One of the things I'll spend time on is to fix bugs and work on the widget parts. I just wrote the first bug fix and was going to try