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
o 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

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] Simple device discovery using UDP

2018-10-02 Thread Reinhardt Behm via Interest
ike this? I recently did this, using 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::

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] 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] 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 nor

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

2018-04-25 Thread Reinhardt Behm
ld of defense > contractor/military It is not only 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] QPainter overlapping lines display problem.

2017-10-18 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, l

Re: [Interest] represent QHostAddress as locale dependent string

2017-09-21 Thread Reinhardt Behm
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 they really are. -- Best Regards Reinhard

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" : > > Hi all, > > > > I am using QWebSocket and QWebSocketServer (Qt5.5) > > Is it possible to have another Server (as HTTP server) listening at the > >

Re: [Interest] QWebSocket/Server

2017-09-19 Thread Reinhardt Behm
On Tuesday 19 September 2017 08:44:13 Rainer Wiesenfarth wrote: > On Tue, Sep 19, 2017 at 4:27 AM, Reinhardt Behm wrote: > > I am using QWebSocket and QWebSocketServer (Qt5.5) > > Is it possible to have another Server (as HTTP server) listening at the > > same > > po

[Interest] QWebSocket/Server

2017-09-18 Thread Reinhardt Behm
progress? -- Best Regards Reinhardt Behm ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

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

2017-04-19 Thread Reinhardt Behm
Doesn'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] Current QDataStream format documentation?

2016-09-23 Thread Reinhardt Behm
On Friday 23 September 2016 11:51:40 Mike Chinander wrote: > On Fri, Sep 23, 2016 at 11:47 AM, Reinhardt Behm wrote: > > Or the have two devices are both based on Qt, but different versions. > > Isn't this precisely the situation that QDataStream::setVersion() is for? Yes

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 de 2016 17:05:26 PDT Jason

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 complain

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 Sandré-Chardonnal wrote: > > > > Hi,

Re: [Interest] QHttp post with headers

2016-08-22 Thread Reinhardt Behm
-- Best Regards Reinhardt Behm, Dipl.-Phys R&D 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

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 > w

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 boundingRect() > > to return

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 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 > >> do >

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 use/see/

Re: [Interest] CLion to replace QtCreator?

2016-04-05 Thread Reinhardt Behm
On Monday 04 April 2016 16:50:12 Emre Besirik wrote: > > On 04 Apr 2016, at 15:41, Konstantin Tokarev wrote: > >> Well there must be something can be done, Qt Can use Intellij like google > >> did, I know its a little bit more work compared to CLion fork but it is > >> possible.> > > A liitle bit

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 limited, and navigat

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

Re: [Interest] QDataStream & pointers

2015-09-13 Thread Reinhardt Behm
hen retrieving a pointer with the same program running as a new instance the value (address) of a pointer has no meaning, since that address will not be pointing to valid memory. -- Best Regards Reinhardt Behm ___ Interest mailing list Interest@

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

2015-08-20 Thread Reinhardt Behm
nintentional 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 QComboBo

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

2015-08-18 Thread Reinhardt Behm
yours. If this would be the case it would also not what you wanted because 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] Setting timezone for QDateTime::currentDateTime()

2015-08-08 Thread Reinhardt Behm
pen("/tmp/rtcset", "w");// create to signal it is set if (f) { fclose(f); } } -- 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
c > functionality is not working. > > 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

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

2015-07-28 Thread Reinhardt Behm
lank No last update > DGPS reference station id blank No station id > Checksum*75 Used by program to check for transmission errors > The usual method is that these fields are empty (just ",,"). Even standard GPS receivers send empty fields before they have a valid fix. -- Best Regards 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
> "engineer" was a contractor. Did you 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
e 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 e

Re: [Interest] Indie Mobil Program terminated?

2015-07-18 Thread Reinhardt Behm
is used in many embedded an control systems where 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 _

Re: [Interest] Qt 5.5 and Red Hat 5

2015-03-23 Thread Reinhardt Behm
aced after 10 years. Last week I was even asked for support by a customer (military) because an application (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 conve

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, 1

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

Re: [Interest] double-buffering, quality drop

2015-02-05 Thread Reinhardt Behm
on the view). You might also have a look at http://www.qcustomplot.com. They are doing something similar as you. -- Reinhardt Behm ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

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 : > >> >> >> >>> ... >>> 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 in

Re: [Interest] How to enable MTDEV for multi-touch

2015-02-04 Thread Reinhardt Behm
On Wednesday 04 February 2015 18:14:26 nus1998 wrote: > Thanks for both of your reply. I have compiled Qt 5.3.2 for linuxfb with > mtdev enabled. however, in my application, the touch event is not reported, > instead, the mouse event is received when I press a capacitive touch. the > plugin I used

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] 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] Understanding Qt Macros

2015-01-04 Thread Reinhardt Behm
On 03.01.2015 21:40, Alejandro Exojo wrote: > El Saturday 03 January 2015, Reinhardt Behm escribió: >> I have used them to put together a commonly used header (see attached >> project.h), that I also use as a precompiled header. >> This way all the required headers are a

Re: [Interest] Understanding Qt Macros

2015-01-03 Thread Reinhardt Behm
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...@hushmai

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

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 > > even

Re: [Interest] Crash in QSerialPort when closing?

2014-10-29 Thread Reinhardt Behm
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. -- Best Regards Reinhardt Behm mailto: rb...@hushmail.com Skype: reinhardt.behm On Thursday 30 October 2014 11:03:22 Tony Rietwyk wrote: >

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 >

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

2014-10-16 Thread Reinhardt Behm
ave a parent or widgets are placed into layouts and get a parent this way. Just because Bjarne Stroustrup has said it, does not mean it make sense in this context and has to be blindly followed even if it make code more complex. He also said to write _clear_code_. And this takes precede

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, the

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

2014-06-09 Thread Reinhardt Behm
ou BTW: I had a similar problem with the Open Street Map tile server (tile.openstreetmap.org). It only worked if I set a different user agent. My simple solution was to use the application name as the user agent: QNetworkRequest req(tileName.arg(conf.osmServer).arg(zoom).arg(ix).arg(iy)); req.setRawHead

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

2012-09-17 Thread Reinhardt Behm
Cheers, > Oliver > ___ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest And since each packets might take a different route and thus will not arrive in the order they have been sent,