Re: [Interest] TCP ACK with QDataStream -- OR: disconnect race condition detection

2012-09-18 Thread Reinhardt Behm
and thus will not arrive in the order they have been sent, the missing byte does not even have to be the byte # 4097. -- Regards, Reinhardt Behm ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Can't download file with QNetworkAccessManager: connection closed

2014-06-09 Thread Reinhardt Behm
as the user agent: QNetworkRequest req(tileName.arg(conf.osmServer).arg(zoom).arg(ix).arg(iy)); req.setRawHeader(user-agent, (qApp-applicationName() + + qApp-applicationVersion()).toLatin1()); qnr = networkManager-get(req); -- Best Regards Reinhardt Behm

Re: [Interest] Threading Question

2014-10-09 Thread Reinhardt Behm
On Thursday 09 October 2014 03:32:20 Jason Kretzer wrote: Thanks for the response. Yeah, I have placed qDebug() just before and just after the emit. The one before always prints, the one after never does except in the following case. If I change the connection to QueuedConnection, then

Re: [Interest] Qt::MakePointer for creating QPointer as std::make_shared for creating std::shared_ptr

2014-10-17 Thread Reinhardt Behm
to be blindly followed even if it make code more complex. He also said to write _clear_code_. And this takes precedence, at least for me. -- Best Regards Reinhardt Behm ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman

Re: [Interest] Qt::MakePointer for creating QPointer as std::make_shared for creating std::shared_ptr

2014-10-17 Thread Reinhardt Behm
On Friday 17 October 2014 09:00:08 Bo Thorsen wrote: Den 17-10-2014 08:42, Reinhardt Behm skrev: On Thursday 16 October 2014 01:56:46 Mikhail Matrosov wrote: Hello! In modern C++ there is almost no need to use raw *new* and *delete*. As Bjarne Stroustrup is saying in his “A Tour of C

Re: [Interest] Crash in QSerialPort when closing?

2014-10-30 Thread Reinhardt Behm
lead to the crash. But this is only handwaving :-) -- Best Regards Reinhardt Behm On Thursday 30 October 2014 13:33:43 Murphy, Sean wrote: This is the more complicated way. Just use deleterLater(). It has the same effect. After the next round the eventloop the object will be deleted

Re: [Interest] Regarding Internet Radio using QtQuick 2.x

2014-11-10 Thread Reinhardt Behm
On Monday 10 November 2014 06:13:50 Jha Sonakumar wrote: Hi All, Could you please guide me to create Internet radio App using QtQuick 2.x. As my system has not Radio Tuner h/w,that's why i need to develop the Internet Radio app. OK, what are you willing to pay? Or do you expect the

Re: [Interest] Understanding Qt Macros

2015-01-03 Thread Reinhardt Behm
if it has worked for me since Qt4. The attached version is for Qt5 and Linux. You would need to selectively include the first Linux specific headers. -- Reinhardt Behm // ** // * Copyright 2009-2014: (C) by Reinhardt Behm rb...@hushmail.com

Re: [Interest] Q_OS_ANDROID macro

2015-02-04 Thread Reinhardt Behm
On Wednesday 04 February 2015 10:05:12 Nuno Santos wrote: Hi, I have been faced with an awkward situation when building an app for android: My app uses Bonjour but that is not available on Android, so basically for android I don’t want to include some slots in a particular class:

Re: [Interest] QSqlDatabase

2015-02-04 Thread Reinhardt Behm
On 04.02.2015 22:18, alexander golks wrote: Am Wed, 4 Feb 2015 15:01:50 +0100 schrieb Till Oliver Knoll till.oliver.kn...@gmail.com: ... QSqlDatabase db = QSqlDatabase::addDatabase(QSQLITE); ... bool ok = db.open(); When I run this ok is always true, no matter what arguments

Re: [Interest] Q_OS_ANDROID macro

2015-02-04 Thread Reinhardt Behm
-- Best Regards Reinhardt Behm mailto: rb...@hushmail.com Skype: reinhardt.behm A different header file is possible but a bit messy solution. You can use the macro in the .cpp to create one real slot function and one for android which is just an empty dummy. Moc does not care what you do

Re: [Interest] double-buffering, quality drop

2015-02-05 Thread Reinhardt Behm
::ItemCoordinateCache). I think you should create a separate painter for painting on your internal pixmap and use the supplied painter to paint() to the draw the pixmap (on the view). You might also have a look at http://www.qcustomplot.com. They are doing something similar as you. -- Reinhardt Behm

Re: [Interest] Regarding displaying data from database in a single column only

2015-02-16 Thread Reinhardt Behm
On Monday 16 February 2015 10:51:16 André Somers wrote: Jha Sonakumar schreef op 16-2-2015 om 09:49: Hi all, Generally we use to display data from database by *QTableView * rows. But i need to display all items of a row in a cell of a column,so in this way there will be only one

Re: [Interest] Shadow build / Xcode project

2015-01-04 Thread Reinhardt Behm
On 04.01.2015 20:24, Nuno Santos wrote: Hi, I have performed on the command line “qmake myproject.pro” to generate the Xcode project file. It happens that all the files generated on this process as well as the moc_* generated files polute my source directory. To avoid this I have tried to

Re: [Interest] Qt Performance : QT Widget Application vs WPF

2015-03-10 Thread Reinhardt Behm
When you buy a car, don't you check if it can go to Alpha Centauri? :-) -- Reinhardt On Tuesday 10 March 2015 08:20:01 Guido Seifert wrote: Good to know. Should I ever have the use case where I have to create 1000 identical looking controls in a loop I will use WPF. Guido On Tue, 10 Mar

Re: [Interest] Qt 5.5 and Red Hat 5

2015-03-23 Thread Reinhardt Behm
(16bit DOS/WIN) written 17 years ago because it does not run on current Windows. So I will have to convert something written using ZINC (anybody knew/remember?) and convert it to current Qt for the next 15 years to run. -- Best Regards Reinhardt Behm

Re: [Interest] How to get destructor called in object that was moved to a thread?

2015-08-18 Thread Reinhardt Behm
the QThreat object does not live in the thread. It only manages it. -- Best Regards Reinhardt Behm ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] How to prevent scroll changing QComboBox index when mouse hovers?

2015-08-20 Thread Reinhardt Behm
changes in my app. Is there an easy way to prevent this unexpecetd behavior? Or does it require replacing al QComboBox items with a derived version that filters events? -Ed Install an eventFilter on the QComboBox? -- Best Regards Reinhardt Behm

Re: [Interest] [ Android ] Can Qt Positioning API access and output NEMA GPS Strings?

2015-07-28 Thread Reinhardt Behm
. -- Best Regards Reinhardt Behm ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Debugging not emitted signals

2015-07-31 Thread Reinhardt Behm
. Can someone provide me some debugging tips for this case? Thanks in advance, Have you checked the return value of your connect() statement? -- Best Regards Reinhardt Behm ___ Interest mailing list Interest@qt-project.org http://lists.qt

Re: [Interest] Setting timezone for QDateTime::currentDateTime()

2015-08-08 Thread Reinhardt Behm
Reinhardt Behm ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Need argumentative help..... giving qobject copy/assignment constructor and put it in qlist/qmap

2015-07-21 Thread Reinhardt Behm
pay or charge him for that service? :-) -- Best Regards Reinhardt Behm ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Indie Mobil Program terminated?

2015-07-18 Thread Reinhardt Behm
there is now use fro any app store. The software world consists of more than mobile and app worlds. My programs i.e. work in certified avionics systems, flying in helicopters. -- Best Regards Reinhardt Behm ___ Interest mailing list Interest@qt-project.org

Re: [Interest] Indie Mobil Program terminated?

2015-07-18 Thread Reinhardt Behm
are busy people looking for information not for useless nonsense! -- Best Regards Reinhardt Behm On Saturday 18 July 2015 20:05:23 John C. Turnbull wrote: The new licensing structure (and not to mention the abominable website) are clearly NOT working and will only hurt Qt, perhaps even kill

Re: [Interest] Qt 5.5.0 WebEngine module with MSVC2010

2015-10-23 Thread Reinhardt Behm
On Friday 23 October 2015 12:24:24 Volker Enderlein wrote: > Hi, > > can the WebEngine module of Qt 5.5.0 be build with MSVC 2010? I've > already searched Google and did not find an explicitely answer (my > google skills seem to be not that good). > > I recognized the message "C++11 support is

Re: [Interest] QGaphicsItem deletion

2016-06-16 Thread Reinhardt Behm
On Thursday 16 June 2016 17:44:30 Konstantin Shegunov wrote: > Hello, > > On Wed, Jun 15, 2016 at 7:00 PM, Igor Mironchik > > wrote: > > Exactly. I need to Line be as parent of handles but they should be > > parented to the scene (read form in my app) because I need

Re: [Interest] CLion to replace QtCreator?

2016-04-05 Thread Reinhardt Behm
On Tuesday 05 April 2016 16:03:35 NoMercy wrote: > I think after countless agruments in this thread I will try to do that at > best I can or find some interested people and help them maybe :( > But the thing is that I'm sorry that after some point when 90% of Qt > users/developers start to

Re: [Interest] CLion to replace QtCreator?

2016-04-05 Thread Reinhardt Behm
On Tuesday 05 April 2016 18:44:17 Emre Besirik wrote: > > On 05 Apr 2016, at 18:29, Reinhardt Behm <rb...@hushmail.com> wrote: > > > > On Tuesday 05 April 2016 16:03:35 NoMercy wrote: > >> And people keep saying that it is open source, you do it, why don't you &

Re: [Interest] Press and hold keyboard key to bring up menu in QML

2016-04-01 Thread Reinhardt Behm
On Friday 01 April 2016 14:33:29 Elvis Stansvik wrote: > 2016-04-01 12:45 GMT+02:00 Elvis Stansvik : > > Hi folks, > > > > I have a full screen, page based Qt Quick 2 application. Input is > > contstrained by the hardware to the Left/Right/Return keyboard keys, > > so is quite

Re: [Interest] QHttp post with headers

2016-07-13 Thread Reinhardt Behm
On Friday 20 May 2016 15:27:27 Eric Laffoon wrote: > Hi all, > > It's a little emberassing but I'm still using some Qt3 software. Kommander > is partially ported to Qt4 and I've been running my business with it since > 2007. I'm rebuilding my biz and hope to have more time in the future. I was >

Re: [Interest] QHttp post with headers

2016-08-22 Thread Reinhardt Behm
-- Best Regards Reinhardt Behm, Dipl.-Phys R Director mailto:rb...@becker.com.tw skype: reinhardt.behm Tel: +886 (0)3 471 0992 -16 Fax: +886 (0)3 471 6437 http://www.becker.com.tw Becker Electronics Taiwan Ltd. No.32, Lane 30,Long Yuan Rd., Long-Tan, Taoyuan 32544, Taiwan On Friday 20 May

Re: [Interest] FortuneServer/client doesnt work across 2 different Devices

2016-09-02 Thread Reinhardt Behm
On Friday 02 September 2016 19:10:41 Nilesh Kokane wrote: > Hello, > > I'm trying to run fortuneServer(qt example) on my host PC and deploy > fortuneclient on the android phone. I made sure that they are in the > same network ( server : 192.168.0.3, client : 192.168.0.2) but then > client

Re: [Interest] Current QDataStream format documentation?

2016-09-23 Thread Reinhardt Behm
On Friday 23 September 2016 17:41:30 Jason H wrote: > > Sent: Friday, September 23, 2016 at 11:14 AM > > From: "Thiago Macieira" > > To: interest@qt-project.org > > Subject: Re: [Interest] Current QDataStream format documentation? > > > > On sexta-feira, 23 de setembro

Re: [Interest] Emitting a signal from a different thread than the object lives in

2016-08-26 Thread Reinhardt Behm
On Friday 26 August 2016 10:38:57 Etienne Sandré-Chardonnal wrote: > Thanks, does that mean that the moc-generated signal member function is > made fully thread safe? > > 2016-08-26 10:36 GMT+02:00 Igor Mironchik : > > Hi, > > > > On 26.08.2016 11:33, Etienne

Re: [Interest] Is freshly created QNetworkReply guaranteed to be in non-finished state and emit finished signal?

2017-04-19 Thread Reinhardt Behm
n't QAN use it's own thread? Then it could already be finished before the connection is made. -- Best Regards Reinhardt Behm ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] QWebSocket/Server

2017-09-19 Thread Reinhardt Behm
On Tuesday 19 September 2017 08:44:13 Rainer Wiesenfarth <rainer_wiesenfa...@trimble.com> wrote: > On Tue, Sep 19, 2017 at 4:27 AM, Reinhardt Behm <rb...@hushmail.com> wrote: > > I am using QWebSocket and QWebSocketServer (Qt5.5) > > Is it possible to have ano

Re: [Interest] QWebSocket/Server

2017-09-19 Thread Reinhardt Behm
On Tuesday 19 September 2017 12:30:19 Konstantin Tokarev wrote: > 19.09.2017, 05:28, "Reinhardt Behm" <rb...@hushmail.com>: > > Hi all, > > > > I am using QWebSocket and QWebSocketServer (Qt5.5) > > Is it possible to have another Server (as

Re: [Interest] represent QHostAddress as locale dependent string

2017-09-21 Thread Reinhardt Behm
r eg arabic. > May be a bit off-topic, but note that those "european numbers" are in fact > arabic :) > > Good point, but if I talk about arabic numbers compared to arabic numbers, > noone would understand my problem :) Then call them Indian numbers. Because that's what th

Re: [Interest] QPainter overlapping lines display problem.

2017-10-19 Thread Reinhardt Behm
On Monday 16 October 2017 12:17:28 Loic Le Goff wrote: > Hello developpers ! > > I'am trying to draw multiple lines with a width of 1px (my pen is fully > opaque), some of them are sitting on top of each other on some segments. > The default display at scale 1 is fine/uniform. > When I zoom out,

Re: [Interest] Persistence of editor for openPersistentEditor

2018-06-05 Thread Reinhardt Behm
editorA = view->findChild() > > view->closePersistentEditor(indexA) > > Here I typically qApp->sync and qApp->processEvents (or so.) > Which provide the "later" context. Doesn't this defeat the purpose of deleteLater()? It is normally

Re: [Interest] Interest Digest, Vol 79, Issue 19

2018-04-25 Thread Reinhardt Behm
y that big iron. There many small controllers to which e.g. my Qt-applications are talking. Here I have both endian types. -- Best Regards Reinhardt Behm ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Setting current item text color via stylesheet in QTableView for SelectRows

2018-08-07 Thread Reinhardt Behm via Interest
eight: bold; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6f7fa, stop: 1 #dadbde); } TableViewBase::item:selected { color: white; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #606

Re: [Interest] **SPAM**d Re: Setting current item text color via stylesheet in QTableView for SelectRows

2018-08-12 Thread Reinhardt Behm via Interest
Hi Patrick, it works for me with this style. The attached picture show two selected rows (0 and 2) and one current, unselected cell (1). -- Best Regards Reinhardt Behm On Sunday 12 August 2018 21:06:28 Patrick Stinson wrote: > Don’t forget to reply to all. > > Your example is in

Re: [Interest] get application's resources

2018-08-09 Thread Reinhardt Behm via Interest
QDir is your friend. QDir dir(":/", "*"); qDebug() << dir.dirName() << dir.entryList(); -- Best Regards Reinhardt Behm On Friday 10 August 2018 14:47:39 Frank Rueter | OHUfx wrote: > Hi, > > in my host application I can use the ex

Re: [Interest] Simple device discovery using UDP

2018-10-02 Thread Reinhardt Behm via Interest
ing Qt. Worked with a problem, but on a wired connection. BCastServer::BCastServer(QObject *parent) : QObject(parent) { m_listeningSocket = new QUdpSocket(this); m_listeningSocket->bind(45454, QUdpSocket::ShareAddress); connect(m_listeningSocket, ::readyRead, this, ::processPendingDa

Re: [Interest] Segmentation fault on exiting Qt event loop

2019-01-09 Thread Reinhardt Behm via Interest
https://en.wikipedia.org/wiki/List_of_software_bugs Interesting read about the space shuttle people: <https://www.fastcompany.com/28121/they-write-right-stuff> -- Best Regards Reinhardt Behm ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest

Re: [Interest] a question about QNetworkAccessManager

2019-03-21 Thread Reinhardt Behm via Interest
On Thursday 21 March 2019 10:29:09 Matej Košík wrote: > Hi, > > On 3/20/19 11:03 AM, Reinhardt Behm wrote: > > On Wednesday 20 March 2019 10:45:18 you wrote: > >> Hi, > >> > >> I am new to Qt. > >> Yesterday, I have learned about:

Re: [Interest] a question about QNetworkAccessManager

2019-03-20 Thread Reinhardt Behm via Interest
n't do this. Connect the finished signal from the generated QNetworkReply to the corresponding slot. In this slot you should also delete the QNR (with deleteLater() ) because otherwise it will exist forever and eat up memory. -- Best Regards Reinhardt Behm ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest