[Interest] Using Q_NAMESPACE enum as a Q_PROPERTY type

2020-05-02 Thread Doogster
I'm having trouble using an enum with Q_NAMESPACE, as a Q_PROPERTY type. I'm trying to follow this: https://www.kdab.com/new-qt-5-8-meta-object-support-namespaces/ I have the following enum: - namespace ConnectionState { Q_NAMESPACE enum class State : quint8 {Disconnected, Connecting,

[Interest] How do I mock QHostInfo::lookupHost?

2020-05-02 Thread Doogster
How do I mock QHostInfo::lookupHost() for unit testing? When I looked for a solution, all I found was someone who just gave up and said: "Unfortunately QHostInfo::lookupHost is a static method, so we can’t mock it." https://github.com/mumble-voip/mumble/pull/3170

Re: [Interest] How do I mock QHostInfo::lookupHost?

2020-05-02 Thread Thiago Macieira
On Saturday, 2 May 2020 12:14:47 PDT Doogster wrote: > How do I mock QHostInfo::lookupHost() for unit testing? > > When I looked for a solution, all I found was someone who just gave up and > said: > > "Unfortunately QHostInfo::lookupHost is a static method, so we can’t > mock it." For Qt's

[Interest] QtWebengine is not built with v8 snapshot error

2020-05-02 Thread Ramakanth Kesireddy
,Hi, As am trying to cross-compile Qt 5.12.8 sources on Ubuntu 16.04(64 bit), it throws below error: V8 snapshot cannot be built. Most likely, the 32-bit host compiler does not work. Please make sure you have 32-bit devel environment installed, or configure webengine with