Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-23 Thread Bo Thorsen
you just refuse to accept is that there are multiple ways to use QThread and each of them has their strengths and weaknesses. I've tried to help you understand some of the reasons you can have for choosing other ways, but you just can't accept any new information. Bo Thorsen. Come by my DevDays

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-22 Thread Bo Thorsen
the two statements. So no register or cache can be used to speed this up and the compiler won't optimize the check away. This does of course work. Otherwise, volatiles would be useless. Bo Thorsen. Come by my DevDays talk in Berlin - Designing for testability. Learn how to build and run your unit

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-22 Thread Bo Thorsen
+daniel.price=fxhome@qt-project.org] *On Behalf Of *Bo Thorsen *Sent:* 22 October 2012 06:40 *To:* interest@qt-project.org *Subject:* Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends Den 21-10-2012 23:46, d3fault skrev: On Oct 21, 2012 11:02 AM, Bo Thorsen b

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-22 Thread Bo Thorsen
Den 22-10-2012 15:51, Jan Kundrát skrev: On 10/22/12 14:16, Bo Thorsen wrote: Not correct. Neither the compiler nor the CPU can reorder around a volatile. Hi Bo, various sources which I've read about this topic (like [1], [2], [3], [4]) disagree. I might be wrong and would like

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-21 Thread Bo Thorsen
the documentation, you should make it better, not go from one one-sided way of thinking to another. Bo Thorsen. Come by my DevDays talk in Berlin - Designing for testability. Learn how to build and run your unit tests with the Qt application. Fionia Software - Qt experts for hire

Re: [Interest] Heavily Commented Example: Simple Single Frontend with Two Backends

2012-10-21 Thread Bo Thorsen
Den 22-10-2012 03:38, Syam Krishnan skrev: On 10/22/2012 03:16 AM, d3fault wrote: On Oct 21, 2012 11:02 AM, Bo Thorsen b...@fioniasoftware.dk mailto:b...@fioniasoftware.dk wrote: If you set out to correct the documentation, you should make it better, not go from one one-sided way

Re: [Interest] QTcpServer memory usage

2012-10-16 Thread Bo Thorsen
in a nice way can let you stay out of trouble :) Cheers, Bo Thorsen. Come by my DevDays talk in Berlin - Designing for testability - and learn how to build your unit tests into the Qt applications. Fionia Software - Qt experts for hire. ___ Interest

Re: [Interest] Future of Qt Opensource SDK?

2012-10-13 Thread Bo Thorsen
Den 12-10-2012 17:11, Thiago Macieira skrev: On sexta-feira, 12 de outubro de 2012 11.47.02, Bo Thorsen wrote: Hi Carel, Den 12-10-2012 10:27, Carel Combrink skrev: What is the future of Qt Opensource SDK? One of the Digia people said on this list a couple of weeks ago that there won't

Re: [Interest] Future of Qt Opensource SDK?

2012-10-12 Thread Bo Thorsen
Den 12-10-2012 12:49, Diego Iastrubni skrev: On Fri, Oct 12, 2012 at 11:47 AM, Bo Thorsen b...@fioniasoftware.dk mailto:b...@fioniasoftware.dk wrote: Hi Carel, Den 12-10-2012 10:27, Carel Combrink skrev: What is the future of Qt Opensource SDK? One of the Digia people said

Re: [Interest] Future of Qt Opensource SDK?

2012-10-12 Thread Bo Thorsen
Den 12-10-2012 16:04, Attila Csipa skrev: On 10/12/2012 03:56 PM, Wolfgang Baron wrote: Hi Bo Thorsen, 2012-10-12T11:47:02+0200 Bo Thorsen b...@fioniasoftware.dk: You have to download Qt creator and Qt separately. Where can I get all the additional stuff then, which enables me to compile

Re: [Interest] What is the correct way of removing UI elements with code ?

2012-10-10 Thread Bo Thorsen
://lists.qt-project.org/mailman/listinfo/interest -- Bo Thorsen. Fionia Software - Qt experts for hire. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Send signal from non-GUI thread

2012-10-05 Thread Bo Thorsen
* /*inClientData*/ ) { ... } Greetings from Germany, ... Kio ! -- Bo Thorsen. Fionia Software - Qt experts for hire. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Adding objects in QML and scrolling it

2012-10-05 Thread Bo Thorsen
that can move. Dynamic stuff like this is just not what it's designed for. Personally, I prefer doing the dynamic instantiations in C++, but that's probably just all my C++ experience talking :) I hope this helps, Bo Thorsen. Fionia Software - Qt experts for hire

Re: [Interest] listview in qml

2012-10-04 Thread Bo Thorsen
would make this very simple to implement I know designers hate that last bullet, but sometimes you just have to hit them with the big this is not worth the extra development effort hammer. I hope this helps. Bo. -- Bo Thorsen. Fionia Software - Qt experts for hire

Re: [Interest] how to run 21 threads concurrently

2012-10-04 Thread Bo Thorsen
does. That said, I'd be surprised if he actually did understand the problem completely, based on the question :P Bo Thorsen. Fionia Software - Qt experts for hire. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman

Re: [Interest] Distributing custom qt build to a group of developers

2012-09-21 Thread Bo Thorsen
and distribute with rsync. Yet another approach is for the build guy to create a zip file with a new /qtbuild. Then each developer can get the zip file, wipe the old /qtbuild and unpack the new one. I hope this helps. Bo Thorsen. Fionia Software - Qt experts for hire. Den 21-09-2012 01:03, Adam Light

Re: [Interest] Access to Qt private headers

2012-09-14 Thread Bo Thorsen
:) Bad things will happen you upgrade to later versions of Qt. I know it's tempting to use them, but you are going to have to find a different way to approach whatever it is you are doing. Bo Thorsen. Fionia Software - Qt experts for hire. ___ Interest

Re: [Interest] QLabel with images

2012-09-11 Thread Bo Thorsen
, but setWindowOpacity does not work on the QLabel containing the pixmap. You're on the right track, but you have to modify the image opacity directly. There's no way to modify how transparent a label is. The two QLabel approach is the right one. Bo Thorsen. Fionia Software - Qt experts for hire

Re: [Interest] How to ship Qt5 application on Windows?

2012-09-11 Thread Bo Thorsen
a windows.dll plugin, but I didn't follow it closely. Bo Thorsen. Fionia Software - Qt experts for hire. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] packaging a build

2012-09-07 Thread Bo Thorsen
Hi people, An alternative to this is to use cmake and cpack. It's *much* easier to do than trying to create your own package. It handles the dependencies automatically. It's quite normal for me to deliver Windows packages to my Qt customers, and I pretty much always end up doing a cmake

Re: [Interest] Best way to invoke a slot after some time with QObject::sender

2012-08-28 Thread Bo Thorsen
a connection object for each connect, that's up to you. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk ___ Interest mailing list Interest@qt-project.org http://lists.qt

Re: [Interest] 64-bit internal ID for QModelIndex?

2012-08-22 Thread Bo Thorsen
of memory, but it removes so many problems and potential crashes. If you have a tree model, maybe we can discuss this. But for all flat tables and lists, I'm not going to accept any kind of argument for using the internal pointer :) Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer

Re: [Interest] Proper way of updating a model?

2012-08-22 Thread Bo Thorsen
and scroll info. Easy, but bad. Again :) You have to do the beginDeleteRows(...) and beginInsertRows(...) stuff and emit dataChanged for existing rows that changed values. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http

Re: [Interest] memory fragmentation?

2012-08-21 Thread Bo Thorsen
to the original question again: Yes, it's possible there's a problem. But it's incredibly rare, and I doubt Microsofts solution will really solve the problem, if you have it. But you have just proven that their marketing with the problem/solution works :) Bo Thorsen, Fionia Software. -- Expert Qt and C

Re: [Interest] QString operator==

2012-08-21 Thread Bo Thorsen
, d-size); } Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Digia to acquire Qt from Nokia

2012-08-13 Thread Bo Thorsen
earn his paycheck without any effort. The value of what's left of Trolltech - what Digia has now - is far higher than 4 mio €. What I do read in this article, though, is that Digia made a couple of great deals combined :) Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire

Re: [Interest] Questions about QGraphicsWidget

2012-08-09 Thread Bo Thorsen
Den 08-08-2012 15:54, BRM skrev: From: Bo Thorsen b...@fioniasoftware.dk Subject: Re: [Interest] Questions about QGraphicsWidget Den 07-08-2012 18:59, Bill Crocker skrev: On 08/07/2012 12:36 PM, BRM wrote: I'm working on a QGraphicsWidget version of something I already have a QWidget

Re: [Interest] Well there goes Nokia

2012-08-02 Thread Bo Thorsen
. Sure, you just need a big pile of money to do that ;) Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk ___ Interest mailing list Interest@qt-project.org http

Re: [Interest] How to use unit testing with Qt framework properly

2012-08-02 Thread Bo Thorsen
of days on the FS blog. I hope you or others find this useful. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk ___ Interest mailing list Interest@qt-project.org

Re: [Interest] QChar can't handle 1:N case conversion?

2012-07-27 Thread Bo Thorsen
/listinfo/interest ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http

Re: [Interest] Qt5: Obtain current layout size

2012-07-24 Thread Bo Thorsen
Den 23-07-2012 15:41, Stephen Chu skrev: On 7/23/12 4:52 AM, Bo Thorsen wrote: Den 22-07-2012 21:49, Stephen Chu skrev: On 7/22/12 6:30 AM, Bo Thorsen wrote: Den 21-07-2012 18:27, Stephen Chu skrev: I am working on a dynamically generated form. One thing I'd like to do is to reflow

Re: [Interest] Qt5: Obtain current layout size

2012-07-23 Thread Bo Thorsen
Den 22-07-2012 21:49, Stephen Chu skrev: On 7/22/12 6:30 AM, Bo Thorsen wrote: Den 21-07-2012 18:27, Stephen Chu skrev: I am working on a dynamically generated form. One thing I'd like to do is to reflow the layout into multi-column when the widgets fill the preset window height. I need

Re: [Interest] Qt5: Obtain current layout size

2012-07-22 Thread Bo Thorsen
widget size before showing the widget/window? Thanks. You can't use size or geometry because they are properties of what is actually shown. For your case, you should use the minimum sizes instead. Those should be available to you. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer

Re: [Interest] QLIneEdit Bug still valid ?

2012-07-19 Thread Bo Thorsen
=158 The code is trivial. But getting the habit of using objects for this kind of problem is pretty important. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk

Re: [Interest] Where are the USER properties of Qt-provided QObjects documented?

2012-06-28 Thread Bo Thorsen
property for the class. What do you need this for? (I am looking at the documentation that came with the 4.8.0-rc1 source-code bundle.) Thanks for any pointers. Here's a pointer: Upgrade your Qt version. You are using a release candidate which is not for production quality code. Bo Thorsen

Re: [Interest] QTabWidget/QTabBar allowing user to edit tab names

2012-06-28 Thread Bo Thorsen
the right click event. You can do this by subclassing QTabBar or by an event filter. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk ___ Interest mailing list Interest

Re: [Interest] Where are the USER properties of Qt-provided QObjects documented?

2012-06-28 Thread Bo Thorsen
Den 28-06-2012 08:55, Andre Somers skrev: Op 28-6-2012 8:21, Andreas Pakulat schreef: Hi, Am Donnerstag, 28. Juni 2012 schrieb Bo Thorsen : Hi Frank, Den 28-06-2012 06:40, K. Frank skrev: Where in the documentation (not the source code) can I find out which

Re: [Interest] Semi-OT: What could / should Elop / Nokia have done differently?

2012-06-22 Thread Bo Thorsen
consider the environment before printing this email. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need

Re: [Interest] QtNetwork in iOS application

2012-06-20 Thread Bo Thorsen
? You should be able to do this by making a separate thread with the Qt code in it. Integrating between them has to be done by standard IOS thread communication to a single Qt thread and this can post events to the Qt area. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire

Re: [Interest] Text in QGLWidget looks awful

2012-06-14 Thread Bo Thorsen
. How do I fix this? How do I get nice-looking text in a QGLWidget? Looks like the GL widget isn't antialiased. Try setting the anti alias renderhint on the gl painter. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http

Re: [Interest] reloading qml components

2012-06-03 Thread Bo Thorsen
wouldn't do this in C++ (I hope) and you shouldn't do it in QML either. So place the loading object in a wrapper instead of letting other objects use it directly. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http

Re: [Interest] Simple code to remove backgruund noise from audio sample

2012-05-26 Thread Bo Thorsen
you'll have to take this question to a forum with audio coders. This really isn't a Qt question at all. Once you have the audio data, you're outside of our area. Sorry, Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http

Re: [Interest] qtScript hide a signal from script

2012-05-13 Thread Bo Thorsen
this. You can't hide signals and slots from the scripts. If it's really important for you not to expose those, you have to create a wrapper QObject that only has the signals and slots you want to expose. And yes, it's inconsistent that you can hide properties but not signals and slots. Bo

Re: [Interest] qml 'subclasses'

2012-05-10 Thread Bo Thorsen
} Content of SpecificMonster.qml: Monster { attack: 4 ... } Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk ___ Interest mailing list Interest@qt-project.org

Re: [Interest] QML QDeclarativeView

2012-05-04 Thread Bo Thorsen
this is to have the state in C++ objects and export those to the QML app. Short answer to a long question, I know :) If you need help with parts of this, just write another email. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http

Re: [Interest] QSortFilterProxyModel slow updating sql model attached

2012-04-30 Thread Bo Thorsen
://lists.qt-project.org/mailman/listinfo/interest Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk ___ Interest mailing list Interest@qt-project.org http://lists.qt

Re: [Interest] Contributor agreement rundown

2012-04-18 Thread Bo Thorsen
older Qt versions, this is a great thing as well (assuming those patches go to the OSS Qt). People paid on OSS projects should do the boring parts :) Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk

Re: [Interest] What about C++ in Qt 5?

2012-04-11 Thread Bo Thorsen
with Qt 5. But you also have the option to do QML applications. Your choice. But the point for you right now is that you don't have to rewrite an existing application. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http

Re: [Interest] Phonon video

2012-03-29 Thread Bo Thorsen
a fully updated SDK 2.4.1 with both visual studio 8 and mingw compilers and Qt versions 4.8.0 and 4.7.4. Bo Thorsen, Fionia Software. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk

Re: [Interest] Make a flat Model from a hierarchical Model with all children

2012-03-28 Thread Bo Thorsen
in it. But tree models have parents and usually multiple columns. The flat proxy can make a single item with the text of each item based on several columns. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk

Re: [Interest] Qt is good because...

2012-03-26 Thread Bo Thorsen
in the wiki page. Thank you! -- Quim ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt

Re: [Interest] Wrong time format from QLocale

2012-03-23 Thread Bo Thorsen
Den 22-03-2012 21:18, NoRulez skrev: Could someone please help? When you find a bug, you should enter it in the bug tracker. Writing something to this doesn't help. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http

Re: [Interest] The Proper Way to Mix/Cross-Fade Images

2012-03-20 Thread Bo Thorsen
for the retro Sid Meyers favourite fade where each pixel is replaced one at a time :P Bo. Den 20-03-2012 15:03, Josiah Bryan skrev: On Tue, Mar 20, 2012 at 9:55 AM, Bo Thorsen b...@fioniasoftware.dk mailto:b...@fioniasoftware.dk wrote: Den 20-03-2012 14:17, Josiah Bryan skrev: So

Re: [Interest] size policies, layouts, and size hints

2012-03-18 Thread Bo Thorsen
your own. I wouldn't implement a QLayout subclass for this, unless it's a layout system you need in several cases. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk

Re: [Interest] QTextEdit and Style sheets

2012-03-14 Thread Bo Thorsen
the palette attribute is inherited by children. Graham reported that Windows and Linux behaved differently with the same code, so there is a bug here. But what it is of course depends on which of them has the intended behaviour. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire

Re: [Interest] Using dmalloc with Qt!

2012-03-13 Thread Bo Thorsen
help you with here. I think this is the best you can do. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk ___ Interest mailing list Interest@qt-project.org http

Re: [Interest] does qt5/directfbegl gfxdriver work with the qt-4.8.0?

2012-03-05 Thread Bo Thorsen
- you will be a fool for 5 minutes, otherwise ignorant for rest of your life/ * ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer

Re: [Interest] more QSharedPointerQuestions

2012-03-02 Thread Bo Thorsen
objects. In the few cases where this is not the case, shared pointers can be a valid solution. A lot of quality time with valgrind will be a much better way to learn how to do quality code that doesn't have memory issues. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact

Re: [Interest] Providing custom lib with static Qt modules (so no Qt dependency)

2012-02-28 Thread Bo Thorsen
Den 28-02-2012 19:36, Bob Hood skrev: On 2/28/2012 10:53 AM, Bo Thorsen wrote: Den 28-02-2012 18:16, Atlant Schmidt skrev: All this may not apply to you if you're distributing Qt under the Commercial license. AFAIR, you're not allowed to redistribute the commercial licensed Qt. Um

Re: [Interest] #define in qml

2012-02-22 Thread Bo Thorsen
a project with only QML and JS files and don't want to start up C++ files as well. Maybe this was obvious, I just mention it for completion. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk

Re: [Interest] QFileSystemWatcher malfunctioning

2012-01-12 Thread Bo Thorsen
you do this. You might not get the modified signal before you change the file contents. If you're after a fool proof system, don't block the filewatcher and read it after your own changes, and check that the contents hadn't been changed before you do it. Or use a database. Bo Thorsen, Fionia

Re: [Interest] z-order for Qt's signals and slots

2011-11-22 Thread Bo Thorsen
, but the interface for controlling it would be annoying, and it's rarely necessary. So my POV is that you should just use a different way if you need ordered calls. Bo Thorsen, Fionia Software. -- Expert Qt and C++ developer for hire Contact me if you need expert Qt help http://www.fioniasoftware.dk

<    1   2   3