[Interest] Retrieving the object info due to exception std::bad_alloc

2018-02-27 Thread Ramakanth Kesireddy
Hi,

As mentioned in http://doc.qt.io/archives/qt-4.8/exceptionsafety.html, the
below code is being used to catch the exceptions in application:-

QApplication app(argc, argv);
...
try {
app.exec();
} catch (const std::bad_alloc &) {
//clean up code and log the exception info
// retrieve class name and method name of object
return 0; // exit the application
}

Please let me know if there any means to get the runtime object info like
class name, method name(if possible line number) throwing the exception
std::bad_alloc in catch block?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Retrieving the object info due to exception std::bad_alloc

2018-03-01 Thread Ramakanth Kesireddy
When system runs on low memory, the object allocations through new in the
Qt application does throw bad_alloc exception,right?

On Thursday, March 1, 2018, Thiago Macieira 
wrote:
> On Wednesday, 28 February 2018 15:23:22 PST Konstantin Tokarev wrote:
>> bad_alloc is mostly thrown due to too view memory for the request in
>> question.
>> > so when you continue your program, chances are good to see more
>> > bad_allocs.
>>
>> Or don't get any bad_alloc at all, being killed by OOM Killer promptly
>
> You get bad_alloc when you make silly requests, like negative sizes or
> petabytes.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Retrieving the object info due to exception std::bad_alloc

2018-03-01 Thread Ramakanth Kesireddy
Thanks all for your thoughts.
Assuming that it throws bad_alloc exception, I added global replacement of
new operator but it throws linker error of multiple definition of new
operator though it seems to invoke overloaded version of new operator with
filename and line no.Any pointers on how to avoid ld error?

On Thursday, March 1, 2018, Konstantin Tokarev  wrote:
>
>
> 01.03.2018, 20:35, "Ramakanth Kesireddy" :
>> When system runs on low memory, the object allocations through new in
the Qt application does throw bad_alloc exception,right?
>
> It may or may not throw exception, depending on OS kind, overcommit
settings,
> memory limits set for your application, and your luck.
>
>>
>> On Thursday, March 1, 2018, Thiago Macieira 
wrote:
>>> On Wednesday, 28 February 2018 15:23:22 PST Konstantin Tokarev wrote:
>>>> bad_alloc is mostly thrown due to too view memory for the request in
>>>> question.
>>>> > so when you continue your program, chances are good to see more
>>>> > bad_allocs.
>>>>
>>>> Or don't get any bad_alloc at all, being killed by OOM Killer promptly
>>>
>>> You get bad_alloc when you make silly requests, like negative sizes or
>>> petabytes.
>>>
>>> --
>>> Thiago Macieira - thiago.macieira (AT) intel.com
>>>   Software Architect - Intel Open Source Technology Center
>>>
>>>
>>>
>>> ___
>>> Interest mailing list
>>> Interest@qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/interest
>>> ,
>>
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>
>
> --
> Regards,
> Konstantin
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Slot exception being thrown on exit

2018-03-06 Thread Ramakanth Kesireddy
Hi,

When Qt application is being exited, it throws below error:-

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

Please let me know if there is any way to find out the slot or eventhandler
throwing exception
other than running the app in debug mode with backtrace?

Thanks and Regards,
RK
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Slot exception being thrown on exit

2018-03-13 Thread Ramakanth Kesireddy
Hi,

Thanks a lot for the pointers and tried both approaches but couldnot trace
the slot where exception is being thrown.
I re-implemented notify but the exception is not being caught.

class Application: public QApplication {

public:
Application(int& argc, char** argv,int = ApplicationFlags):
QApplication(argc, argv,ApplicationFlags)
{
qDebug() << "Application constructor: " << endl;
}

virtual bool notify(QObject* receiver, QEvent* event) {
try {
qDebug() << "Application notify: " << endl;
return QApplication::notify(receiver, event);
}
catch (const std::exception& exc) {
qDebug() << "Application caught exc: " << exc.what() << endl;
return true;
}
catch(...) {
qDebug() << "Application caught undefined exception" << endl;
return true;
}
}
};

new Application ( argc
, argv
, Application::GuiServer );

Only difference being Qt app is spawned as the child thread of other
process.
Even if I commented all the connect statements, the below exception is
being thrown:-

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

Though it works as expected in a sample app, still unable to find the
rootcause.
Please suggest in this regard.

Thanks and Regards,
RK


On Tue, Mar 6, 2018 at 11:29 PM, Thiago Macieira 
wrote:

> On Tuesday, 6 March 2018 09:30:21 PST Ramakanth Kesireddy wrote:
> > Please let me know if there is any way to find out the slot or
> eventhandler
> > throwing exception
> > other than running the app in debug mode with backtrace?
>
> Run in the debugger and ask it to stop in any C++ exception thrown (gdb
> command "catch throw").
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Resize event handler in Qt 4.8.x

2018-07-25 Thread Ramakanth Kesireddy
Hi,

Am using Qt 4.8.x with UI components based on QWidgets.

In the custom implementation of resize event handler, I would like to know
if it is mandatory to invoke QWidget base implementation of resizeEvent or
not like below:


Void CustomWidget:: resizeEvent (QResizeEvent *event)
 //Start brace
// Custom implementation

QWidget:: resizeEvent(event)
//End brace

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QScrollbar long press

2018-08-15 Thread Ramakanth Kesireddy
Hi,

Am using Qt 4.8.x on embedded Linux.

Is there any way to detect long press or press and Hold of QScrollbar apart
from starting timer in actiontriggered() and stopping timer in release()?

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QApplication in worker thread

2018-08-15 Thread Ramakanth Kesireddy
Hi,

Am using Qt 4.8.x on embedded Linux.

Though it is recommended to run QApplication or GUI in main thread, could
you please let me know if there are any limitations to create QApplication
in worker thread?

I see below two issues as QApplication is created in worker thread but not
sure if this is the primary reason:-

I) The exceptions being thrown from slot or elsewhere couldn't be caught
even after implementing QApplication::Notify()?

2) If we add copy or assignment operator in private section of custom
QWidget classes, signal and slot doesn't works. This shouldn't impact but
not quite sure.

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QApplication in worker thread

2018-08-27 Thread Ramakanth Kesireddy
On Thu, Aug 16, 2018 at 8:31 PM Thiago Macieira 
wrote:

> On Wednesday, 15 August 2018 21:33:43 PDT Ramakanth Kesireddy wrote:
> > Hi,
> >
> > Am using Qt 4.8.x on embedded Linux.
>
> I'm ignoring that. The following answer applies to one of the supported
> versions of Qt right now. Any differences to the unsupported version
> you're
> using are your problem.
>

Yes we are going to migrate to the latest version of Qt 5.x in the next
few months.

>
> > Though it is recommended to run QApplication or GUI in main thread, could
> > you please let me know if there are any limitations to create
> QApplication
> > in worker thread?
>
> It's not recommended. It's required. The QCoreApplication object must be
> created in the same thread as the thread that created the first QObject.
> Usually. QCoreApplication is the first QObject anyway.
>


Inside Qt, that thread is understood as "the main thread" or "the GUI
thread".
But it need not be the same thread that main() was run on. Just make sure
that
no other QObject was created before.

GUI is run in a separate thread instead of main thread of UI app process.
 The QCoreApplication object is
  created in the same worker thread that created the first QObject. Do you
foresee any issues with the same?

>
>
> > I see below two issues as QApplication is created in worker thread but
> not
> > sure if this is the primary reason:-
> >
> > I) The exceptions being thrown from slot or elsewhere couldn't be caught
> > even after implementing QApplication::Notify()?
>
> Don't try to catch them there. That recommendation is erroneous. Instead,
> catch them before allowing your code to return to Qt.
>

  Yes found the reason for the Qt exception from qeventloop.cpp as the
eventloop is not exited before
killing the thread.
  Is there any API to wait on the eventloop till it returns zero so that
eventloop is exited normally?

>
> > 2) If we add copy or assignment operator in private section of custom
> > QWidget classes, signal and slot doesn't works. This shouldn't impact but
> > not quite sure.
>
> QWidgets are not copyable.
> So we neednot add copy or assignment operator in private section of custom
> QWidget classes?
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QApplication in worker thread

2018-08-27 Thread Ramakanth Kesireddy
On Mon 27 Aug, 2018, 23:32 Thiago Macieira, 
wrote:

> On Monday, 27 August 2018 10:29:14 PDT Ramakanth Kesireddy wrote:
> > > It's not recommended. It's required. The QCoreApplication object must
> be
> > > created in the same thread as the thread that created the first
> QObject.
> > > Usually. QCoreApplication is the first QObject anyway.
> > > Inside Qt, that thread is understood as "the main thread" or "the GUI
> > > thread".
> > > But it need not be the same thread that main() was run on. Just make
> sure
> > > that
> > > no other QObject was created before.
> >
> > GUI is run in a separate thread instead of main thread of UI app process.
> >  The QCoreApplication object is
> >   created in the same worker thread that created the first QObject. Do
> you
> > foresee any issues with the same?
>
> As I said, for Qt's purposes, the main thread and the GUI thread are the
> same
> thread and are the thread that created the first QObject. How that thread
> was
> started is irrelevant.
>
> >   Is there any API to wait on the eventloop till it returns zero so that
> > eventloop is exited normally?
>
> There's no need to wait, since everything is happening in the same thread.
> The
> event loop is started by the exec() function in QCoreApplication, QThread
> or
> QEventLoop. Once the event loop exits, that function returns and the next
> line
> in the function is executed.
>
> If you started that thread through some non-Qt means, just wait for the
> thread
> to exit.
>

Thanks a lot for your response. I started the thread through some non-qt
means(using pthread)..Before terminating the thread, would like to ensure
eventloop is exited normally. But when qApp-quit() would take time before
which thread is deleted.

Is there any means that thread is deleted only after qt eventloop is exited
normally?

> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Macro to identify desktop(Ubuntu-X86) and embedded Linux(ARM)

2018-09-07 Thread Ramakanth Kesireddy
Hi,

Is there any macro to identify desktop(Ubuntu x-86) and embedded Linux(ARM)
in Qt 4.8 or 5.x?

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Macro to identify desktop(Ubuntu-X86) and embedded Linux(ARM)

2018-09-08 Thread Ramakanth Kesireddy
To differentiate between the font family on Ubuntu and embedded Linux..

On Sun 9 Sep, 2018, 00:04 Thiago Macieira, 
wrote:

> On Friday, 7 September 2018 23:35:19 PDT Ramakanth Kesireddy wrote:
> > Hi,
> >
> > Is there any macro to identify desktop(Ubuntu x-86) and embedded
> Linux(ARM)
> > in Qt 4.8 or 5.x?
>
> Why do you want to make that distinction?
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
>
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Macro to identify desktop(Ubuntu-X86) and embedded Linux(ARM)

2018-09-16 Thread Ramakanth Kesireddy
It works well on target with embedded Linux using default font and setting
font point size..But on Ubuntu, layout alignment is not proper after using
the same font point size..It looks like it needs to be set different point
size on Ubuntu for proper layout using macro as it is a dynamic layout
based on the items from the model.

On Tue 11 Sep, 2018, 07:46 Ramakanth Kesireddy,  wrote:

>
> -- Forwarded message -
> From: Allan Sandfeld Jensen 
> Date: Sun 9 Sep, 2018, 03:35
> Subject: Re: [Interest] Macro to identify desktop(Ubuntu-X86) and embedded
> Linux(ARM)
> To: 
> Cc: Thiago Macieira 
>
>
> On Samstag, 8. September 2018 22:56:29 CEST Thiago Macieira wrote:
> > On Saturday, 8 September 2018 11:56:45 PDT Tomasz Olszak wrote:
> > > So as well you can to it in runtime and don't need macro.
> >
> > Better yet, don't do anything. Use the font that the user configured and
> > don't override. If you don't like the font, use your desktop's font
> > changing tool to make the customisation.
>
> And getting the system default fonts can be a bit tricky, but it is done
> like
> this:
>
> QFontDatabase db; // needs to be instantiated at least once first
> QFont defaultFont;
> defaultFont.setStyleHint(QFont::SansSerif);
> defaultFont = QFont(defaultFont.defaultFamily()));
>
> You have to use QFont first as a query to query the default, and then you
> can
> set the default name to get the actual default font. This is because
> QFont::StyleHint generally isn't working well cross-platform, and it is
> also
> not quite clear what it is supposed to do in general font queries, but it
> can
> query default font families like this.
>
> I might have cleaned parts of this up so it is less error-prone, but this
> is at least the old standard incantation for font defaults.
>
> 'Allan
>
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QDatetime issue with date beyond 2038

2018-10-05 Thread Ramakanth Kesireddy
Hi,

Am unable to set date and time(beyond 2038) using QDateTime on 32 bit linux
kernel.  Using QDateTime::currentdatetime() to retrieve the current
datetime set.

Please let me know if there is any API to set date and time or do I need to
upgrade to 64 bit linux kernel to resolve the same?

Best Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qt Datetime display

2018-10-06 Thread Ramakanth Kesireddy
Hi,

I would like to display date time(MMDDHHMMSS) in a QLabel.
Instead of fetching current datetime using QDateTime::currentdatetime() and
updating value in a timer, is there any other recommended means to display
the same?

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt Datetime display

2018-10-07 Thread Ramakanth Kesireddy
Is there any date time widget which would serve this purpose?

On Sun, 7 Oct, 2018, 14:34 Tomasz Olszak,  wrote:

> I don't think there is something better. You may consider using
> VeryCoarseTimer to minimize performance impact. You may also track and
> check if label is visible and only then run timer.
>
> niedz., 7 paź 2018, 07:02 użytkownik Ramakanth Kesireddy <
> rama.k...@gmail.com> napisał:
>
>> Hi,
>>
>> I would like to display date time(MMDDHHMMSS) in a QLabel.
>> Instead of fetching current datetime using QDateTime::currentdatetime()
>> and updating value in a timer, is there any other recommended means to
>> display the same?
>>
>> Thanks and Regards,
>> Ramakanth
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Segmentation fault on exiting Qt event loop

2018-12-17 Thread Ramakanth Kesireddy
Hi,

I'm using Qt 4.8 on TI Sitara embedded linux.

Firstly, a segmentation fault occurs in the destructors, which are called
after the event loop is exited. Trying to find the root cause for this.

However, if we comment out the mainwidget destructor call, the QApplication
instance created on stack throws a segmentation fault.

But if QApplication is created on heap and qApp->quit() loop and destructor
is not called, the seg fault does not occur.

Why does the QApplication instance throw seg fault when created on stack?
Is this related to destructor clean up issue?

Should the cleanup of resources be done before
qApp->quit() is called using aboutToQuit() signal?

Best Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2018-12-17 Thread Ramakanth Kesireddy
Yes we do have Qt running in worker thread(pthread)..Does it throws
segmentation fault if we donot wait for the thread(like pthread::join) to
exit event loop and destroy objects accordingly?

On Mon, 17 Dec, 2018, 17:00 Konstantin Shegunov  On Mon, Dec 17, 2018 at 1:26 PM Andrew Ialacci  wrote:
>
>> I’ve had this issue on Windows especially when destroying worker threads
>> on an application exit.
>>
>
> Which you shouldn't do.
>
> What I ended up doing was sleeping the main thread until each worker
>> threads isRunning() return false;
>>
>> I’d love to know if this is the //best// solution to this problem but
>> from what I’ve found it works very well.
>>
>
> Nope. Call QThread::quit or QThread::requestInterruption (depending on
> whether you have a running event loop in the thread(s)). And wait for them
> with QThread::wait before allowing the QThread objects to be destroyed.
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2018-12-17 Thread Ramakanth Kesireddy
Thanks for your mail..Yes did try with valgrind but couldn't detect memory
issue may be due to the way our app is designed using threading.
But wondering why it throws segmentation fault if qApp instance is created
on stack but not on Heap as I understand that it is mandatory to construct
qApp instance on stack by design.

On Mon, 17 Dec, 2018, 23:58 Thiago Macieira  On Monday, 17 December 2018 02:43:36 PST Ramakanth Kesireddy wrote:
> > Why does the QApplication instance throw seg fault when created on stack?
>
> Because there's a bug somewhere. It's likely the problem is in your code.
> I
> recommend trying to valgrind your application and/or reducing it until you
> find what the issue is.
>
> > Should the cleanup of resources be done before
> > qApp->quit() is called using aboutToQuit() signal?
>
> Not necessarily. You can clean up after exec() finished. Just remember
> that
> you must clean up all widgets before the QApplication destructor and
> hopefully
> all QObjects before the QCoreApplication one. Depending on unload-time
> destructors is prone to problems.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2018-12-19 Thread Ramakanth Kesireddy
Yes QApplication destructor is invoked last..Does it makes sense to use
deleteLater() in the widget destructors instead of existing delete if it
could be cleaned up as part of qApp-quit()?

On Wed, 19 Dec, 2018, 12:03 Konstantin Shegunov  On Tue, Dec 18, 2018 at 8:25 AM Ramakanth Kesireddy 
> wrote:
>
>> Thanks for your mail..Yes did try with valgrind but couldn't detect
>> memory issue may be due to the way our app is designed using threading.
>> But wondering why it throws segmentation fault if qApp instance is
>> created on stack but not on Heap as I understand that it is mandatory to
>> construct qApp instance on stack by design.
>>
>
> QObject (and QCoreApplication) doesn't impose such a limitation, no, you
> can have them in the heap or stack. I'd be really surprised, though, if you
> don't get the same segfault at the point of the delete call. If you mean
> that you just don't free it up, however, then that's a major code smell.
> From your description I'd hazard a guess that you have a QObject which
> outlives the application (probably a global). This is not allowed, and as
> Thiago already said you must clean up before the Q*Application's
> destructor's run.
>
___
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-01 Thread Ramakanth Kesireddy
Hi,

Please find the sample application attached which throws segmentation fault
on click of Quit button in the UI.

However, in the actual application, if we delete the custom widget and
QApplication instance, then it throws segmentation fault on qApp->quit().

If we destroy any QObject without parent, then there is no seg error on
qApp->quit().

Does this error occurs because of double destroy that we manually destroy
objects and later qt also tried to destroy them?

Please let me know if it is correct to say that widgets(custom widgets with
parent) are destroyed by qt but any QObject created without parent needs to
be destroyed manually?

Best Regards,
Ramakanth

On Fri, Dec 21, 2018 at 4:24 AM Thiago Macieira 
wrote:

> On Wednesday, 19 December 2018 16:34:55 -02 Thiago Macieira wrote:
> >  1) Short: 200 lines or less
> >  2) Self-contained: single file, no #includes other than Qt's and STL's
> >  3) Compileable: unless you meant to show a compilation problem
> >  4) Example: demonstrates your problem.
> >
> > http://sscce.org/
>
> One more thing:
> 5) is tested with a *supported* Qt version. That's 5.9 or 5.12 today.
>
> I understand you're working with 4.8. I don't care.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
<>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Interest Digest, Vol 88, Issue 2

2019-01-07 Thread Ramakanth Kesireddy
Yes spinning a system thread(pthread) and then creating the application
object. On sigterm, quitting the application using quit() and just before
quit() deleting QApplication Instance and then pthread is cleaned up using
pthread_cancel

On Sat, 5 Jan, 2019, 07:42 Konstantin Shegunov  On Thu, Jan 3, 2019 at 4:17 PM Roland Hughes 
> wrote:
>
>>
>> On 1/3/2019 4:00 AM, Konstantin Shegunov wrote:
>> >> Yes QApplication destructor is invoked last..Does it makes sense to use
>> >> deleteLater() in the widget destructors instead of existing delete if
>> it
>> >> could be cleaned up as part of qApp-quit()?
>> >>
>> > Your example code clearly shows otherwise. You have a QObject that's
>> > created before and destroyed after the application object.
>>
>> Wow!
>>
>> Perhaps a better question would be, "How is it that doesn't fault today?"
>
> Just wondering if the test compilation "worked" due to luck of the draw.
>>
>
> I don't know, I'm not intimately familiar with all the internals.
> QObjects, I think, rely/relied on a global state that's initialized in
> QCoreApplication. What I can say for sure is that thread information is
> initialized by the application object. Just for illustration purposes, this
> is also the reason why you can't run a QThread and have the application
> object in its QThread::run override. The thread object is going to set up
> the global thread info and then you're going to get weirdness - warnings
> such as "Not creating the application object in the main/GUI thread".
> Possibly segfaults at exit. If you actually need to do such stuff you
> really need to spin a system thread (std::thread, pthread, w/e) and then
> create the application object (besides issues you have with the event loop
> integration on osx).
>
> So, even if it worked before, it had been wrong all along, so it should be
> fixed anyway.
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Qt5.6 QPushbutton Autorepeat

2019-06-03 Thread Ramakanth Kesireddy
Hi,


Am using Qt 5.6 based widgets application.

Is there a way to know the auto repeat action of QPushButton (like if the
user pressed the button multiple times ), so as to process the further
button presses after specified time interval and ignore the repeated button
press events?


Had look at below but doesn't meets the purpose as it works only for long
press(when button is down, it adds initial delay and generates repeated
events after autorepeat interval)

https://doc.qt.io/archives/qt-5.6/qabstractbutton.html#autoRepeat-prop


Starting a single shot timer would work for the debounce implementation for
button but would like to know any other effective means.


Any thoughts?
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Qt 5.9 app with multiple display sizes

2019-07-14 Thread Ramakanth Kesireddy
Hi,

Our Qt app is based out of Qt 5.6 C++ widgets. Inorder to support for
multiple display sizes on embedded linux, could you please let me know if
it is recommended to move the existing app to Qt Quick app?

Best regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt 5.9 app with multiple display sizes

2019-07-24 Thread Ramakanth Kesireddy
Thanks for your mail.
Does it makes sense to move to Qt Quick as we donot have GPU on the
embedded hardware?

On Mon, 15 Jul, 2019, 01:43 André Pönitz,  wrote:

> On Sun, Jul 14, 2019 at 10:19:25PM +0530, Ramakanth Kesireddy wrote:
> > Hi,
> >
> > Our Qt app is based out of Qt 5.6 C++ widgets. Inorder to support for
> > multiple display sizes on embedded linux, could you please let me know if
> > it is recommended to move the existing app to Qt Quick app?
>
> Qt Widgets can support multiple display sizes without problem, so your
> decision to move your application to Qt Quick should be independent of
> the answer to this question.
>
> Andre'
>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Klocwork errors in Qt

2019-12-02 Thread Ramakanth Kesireddy
Hi,

We got below errors in Qt 5.13 using C++ QWidgets while running static code
analysis withKlocwork:

1)Address of a local variable is returned via return statement expression
'QStringBuilder,const char[2]>(a,
&b).b'.
2)Address of a local variable is returned via return statement expression
'QStringBuilder,const char[2]>(a, &b).b'
3)Address of a local variable is returned via return statement expression
'QStringBuilder(&a, b).a'.

pointing to the below source @
https://github.com/qt/qtbase/blob/dev/src/corelib/text/qstringbuilder.h

template 
QStringBuilder::type, typename
QConcatenable::type>
operator%(const A &a, const B &b)
{
   return QStringBuilder::type, typename
QConcatenable::type>(a, b);
}

We are concatenating two QStrings using % which might lead to the above
errors:
For eg: eventString = eventString % eventState

Do you recommend to use QString(%1%2").arg( eventString ).arg( eventState )
instead to resolve above errors or ignore the Klocwork errors reported?

Another Klocwork error reported is

4)
https://github.com/radekp/qt/blob/master/src/corelib/tools/qsharedpointer_impl.h
 inline Basic(Qt::Initialization) { }
// ~Basic();
'this->value' is not initialized in this constructor.
List of initiations may be incomplete.

Let me know if it makes sense to further analyze or ignore the errors
reported in Qt?

Best Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Klocwork errors in Qt

2019-12-05 Thread Ramakanth Kesireddy
Thanks for all the suggestions. Atleast we are not using auto for the
concatenation of QStrings.

On Thu, Dec 5, 2019 at 2:33 PM Giuseppe D'Angelo via Interest <
interest@qt-project.org> wrote:

> Il 05/12/19 00:54, Thiago Macieira ha scritto:
> > Same issue (dangling pointer), no "auto" required.
>
> Or
>
> > QStringView f() {
> >   QString s("hello");
> >   return s;
> > }
>
> Or even
>
> > QVector v;
> > v << QString("world");
>
> etc.
>
> Really, one can build countless examples where Modern C++ will gladly
> make you shoot in your own foot...
>
> Thanks,
> --
> Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
> KDAB (France) S.A.S., a KDAB Group company
> Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
> KDAB - The Qt, C++ and OpenGL Experts
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] cpputest with QTest output issue on embedded target console

2019-12-05 Thread Ramakanth Kesireddy
Hi,

When unit test binary(using cpputest to run the testcases + QTest for the
specific Qt functionality)is executed on embedded target(linux), it doesnot
shows any test summary/results with respect to number of testcases run on
console.

There is no issue when it is run on Ubuntu linux.

Whether Qt redirects the standard output or any environment variable to see
the output on console or any other reason?

Any thoughts on the same?

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] cpputest with QTest output issue on embedded target console

2019-12-08 Thread Ramakanth Kesireddy
Thanks it works.
However, it gives generic failure rather than specific failure in the test
when used with Qt.

 unknown file:0: error: Failure in TEST(
NOTE: Assertion happened without being in a test run (perhaps in main?),
  Something is very wrong. Check this assertion and fix)

  Something is very wrong. Check this assertion and fix:0: error:
Deallocating non-allocated memory
   allocated at file:  line: 0 size: 0 type: unknown
   deallocated at file:  line: 0 type: delete

Main to run qt unit tests looks like below:
int main(int argc, char *argv[])
{
qputenv("QT_LOGGING_TO_CONSOLE","1");
QApplication app( argc, argv );
CommandLineTestRunner::RunAllTests(argc, argv);
return 0;
}

Best Regards,
Ramakanth

On Fri, 6 Dec, 2019, 15:52 Christian Kandeler, 
wrote:

> On Fri, 6 Dec 2019 08:23:20 +0530
> Ramakanth Kesireddy  wrote:
>
> > When unit test binary(using cpputest to run the testcases + QTest for the
> > specific Qt functionality)is executed on embedded target(linux), it
> doesnot
> > shows any test summary/results with respect to number of testcases run on
> > console.
> >
> > There is no issue when it is run on Ubuntu linux.
> >
> > Whether Qt redirects the standard output or any environment variable to
> see
> > the output on console or any other reason?
>
> The output might go to some syslog. Try setting QT_LOGGING_TO_CONSOLE=1.
>
>
> Christian
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Qt widget parent and child visibility

2019-12-16 Thread Ramakanth Kesireddy
Hi,

Is there any means to hide parent and then show child widget in Qt 5.13?

When i hide parent and then setvisible(true) or show() on child widget, it
hides even the child widget.

Please let me know if this is the intended behaviour.

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Qtconcurrent::run priority

2019-12-23 Thread Ramakanth Kesireddy
Hi All,

If the function is being run in a thread using Qtconcurrent::run spawned
from another thread(pthread), could you please let me know if the default
priority of the thread is QThread::NormalPriority or
QThread::InheritPriority?

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qtconcurrent::run priority

2019-12-26 Thread Ramakanth Kesireddy
Thanks a lot for your response.

On Wed, 25 Dec, 2019, 21:29 Thiago Macieira, 
wrote:

> On Monday, 23 December 2019 23:34:49 -03 Ramakanth Kesireddy wrote:
> > If the function is being run in a thread using Qtconcurrent::run spawned
> > from another thread(pthread), could you please let me know if the default
> > priority of the thread is QThread::NormalPriority or
> > QThread::InheritPriority?
>
> QtConcurrent::run uses QThreadPool, which doesn't change the QThread's
> default
> priority. That means it's InheritPriority.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qtconcurrent::run priority

2019-12-28 Thread Ramakanth Kesireddy
Whether the thread created using Qtconcurrent::run returning QFuture(status
monitored using QFutureWatcher) needs to be deleted explicitly  by the
application or it is auto deleted when there are no references?

Best Regards,
Ramakanth

On Wed, 25 Dec, 2019, 21:29 Thiago Macieira, 
wrote:

> On Monday, 23 December 2019 23:34:49 -03 Ramakanth Kesireddy wrote:
> > If the function is being run in a thread using Qtconcurrent::run spawned
> > from another thread(pthread), could you please let me know if the default
> > priority of the thread is QThread::NormalPriority or
> > QThread::InheritPriority?
>
> QtConcurrent::run uses QThreadPool, which doesn't change the QThread's
> default
> priority. That means it's InheritPriority.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qtconcurrent::run priority

2019-12-29 Thread Ramakanth Kesireddy
I mean the function being run in a separate thread using Qtconcurrent::run
is auto deleted from QThreadpool?

On Mon, 30 Dec, 2019, 05:52 Thiago Macieira, 
wrote:

> On Saturday, 28 December 2019 08:21:39 -03 Ramakanth Kesireddy wrote:
> > Whether the thread created using Qtconcurrent::run returning
> QFuture(status
> > monitored using QFutureWatcher) needs to be deleted explicitly  by the
> > application or it is auto deleted when there are no references?
>
> QtConcurrent::run does not return a thread. It returns a QFuture.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Hardware accelerated rendering in Qt 5.13

2020-02-03 Thread Ramakanth Kesireddy
Hi,

Our existing application is based on c++ widgets(QWidget) using QPainter on
Qt 5.13. As i understand Qpainter uses raster engine for graphics
rendering, Is there any means to make use of hardware accelerated
rendering(GPU) other than changing the complete Application code into Qt
quick or QGLWidget?

Appreciate your suggestions in this regard.

Best Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Hardware accelerated rendering in Qt 5.13

2020-02-13 Thread Ramakanth Kesireddy
Thanks for your mail.
Whether it makes sense to go for accelerated QPainter for 2D graphics by
replacing QWidget with QOpenGLWidget?

Best Regards,
Ramakanth

On Tue, 4 Feb, 2020, 13:52 Allan Sandfeld Jensen,  wrote:

> On Dienstag, 4. Februar 2020 03:26:12 CET Ramakanth Kesireddy wrote:
> > Hi,
> >
> > Our existing application is based on c++ widgets(QWidget) using QPainter
> on
> > Qt 5.13. As i understand Qpainter uses raster engine for graphics
> > rendering, Is there any means to make use of hardware accelerated
> > rendering(GPU) other than changing the complete Application code into Qt
> > quick or QGLWidget?
> >
> You can create a QOpenGLWindow or QOpenGLWidget and paint therein.
>
> You can also use QGraphicsView with a QOpenGLWidget as a viewport.
>
> In both cases an accelerated QPainter would then be used.
>
> 'Allan
>
>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] unrecognised command line option -std=c++11 error for Qt 5.12.7 sources

2020-02-18 Thread Ramakanth Kesireddy
Hi,

Am getting the below error while trying to build latest Qt 5.12.7 sources
on ubuntu desktop.

Unrecognised command line option std=c++11.

GCC version on desktop is gcc 4.6.3.

Can we set -std=c++Ox in the configure line to compile the Qt5.12.7 sources?

Best regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] unrecognised command line option -std=c++11 error for Qt 5.12.7 sources

2020-02-18 Thread Ramakanth Kesireddy
Thanks for your mail.
It works fine after upgrading the compiler to gcc 4.8+



On Tue, Feb 18, 2020 at 8:45 PM Kai Köhne  wrote:

>
>
> > Betreff: [Interest] unrecognised command line option -std=c++11 error
> for Qt 5.12.7 sources
> >
> > Hi,
> >
> > Am getting the below error while trying to build latest Qt 5.12.7
> sources on ubuntu desktop.
> >
> > Unrecognised command line option std=c++11.
> >
> > GCC version on desktop is gcc 4.6.3.
>
> I suggest you consider upgrading your compiler.
> https://doc.qt.io/qt-5.12/linux.html says the oldest supported gcc
> version is 4.8.
>
> > Can we set -std=c++Ox in the configure line to compile the Qt5.12.7
> sources?
>
> You can adapt QMAKE_CXXFLAGS_CXX11 in mkspecs/g++base.conf.
>
> Anyhow, there's a good chance that you will soon hit the next compiler
> error then ...
>
>
> Kai
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] QtWebkit error while building Qt5.12.7 sources

2020-02-18 Thread Ramakanth Kesireddy
Hi,

While trying to build Qt Webkit sources from Qt 5.5.1 as a separate module
being part of Qt 5.12.7 sources, it throws below error:

WebKit is now configured for building. Just run 'make'.

g++ -Wl,-O1 -Wl,--enable-new-dtags
-Wl,-rpath,/home/ubuntu/qt-everywhere-opensource-src-5.12.7/qtwebkit/lib -o
LLIntOffsetsExtractor .obj/llint/LLIntOffsetsExtractor.o
.obj/llint/LLIntOffsetsExtractor.o:(.qtversion[qt_version_tag]+0x0):
undefined reference to `qt_version_tag'
collect2: ld returned 1 exit status
make[3]: *** [LLIntOffsetsExtractor] Error 1
make[3]: Leaving directory
/home/ubuntu/qt-everywhere-opensource-src-5.12.7/qtwebkit/Source/JavaScriptCore'
make[2]: *** [sub-LLIntOffsetsExtractor-pro-make_first-ordered] Error 2
make[2]: Leaving directory `
/home/ubuntu/qt-everywhere-opensource-src-5.12.7/qtwebkit/Source/JavaScriptCore'
make[1]: ***
[sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2
make[1]: Leaving directory
/home/ubuntu/qt-everywhere-opensource-src-5.12.7/qtwebkit'
make: *** [module-qtwebkit-make_first] Error 2

I tried to add DEFINES += QT_NO_VERSION_TAGGING in WebKit.pro
 but it doesn't solves the error.

Any suggestions on how to resolve the same are appreciated.

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-02-19 Thread Ramakanth Kesireddy
Ok let me try with 5.212..Whether it is compatible with Qt sources starting
from 5.6 till the latest 5.12.7 and 5.14?

On Wed, 19 Feb, 2020, 22:36 Konstantin Tokarev,  wrote:

>
>
> 19.02.2020, 10:53, "Thiago Macieira" :
> > On Tuesday, 18 February 2020 16:29:13 PST Sze Howe Koh wrote:
> >>  On Wed, 19 Feb 2020 at 08:05, Thiago Macieira <
> thiago.macie...@intel.com>
> >
> > wrote:
> >>  > There's no good solution for using qtwebkit. You have to stop using
> it.
> >>
> >>  I was under the impression that Konstantin Tokarev was keeping the Qt
> >>  WebKit sources up-to-date with upstream WebKit, even though it's not
> >>  part of the official Qt releases?
> >
> > Such impression existed and Konstantin did update the release. There are
> > certainly some commits in the repository. But looking at the activity
> for the
> > past year, almost everything seems to be related to keeping the
> buildsystem
> > working. I can't find any commit referring to a fixing a security issue.
>
> That's correct, most of the work in last year is targeted to a new branch
> with updated
> WebKit. However, 5.212 serves its job well, it's compatible with current
> Qt and is at
> least is strictly better than 5.9 in terms of bugs, features and security.
> Of course, it
> should be used with caution on untrusted content, because of possible
> security issues.
>
> >
> > In the end, the 5.212 branch base itself is too old. qtwebkit would need
> a new
> > base branch off webkit to be a reasonable target and that has not
> happened.
> >
> > Please, let it die.
> >
> > --
> > Thiago Macieira - thiago.macieira (AT) intel.com
> >   Software Architect - Intel System Software Products
> >
> > ___
> > Interest mailing list
> > Interest@qt-project.org
> > https://lists.qt-project.org/listinfo/interest
>
> --
> Regards,
> Konstantin
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-02-20 Thread Ramakanth Kesireddy
If I need to build the Qtwebkit source, Do I need to build as a separate
module using qmake or use configure line to configure QtWebkit and then
make?Looks like it needs gcc 4.9 to build QtWebkit.

On Thu, 20 Feb, 2020, 19:00 Konstantin Tokarev,  wrote:

>
>
> 20.02.2020, 08:03, "Ramakanth Kesireddy" :
> > Ok let me try with 5.212..Whether it is compatible with Qt sources
> starting from 5.6 till the latest 5.12.7 and 5.14?
>
> Yes it is.
> You can also take ready to use binaries compatible with official Qt 5.13
> from
> http://download.qt.io/snapshots/ci/qtwebkit/5.212/1571922148/qtwebkit/
>
> >
> > On Wed, 19 Feb, 2020, 22:36 Konstantin Tokarev, 
> wrote:
> >> 19.02.2020, 10:53, "Thiago Macieira" :
> >>> On Tuesday, 18 February 2020 16:29:13 PST Sze Howe Koh wrote:
> >>>>  On Wed, 19 Feb 2020 at 08:05, Thiago Macieira <
> thiago.macie...@intel.com>
> >>>
> >>> wrote:
> >>>>  > There's no good solution for using qtwebkit. You have to stop
> using it.
> >>>>
> >>>>  I was under the impression that Konstantin Tokarev was keeping the Qt
> >>>>  WebKit sources up-to-date with upstream WebKit, even though it's not
> >>>>  part of the official Qt releases?
> >>>
> >>> Such impression existed and Konstantin did update the release. There
> are
> >>> certainly some commits in the repository. But looking at the activity
> for the
> >>> past year, almost everything seems to be related to keeping the
> buildsystem
> >>> working. I can't find any commit referring to a fixing a security
> issue.
> >>
> >> That's correct, most of the work in last year is targeted to a new
> branch with updated
> >> WebKit. However, 5.212 serves its job well, it's compatible with
> current Qt and is at
> >> least is strictly better than 5.9 in terms of bugs, features and
> security. Of course, it
> >> should be used with caution on untrusted content, because of possible
> security issues.
> >>
> >>>
> >>> In the end, the 5.212 branch base itself is too old. qtwebkit would
> need a new
> >>> base branch off webkit to be a reasonable target and that has not
> happened.
> >>>
> >>> Please, let it die.
> >>>
> >>> --
> >>> Thiago Macieira - thiago.macieira (AT) intel.com
> >>>   Software Architect - Intel System Software Products
> >>>
> >>> ___
> >>> Interest mailing list
> >>> Interest@qt-project.org
> >>> https://lists.qt-project.org/listinfo/interest
> >>
> >> --
> >> Regards,
> >> Konstantin
> >>
> >> ___
> >> Interest mailing list
> >> Interest@qt-project.org
> >> https://lists.qt-project.org/listinfo/interest
>
>
> --
> Regards,
> Konstantin
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-02-20 Thread Ramakanth Kesireddy
Unable to get away the error though I added QtWebkit(5.5.1) sources along
with Qt 5.6.3 sources and use below configure line:

./configure -prefix /home/ubuntu/qt5 -opensource -confirm-license
-qt-libjpeg -qt-zlib -qt-libpng -sql-sqlite -no-cups -no-opengl
-no-qml-debug -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip
qtcanvas3d -skip qtconnectivity -skip qtdeclarative -skip qtenginio -skip
qtgraphicaleffects -skip qtlocation -skip qtmacextras -skip qtmultimedia
-skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtsensors
-skip qtserialbus -skip qtserialport -skip qtwayland -skip qtwebsockets
-skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -nomake tools
-nomake tests -nomake examples -no-use-gold-linker -no-iconv -no-pulseaudio
-no-alsa -no-mtdev -dbus -fontconfig -no-libudev -no-openssl -qt-pcre -v

I installed needed dependencies of Qt Webengine,QtWebkit and libxcb as
mentioned in https://wiki.qt.io/Building_Qt_5_from_Git

The older versions of Qt had been installed in /home/ubuntu/ different
folders.
Though I remove the older versions of installed Qt, it still throws the
qt_version_tag error.

Do I need to modify any QtWebkit sources/configuration to link against the
Qt 5.6+?


On Wed, 19 Feb, 2020, 05:32 Thiago Macieira, 
wrote:

> On Tuesday, 18 February 2020 08:31:39 PST Ramakanth Kesireddy wrote:
> > undefined reference to `qt_version_tag'
> > collect2: ld returned 1 exit status
>
> Besides the warning that you're building a very old and insecure version,
> qt_version_tag was introduced in Qt 5.6. This error usually means you've
> compiled against Qt 5.6+ headers but linked against Qt 5.5 or older.
> Remove
> the older versions of Qt from your installation.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-02-21 Thread Ramakanth Kesireddy
Where can I download the compatible Qt 5.6.3 Qt WebKit sources? Looks like
latest Qt WebKit needs gcc 4.9 and above.

On Fri, 21 Feb, 2020, 02:37 Konstantin Tokarev,  wrote:

>
>
> 20.02.2020, 20:00, "Ramakanth Kesireddy" :
> > Unable to get away the error though I added QtWebkit(5.5.1) sources
> along with Qt 5.6.3 sources and use below configure line:
> >
> > ./configure -prefix /home/ubuntu/qt5 -opensource -confirm-license
> -qt-libjpeg -qt-zlib -qt-libpng -sql-sqlite -no-cups -no-opengl
> -no-qml-debug -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip
> qtcanvas3d -skip qtconnectivity -skip qtdeclarative -skip qtenginio -skip
> qtgraphicaleffects -skip qtlocation -skip qtmacextras -skip qtmultimedia
> -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtsensors
> -skip qtserialbus -skip qtserialport -skip qtwayland -skip qtwebsockets
> -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -nomake tools
> -nomake tests -nomake examples -no-use-gold-linker -no-iconv -no-pulseaudio
> -no-alsa -no-mtdev -dbus -fontconfig -no-libudev -no-openssl -qt-pcre -v
> >
> > I installed needed dependencies of Qt Webengine,QtWebkit and libxcb as
> mentioned in https://wiki.qt.io/Building_Qt_5_from_Git
> >
> > The older versions of Qt had been installed in /home/ubuntu/ different
> folders.
> > Though I remove the older versions of installed Qt, it still throws the
> qt_version_tag error.
> >
> > Do I need to modify any QtWebkit sources/configuration to link against
> the Qt 5.6+?
>
> You need to use release which is not older than Qt 5.6, 5.5 won't work.
>
> --
> Regards,
> Konstantin
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-02-22 Thread Ramakanth Kesireddy
Yes Thanks..It generates QtWebkit includes and lib.
However, QtWebEngine is not generated with includes and lib though I
install dependencies of QtWebengine as mentioned in https://wiki.qt
.io/Building_Qt_5_from_Git
Am I missing something?

Best Regards,
Ramakanth

On Fri, Feb 21, 2020 at 2:37 AM Konstantin Tokarev 
wrote:

>
>
> 20.02.2020, 20:00, "Ramakanth Kesireddy" :
> > Unable to get away the error though I added QtWebkit(5.5.1) sources
> along with Qt 5.6.3 sources and use below configure line:
> >
> > ./configure -prefix /home/ubuntu/qt5 -opensource -confirm-license
> -qt-libjpeg -qt-zlib -qt-libpng -sql-sqlite -no-cups -no-opengl
> -no-qml-debug -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip
> qtcanvas3d -skip qtconnectivity -skip qtdeclarative -skip qtenginio -skip
> qtgraphicaleffects -skip qtlocation -skip qtmacextras -skip qtmultimedia
> -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtsensors
> -skip qtserialbus -skip qtserialport -skip qtwayland -skip qtwebsockets
> -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -nomake tools
> -nomake tests -nomake examples -no-use-gold-linker -no-iconv -no-pulseaudio
> -no-alsa -no-mtdev -dbus -fontconfig -no-libudev -no-openssl -qt-pcre -v
> >
> > I installed needed dependencies of Qt Webengine,QtWebkit and libxcb as
> mentioned in https://wiki.qt.io/Building_Qt_5_from_Git
> >
> > The older versions of Qt had been installed in /home/ubuntu/ different
> folders.
> > Though I remove the older versions of installed Qt, it still throws the
> qt_version_tag error.
> >
> > Do I need to modify any QtWebkit sources/configuration to link against
> the Qt 5.6+?
>
> You need to use release which is not older than Qt 5.6, 5.5 won't work.
>
> --
> Regards,
> Konstantin
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-02-23 Thread Ramakanth Kesireddy
Though QtWebkit libs and includes are generated in the installation
directory, QtWebengine includes and libs are missing though both QtWebkit
and QtWebengine are built as part of Qt sources.

On Sun, 23 Feb, 2020, 21:36 Thiago Macieira, 
wrote:

> On Saturday, 22 February 2020 06:30:55 PST Ramakanth Kesireddy wrote:
> > Yes Thanks..It generates QtWebkit includes and lib.
> > However, QtWebEngine is not generated with includes and lib though I
> > install dependencies of QtWebengine as mentioned in https://wiki.qt
> > .io/Building_Qt_5_from_Git
> > Am I missing something?
>
> Yes.
>
> QtWebKit is not QtWebEngine.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-02-24 Thread Ramakanth Kesireddy
Do you mean configure line  or make output in the qt webengine directory?
Am using qt 5.6.3 as the compiler is old.

On Sun, Feb 23, 2020 at 10:04 PM Thiago Macieira 
wrote:

> On Sunday, 23 February 2020 08:10:01 PST Ramakanth Kesireddy wrote:
> > Though QtWebkit libs and includes are generated in the installation
> > directory, QtWebengine includes and libs are missing though both QtWebkit
> > and QtWebengine are built as part of Qt sources.
>
> Please paste the output of qmake in the qtwebengine dir. I don't remember
> if
> 5.12 creates a config.log. If it does, attach it.
>
> You are probably missing some library or your compiler is too old.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-02-29 Thread Ramakanth Kesireddy
Yes the compiler being old causing the issue.


ubuntu@ubuntu:~/qt-everywhere-opensource-src-5.6.3/qtwebengine$ qmake
Info: creating cache file
/home/ubuntu/qt-everywhere-opensource-src-5.6.3/qtwebengine/.qmake.cache

Using gcc version 4.6, but at least gcc version 4.7 is required to build Qt
WebEngine.
Using gcc version 4.6, but at least gcc version 4.7 is required to build Qt
WebEngine.
QtWebEngine will not be built.

Shall upgrade the compiler to gcc to 7.x.



On Tue, Feb 25, 2020 at 10:44 AM Thiago Macieira 
wrote:

> On Monday, 24 February 2020 18:33:30 PST Ramakanth Kesireddy wrote:
> > Do you mean configure line  or make output in the qt webengine directory?
> > Am using qt 5.6.3 as the compiler is old.
>
> Neither. Build your Qt without qtwebengine, install it. Then after that is
> done, get the qtwebengine package, unpack it, qmake. It'll print a series
> of
> checks and will create a config log.
>
> At least it did so in 5.12. No idea about 5.6. You're on your own.
>
> I suggest you simply upgrade your compiler to something less than 3 years
> old.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-03-28 Thread Ramakanth Kesireddy
Hi,

Am getting the below error while trying to build Qt webkit sources using
cross compiler tool chain for target.

In file included from ./wtf/unicode/Unicode.h:32:0,
from ./wtf/text/ASCIIFastPath.h:31,
from ./wtf/text/WTFString.h:28,
from wtf/DateMath.h:54,
from wtf/DateMath.cpp:73:
./wtf/unicode/icu/UnicodeIcu.h:29:27: fatal error: unicode/uchar.h: No such
file or directory
compilation terminated.
make[1]: *** [.obj/wtf/DateMath.o] Error 1
make[1]: Leaving directory
`/home/ubuntu/target/qt-everywhere-opensource-src-5.6.3/qtwebkit/Source/WTF'
make: *** [sub-Source-WTF-WTF-pro-make_first-ordered] Error 2


Any suggestions on how to resolve the same are appreciated.


Best Regards,

Ramakanth



On Fri, Feb 21, 2020 at 5:53 PM Konstantin Tokarev 
wrote:

>
>
> 21.02.2020, 15:02, "Ramakanth Kesireddy" :
> > Where can I download the compatible Qt 5.6.3 Qt WebKit sources? Looks
> like latest Qt WebKit needs gcc 4.9 and above.
>
> http://download.qt.io/community_releases/5.6/5.6.3/
>
> Though you should probably better use 5.9 branch, if you cannot use gcc
> 4.8 for some reason
>
>
> --
> Regards,
> Konstantin
>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-03-30 Thread Ramakanth Kesireddy
Any recommendation on the compatible icu sources to cross-compile or the
latest one would do for Qt WebKit 5.6.3?

On Sun, 29 Mar, 2020, 20:08 Thiago Macieira, 
wrote:

> On Saturday, 28 March 2020 11:07:17 -03 Ramakanth Kesireddy wrote:
> > ./wtf/unicode/icu/UnicodeIcu.h:29:27: fatal error: unicode/uchar.h: No
> such
> > file or directory
>
> ICU is missing in your toolchain.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-03-30 Thread Ramakanth Kesireddy
Thanks for your mail.
Can you let me know any specific version of ICU that shall be compatible
with Qt WebKit 5.6.3?

On Mon, 30 Mar, 2020, 23:32 Konstantin Tokarev,  wrote:

>
>
> 30.03.2020, 19:28, "Thiago Macieira" :
> > On Monday, 30 March 2020 12:35:19 -03 Ramakanth Kesireddy wrote:
> >>  Any recommendation on the compatible icu sources to cross-compile or
> the
> >>  latest one would do for Qt WebKit 5.6.3?
> >
> > ICU should always be used in the latest version since it contains data
> that
> > changes every year, some of them multiple times a year, like the timezone
> > database.
> >
> > That also means you need to design your system so it'll get updates.
>
> QtWebKit 5.6.3 won't build with latest ICU. Only the latest release is
> compatible:
> https://github.com/qtwebkit/qtwebkit/releases/tag/qtwebkit-5.212.0-alpha4
>
> --
> Regards,
> Konstantin
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-03-31 Thread Ramakanth Kesireddy
Since the old compiler doesn't supports c++11, we got to use Qt WebKit
5.6.3 only. However, we shall move to the latest 5.12 LTS once the compiler
is upgraded.

So ICS 59.2 would be compatible with Qt WebKit 5.6.3?

On Tue, 31 Mar, 2020, 12:50 Konstantin Tokarev,  wrote:

>
>
> 31.03.2020, 05:32, "Ramakanth Kesireddy" :
> > Thanks for your mail.
> > Can you let me know any specific version of ICU that shall be compatible
> with Qt WebKit 5.6.3?
>
> If you use 5.9 branch (which you really have no reason not to use,
> AFAICS), it's 59.2
>
>
> --
> Regards,
> Konstantin
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-04-01 Thread Ramakanth Kesireddy
Can you please provide any reference of cross compiling ICU 58.x as I end
up getting one error or other in configure line?

On Tue, 31 Mar, 2020, 14:27 Konstantin Tokarev,  wrote:

>
>
> 31.03.2020, 11:54, "Ramakanth Kesireddy" :
> > Since the old compiler doesn't supports c++11, we got to use Qt WebKit
> 5.6.3 only. However, we shall move to the latest 5.12 LTS once the compiler
> is upgraded.
> >
> > So ICS 59.2 would be compatible with Qt WebKit 5.6.3?
>
> No, necessary patch wasn't backported there. Try 58.x
>
> --
> Regards,
> Konstantin
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Hardware accelerated rendering in Qt 5.12.7

2020-04-03 Thread Ramakanth Kesireddy
Is there any attribute that can be set in QWidget which could use hardware
accelerated graphics or opengl paint device in Qt 5.12.7 without changing
the custom widgets deriving from QWidget?

On Tue, 4 Feb, 2020, 13:52 Allan Sandfeld Jensen,  wrote:

> On Dienstag, 4. Februar 2020 03:26:12 CET Ramakanth Kesireddy wrote:
> > Hi,
> >
> > Our existing application is based on c++ widgets(QWidget) using QPainter
> on
> > Qt 5.13. As i understand Qpainter uses raster engine for graphics
> > rendering, Is there any means to make use of hardware accelerated
> > rendering(GPU) other than changing the complete Application code into Qt
> > quick or QGLWidget?
> >
> You can create a QOpenGLWindow or QOpenGLWidget and paint therein.
>
> You can also use QGraphicsView with a QOpenGLWidget as a viewport.
>
> In both cases an accelerated QPainter would then be used.
>
> 'Allan
>
>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-04-09 Thread Ramakanth Kesireddy
Thanks for your mail.ICU 58.x works.

Can you recommend ICU sources version for the compatible Qt 5.12.7 LTS
sources?

On Tue, 31 Mar, 2020, 14:27 Konstantin Tokarev,  wrote:

>
>
> 31.03.2020, 11:54, "Ramakanth Kesireddy" :
> > Since the old compiler doesn't supports c++11, we got to use Qt WebKit
> 5.6.3 only. However, we shall move to the latest 5.12 LTS once the compiler
> is upgraded.
> >
> > So ICS 59.2 would be compatible with Qt WebKit 5.6.3?
>
> No, necessary patch wasn't backported there. Try 58.x
>
> --
> Regards,
> Konstantin
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Qt 5.12.x LTS

2020-04-12 Thread Ramakanth Kesireddy
Hi,

As we are moving to Qt 5.12 LTS commercial release owing to future
commercialwith  LTS releases, I have a few questions:

1) Can we make use of other open source modules like Qt WebKit or tools
like Qt creator, Qt linguist along with Qt commercial release?

2) Does it makes sense to use latest Qt 5.12.8 LTS instead of Qt 5.12.7
wrto stable release?

3) May I know if the recent security bug fixes added to Qt 5.13 and Qt 5.14
are back ported to Qt 5.12 LTS?

Best Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt 5.12.x LTS

2020-04-14 Thread Ramakanth Kesireddy
Thanks for your mail.
Can we continue to use open source modules like QtWebkit though deprecated
along with Qt commercial license?

Best Regards,
Ramakanth

On Mon, 13 Apr, 2020, 17:21 Thiago Macieira, 
wrote:

> On Monday, 13 April 2020 02:57:17 -03 Ramakanth Kesireddy wrote:
> > 2) Does it makes sense to use latest Qt 5.12.8 LTS instead of Qt 5.12.7
> > wrto stable release?
>
> It never makes sense to use something that is not the latest in a given
> LTS
> Series. Use the latest.
>
> > 3) May I know if the recent security bug fixes added to Qt 5.13 and Qt
> 5.14
> > are back ported to Qt 5.12 LTS?
>
> Yes, they've been backported, including other fixes that don't have an
> associated CVE number.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt 5.12.x LTS

2020-04-15 Thread Ramakanth Kesireddy
Thanks for your email.

Since QPA backend in our platform being used is LinuxFB, does it impacts on
selection of 5.12 LTS ?As I read in the embedded Linux documentation that
behaviour of EGLFS and LinuxFB have been synchronised as of Qt 5.9 with
regards to window sizing policy which is our desired behaviour that the
first top-level window is forced to cover the entire screen.

Beyond Qt 5.9, it needs to use DRM dumb buffer support since fbdev is being
deprecated.
The kernel being used is 4.14

Does it have any impact on the selection of Qt 5.12 LTS wrto LinuxFB as QPA
since the default Qt being provided by vendor is Qt 5.9?

Best Regards,
Ramakanth

On Tue, 14 Apr, 2020, 19:44 Jason H,  wrote:

> ?? https://wiki.qt.io/Qt_5.15_Release
> It's in Beta 3.
>
>
> > Sent: Tuesday, April 14, 2020 at 9:42 AM
> > From: "coroberti ." 
> > To: "Qt Interest" , "Ramakanth Kesireddy" <
> rama.k...@gmail.com>
> > Cc: "Jason H" 
> > Subject: Re: [Interest] Qt 5.12.x LTS
> >
> > It will take for 5.15 several months to get major fixes,
> > and 5.12 is a very stable version.
> >
> > jm4c
> >
> > Kind regards,
> > Robert
> >
> > On Tue, Apr 14, 2020 at 4:33 PM Jason H  wrote:
> > >
> > > If you're goint to change to 5.12, you might want to wait a month or
> so for 5.15, the next LTS, is targeted around May 15.
> > > I'm not sure how much work it is for you to switch, but if you're just
> now switching to 5.12, I assume it is at a substantial cost...
> > >
> > >
> > >
> > > Sent: Monday, April 13, 2020 at 1:57 AM
> > > From: "Ramakanth Kesireddy" 
> > > To: "Qt Interest" 
> > > Subject: [Interest] Qt 5.12.x LTS
> > > Hi,
> > >
> > > As we are moving to Qt 5.12 LTS commercial release owing to future
> commercialwith  LTS releases, I have a few questions:
> > >
> > > 1) Can we make use of other open source modules like Qt WebKit or
> tools like Qt creator, Qt linguist along with Qt commercial release?
> > >
> > > 2) Does it makes sense to use latest Qt 5.12.8 LTS instead of Qt
> 5.12.7 wrto stable release?
> > >
> > > 3) May I know if the recent security bug fixes added to Qt 5.13 and Qt
> 5.14 are back ported to Qt 5.12 LTS?
> > >
> > > Best Regards,
> > > Ramakanth
> > >
> > >
> > > ___ Interest mailing list
> Interest@qt-project.org https://lists.qt-project.org/listinfo/interest
> > > ___
> > > Interest mailing list
> > > Interest@qt-project.org
> > > https://lists.qt-project.org/listinfo/interest
> >
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] DRM dumb buffer support in Qt 5.12.8

2020-04-16 Thread Ramakanth Kesireddy
Hi,

As per https://doc.qt.io/qt-5/embedded-linux.html, the DRM dumb buffer
support is also available, as of Qt 5.9.

May I know if it is supported in Qt 5.12.8 as well?

Also it is mentioned that as of Qt 5.9, the behavior of EGLFS and LinuxFB
have been synchronized, with regards to the window sizing policy i.e. the
first top-level window is forced to cover the entire screen, with both
platform plugins.

Is the behavior same in Qt 5.12.8 as well?

Best Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Config errors while configuring Qt 5.12.8 LTS on ubuntu

2020-04-21 Thread Ramakanth Kesireddy
Hi,

Below is the configure line for Qt 5.12.8 LTS sources:

./configure -opensource -confirm-license -qt-libjpeg -qt-zlib -qt-libpng
-sql-sqlite -qt-xcb -no-cups -no-opengl -skip qt3d -skip qtactiveqt -skip
qtandroidextras -skip qtcanvas3d -skip qtconnectivity -skip qtdeclarative
-skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip
qtlocation -skip qtmacextras -skip qtmultimedia -skip qtquickcontrols -skip
qtquickcontrols2 -skip qtremoteobjects -skip qtscript -skip qtsensors -skip
qtserialbus -skip qtserialport -skip qtspeech -skip qtwayland -skip
qtwebsockets -skip qtwebview -skip qtwebchannel -skip qtwinextras -skip
qtandroidextras -skip qtx11extras -skip qtxmlpatterns -nomake tools -nomake
tests -nomake examples -no-use-gold-linker -no-iconv -no-mtdev -dbus
-fontconfig -system-freetype -no-libudev -openssl-linked -qt-pcre -v

It gives the errors after the configure output though required dependencies
are installed using apt-get on Ubuntu.

ERROR: Feature 'xcb' was enabled, but the pre-condition 'features.thread &&
features.xkbcommon && libs.xcb' failed.

ERROR: Feature 'system-freetype' was enabled, but the pre-condition
'features.freetype && libs.freetype' failed.

ERROR: Feature 'fontconfig' was enabled, but the pre-condition
'!config.msvc && features.system-freetype && libs.fontconfig' failed.

Let me know if am missing any dependencies in this regard.

Best Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Config errors while configuring Qt 5.12.8 LTS on ubuntu

2020-04-22 Thread Ramakanth Kesireddy
Thanks a lot for your mail..It worked after installing all dependencies
with apt-get build-dep qt5-default and config clean.

However, QtWebegine module is not build.

When qmake(using installed default path) is run on QtWebengine directory,
it throws below error and no config.log is generated.

ubuntu@ubuntu:~/qt-everywhere-src-5.12.8/qtwebengine$ qmake
Cannot read
/home/ubuntu/qt-everywhere-src-5.12.8/qtwebengine/src/core/qtwebenginecore-config.pri:
No such file or directory
Project ERROR: Could not find feature webengine-v8-snapshot-support.

Any suggestions?

Best Regards,
Ramakanth

On Wed, Apr 22, 2020 at 8:52 PM Thiago Macieira 
wrote:

> On Tuesday, 21 April 2020 10:29:19 PDT Ramakanth Kesireddy wrote:
> > ERROR: Feature 'xcb' was enabled, but the pre-condition 'features.thread
> &&
> > features.xkbcommon && libs.xcb' failed.
> >
> > ERROR: Feature 'system-freetype' was enabled, but the pre-condition
> > 'features.freetype && libs.freetype' failed.
> >
> > ERROR: Feature 'fontconfig' was enabled, but the pre-condition
> > '!config.msvc && features.system-freetype && libs.fontconfig' failed.
> >
> > Let me know if am missing any dependencies in this regard.
>
> You're missing xkbcommon, freetype, at least, possibly xcb and fontconfig
> too.
>
> xkbcommon >= 0.5.0
> freetype >= 2.2
> xcb >= 1.11
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-04-23 Thread Ramakanth Kesireddy
Hi,

I downloaded the Qt Webkit sources from
http://download.qt.io/snapshots/ci/qtwebkit/5.212/latest/src/submodules/
qtwebkit-opensource-src-5.212.tar.xz
<http://download.qt.io/snapshots/ci/qtwebkit/5.212/latest/src/submodules/qtwebkit-opensource-src-5.212.tar.xz>
as part of building Qt 5.12.8 sources assuming it shall be compatible.
However, it didnot build QtWebkit module.

Even building as a separate module, qmake is not successful.

ubuntu@ubuntu:~/qt-everywhere-src-5.12.8/qtwebkit$ qmake
Cannot read
/home/ubuntu/qt-everywhere-src-5.12.8/qtwebkit/release/Source/WebKit/qt_lib_webkit.pri:
No such file or directory
Cannot read
/home/ubuntu/qt-everywhere-src-5.12.8/qtwebkit/release/Source/WebKit/qt_lib_webkitwidgets.pri:
No such file or directory

Could you please let me know compatible QtWebkit sources for Qt 5.12.8 LTS
sources?

Best Regards,
Ramakanth



On Thu, 20 Feb, 2020, 19:00 Konstantin Tokarev,  wrote:

>
>
> 20.02.2020, 08:03, "Ramakanth Kesireddy" :
> > Ok let me try with 5.212..Whether it is compatible with Qt sources
> starting from 5.6 till the latest 5.12.7 and 5.14?
>
> Yes it is.
> You can also take ready to use binaries compatible with official Qt 5.13
> from
> http://download.qt.io/snapshots/ci/qtwebkit/5.212/1571922148/qtwebkit/
>
> >
> > On Wed, 19 Feb, 2020, 22:36 Konstantin Tokarev, 
> wrote:
> >> 19.02.2020, 10:53, "Thiago Macieira" :
> >>> On Tuesday, 18 February 2020 16:29:13 PST Sze Howe Koh wrote:
> >>>>  On Wed, 19 Feb 2020 at 08:05, Thiago Macieira <
> thiago.macie...@intel.com>
> >>>
> >>> wrote:
> >>>>  > There's no good solution for using qtwebkit. You have to stop
> using it.
> >>>>
> >>>>  I was under the impression that Konstantin Tokarev was keeping the Qt
> >>>>  WebKit sources up-to-date with upstream WebKit, even though it's not
> >>>>  part of the official Qt releases?
> >>>
> >>> Such impression existed and Konstantin did update the release. There
> are
> >>> certainly some commits in the repository. But looking at the activity
> for the
> >>> past year, almost everything seems to be related to keeping the
> buildsystem
> >>> working. I can't find any commit referring to a fixing a security
> issue.
> >>
> >> That's correct, most of the work in last year is targeted to a new
> branch with updated
> >> WebKit. However, 5.212 serves its job well, it's compatible with
> current Qt and is at
> >> least is strictly better than 5.9 in terms of bugs, features and
> security. Of course, it
> >> should be used with caution on untrusted content, because of possible
> security issues.
> >>
> >>>
> >>> In the end, the 5.212 branch base itself is too old. qtwebkit would
> need a new
> >>> base branch off webkit to be a reasonable target and that has not
> happened.
> >>>
> >>> Please, let it die.
> >>>
> >>> --
> >>> Thiago Macieira - thiago.macieira (AT) intel.com
> >>>   Software Architect - Intel System Software Products
> >>>
> >>> ___
> >>> Interest mailing list
> >>> Interest@qt-project.org
> >>> https://lists.qt-project.org/listinfo/interest
> >>
> >> --
> >> Regards,
> >> Konstantin
> >>
> >> ___
> >> Interest mailing list
> >> Interest@qt-project.org
> >> https://lists.qt-project.org/listinfo/interest
>
>
> --
> Regards,
> Konstantin
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Config errors while configuring Qt 5.12.8 LTS on ubuntu

2020-04-23 Thread Ramakanth Kesireddy
Hi,

Tried to build QtWebengine as a separate module after extracting Qt
webengine sources(qtwebengine-everywhere-src-5.12.8.tar) did configure
successfully.

But make throws the error Project ERROR: Unknown module(s) in QT:
qml-private quick-private.

Let me know if QtQuick is required to build QtWebengine or any change
required in configure line to resolve the error.

Best Regards,

Ramakanth

On Wed, Apr 22, 2020 at 10:55 PM Ramakanth Kesireddy 
wrote:

> Thanks a lot for your mail..It worked after installing all dependencies
> with apt-get build-dep qt5-default and config clean.
>
> However, QtWebegine module is not build.
>
> When qmake(using installed default path) is run on QtWebengine directory,
> it throws below error and no config.log is generated.
>
> ubuntu@ubuntu:~/qt-everywhere-src-5.12.8/qtwebengine$ qmake
> Cannot read
> /home/ubuntu/qt-everywhere-src-5.12.8/qtwebengine/src/core/qtwebenginecore-config.pri:
> No such file or directory
> Project ERROR: Could not find feature webengine-v8-snapshot-support.
>
> Any suggestions?
>
> Best Regards,
> Ramakanth
>
> On Wed, Apr 22, 2020 at 8:52 PM Thiago Macieira 
> wrote:
>
>> On Tuesday, 21 April 2020 10:29:19 PDT Ramakanth Kesireddy wrote:
>> > ERROR: Feature 'xcb' was enabled, but the pre-condition
>> 'features.thread &&
>> > features.xkbcommon && libs.xcb' failed.
>> >
>> > ERROR: Feature 'system-freetype' was enabled, but the pre-condition
>> > 'features.freetype && libs.freetype' failed.
>> >
>> > ERROR: Feature 'fontconfig' was enabled, but the pre-condition
>> > '!config.msvc && features.system-freetype && libs.fontconfig' failed.
>> >
>> > Let me know if am missing any dependencies in this regard.
>>
>> You're missing xkbcommon, freetype, at least, possibly xcb and fontconfig
>> too.
>>
>> xkbcommon >= 0.5.0
>> freetype >= 2.2
>> xcb >= 1.11
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>>   Software Architect - Intel System Software Products
>>
>>
>>
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> https://lists.qt-project.org/listinfo/interest
>>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Config errors while configuring Qt 5.12.8 LTS on ubuntu

2020-04-24 Thread Ramakanth Kesireddy
After removing the skipped qtdeclarative module in the configure line,
QtWebengine is built successfully.
Any suggestions on making QtWebkit 5.212 module built along with Qt 5.12.8
sources as we need to keep QtWebkit module before porting to QtWebengine?

Thanks and Regards,
Ramakanth

On Thu, 23 Apr, 2020, 15:13 Ramakanth Kesireddy, 
wrote:

> Hi,
>
> Tried to build QtWebengine as a separate module after extracting Qt
> webengine sources(qtwebengine-everywhere-src-5.12.8.tar) did configure
> successfully.
>
> But make throws the error Project ERROR: Unknown module(s) in QT:
> qml-private quick-private.
>
> Let me know if QtQuick is required to build QtWebengine or any change
> required in configure line to resolve the error.
>
> Best Regards,
>
> Ramakanth
>
> On Wed, Apr 22, 2020 at 10:55 PM Ramakanth Kesireddy 
> wrote:
>
>> Thanks a lot for your mail..It worked after installing all dependencies
>> with apt-get build-dep qt5-default and config clean.
>>
>> However, QtWebegine module is not build.
>>
>> When qmake(using installed default path) is run on QtWebengine directory,
>> it throws below error and no config.log is generated.
>>
>> ubuntu@ubuntu:~/qt-everywhere-src-5.12.8/qtwebengine$ qmake
>> Cannot read
>> /home/ubuntu/qt-everywhere-src-5.12.8/qtwebengine/src/core/qtwebenginecore-config.pri:
>> No such file or directory
>> Project ERROR: Could not find feature webengine-v8-snapshot-support.
>>
>> Any suggestions?
>>
>> Best Regards,
>> Ramakanth
>>
>> On Wed, Apr 22, 2020 at 8:52 PM Thiago Macieira <
>> thiago.macie...@intel.com> wrote:
>>
>>> On Tuesday, 21 April 2020 10:29:19 PDT Ramakanth Kesireddy wrote:
>>> > ERROR: Feature 'xcb' was enabled, but the pre-condition
>>> 'features.thread &&
>>> > features.xkbcommon && libs.xcb' failed.
>>> >
>>> > ERROR: Feature 'system-freetype' was enabled, but the pre-condition
>>> > 'features.freetype && libs.freetype' failed.
>>> >
>>> > ERROR: Feature 'fontconfig' was enabled, but the pre-condition
>>> > '!config.msvc && features.system-freetype && libs.fontconfig' failed.
>>> >
>>> > Let me know if am missing any dependencies in this regard.
>>>
>>> You're missing xkbcommon, freetype, at least, possibly xcb and
>>> fontconfig too.
>>>
>>> xkbcommon >= 0.5.0
>>> freetype >= 2.2
>>> xcb >= 1.11
>>>
>>> --
>>> Thiago Macieira - thiago.macieira (AT) intel.com
>>>   Software Architect - Intel System Software Products
>>>
>>>
>>>
>>> ___
>>> Interest mailing list
>>> Interest@qt-project.org
>>> https://lists.qt-project.org/listinfo/interest
>>>
>>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebkit error while building Qt5.12.7 sources

2020-04-26 Thread Ramakanth Kesireddy
Hi,

QtWebkit had been built before with Qt 5.6.3 sources after downloading the
compatible sources along with Qt sources and installed successfully.
However, QtWebkit is not being built with Qt 5.12.8 sources either with
QtWebkit 5.9 or 5.212 branch latest sources.

When I tried to build QtWebkit as a separate module within Qt 5,12.8
sources , it throws below error:-

CMake Error at
/home/ubuntu/qt-everywhere-src-5.12.8/qtbase/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15
(message):
  The imported target "Qt5::Core" references the file


 
"/home/ubuntu/qt-everywhere-src-5.12.8/qtbase/../../../home/ubuntu/qt-everywhere-src-5.12.8/qtbase//mkspecs/linux-g++"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained


 
"/home/ubuntu/qt-everywhere-src-5.12.8/qtbase/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"

  but not all the files it references.

Call Stack (most recent call first):

/home/ubuntu/qt-everywhere-src-5.12.8/qtbase/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:50
(_qt5_Core_check_file_exists)

/home/ubuntu/qt-everywhere-src-5.12.8/qtbase/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:174
(include)

/home/ubuntu/qt-everywhere-src-5.12.8/qtbase/lib/cmake/Qt5/Qt5Config.cmake:28
(find_package)
  Source/cmake/OptionsQt.cmake:169 (find_package)
  Source/cmake/WebKitCommon.cmake:50 (include)
  CMakeLists.txt:137 (include)

Please let me know if am missing something obvious or any dependency in
this regard

Best Regards,
Ramakanth

-- Configuring incomplete, errors occurred!
See also
"/home/ubuntu/qt-everywhere-src-5.12.8/qtwebkit/release/CMakeFiles/CMakeOutput.log".
Project ERROR: Running cmake failed
Makefile:222: recipe for target
'sub-Tools-qmake-projects-run_cmake-pro-make_first-ordered' failed
make: *** [sub-Tools-qmake-projects-run_cmake-pro-make_first-ordered] Error
3



On Thu, Apr 23, 2020 at 3:10 PM Ramakanth Kesireddy 
wrote:

> Hi,
>
> I downloaded the Qt Webkit sources from
> http://download.qt.io/snapshots/ci/qtwebkit/5.212/latest/src/submodules/
> qtwebkit-opensource-src-5.212.tar.xz
> <http://download.qt.io/snapshots/ci/qtwebkit/5.212/latest/src/submodules/qtwebkit-opensource-src-5.212.tar.xz>
> as part of building Qt 5.12.8 sources assuming it shall be compatible.
> However, it didnot build QtWebkit module.
>
> Even building as a separate module, qmake is not successful.
>
> ubuntu@ubuntu:~/qt-everywhere-src-5.12.8/qtwebkit$ qmake
> Cannot read
> /home/ubuntu/qt-everywhere-src-5.12.8/qtwebkit/release/Source/WebKit/qt_lib_webkit.pri:
> No such file or directory
> Cannot read
> /home/ubuntu/qt-everywhere-src-5.12.8/qtwebkit/release/Source/WebKit/qt_lib_webkitwidgets.pri:
> No such file or directory
>
> Could you please let me know compatible QtWebkit sources for Qt 5.12.8 LTS
> sources?
>
> Best Regards,
> Ramakanth
>
>
>
> On Thu, 20 Feb, 2020, 19:00 Konstantin Tokarev,  wrote:
>
>>
>>
>> 20.02.2020, 08:03, "Ramakanth Kesireddy" :
>> > Ok let me try with 5.212..Whether it is compatible with Qt sources
>> starting from 5.6 till the latest 5.12.7 and 5.14?
>>
>> Yes it is.
>> You can also take ready to use binaries compatible with official Qt 5.13
>> from
>> http://download.qt.io/snapshots/ci/qtwebkit/5.212/1571922148/qtwebkit/
>>
>> >
>> > On Wed, 19 Feb, 2020, 22:36 Konstantin Tokarev, 
>> wrote:
>> >> 19.02.2020, 10:53, "Thiago Macieira" :
>> >>> On Tuesday, 18 February 2020 16:29:13 PST Sze Howe Koh wrote:
>> >>>>  On Wed, 19 Feb 2020 at 08:05, Thiago Macieira <
>> thiago.macie...@intel.com>
>> >>>
>> >>> wrote:
>> >>>>  > There's no good solution for using qtwebkit. You have to stop
>> using it.
>> >>>>
>> >>>>  I was under the impression that Konstantin Tokarev was keeping the
>> Qt
>> >>>>  WebKit sources up-to-date with upstream WebKit, even though it's not
>> >>>>  part of the official Qt releases?
>> >>>
>> >>> Such impression existed and Konstantin did update the release. There
>> are
>> >>> certainly some commits in the repository. But looking at the activity
>> for the
>> >>> past year, almost everything seems to be related to keeping the
>> buildsystem
>> >>> working. I can't find any commit referring to a fixing a security
>> issue.
>> >>
>> >> That's correct, most of the work in last year is targeted to a new
>

[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 '-no-webengine-v8-snapshot'
QtWebEngine will not be built.

Even configuring with -no-webengine-v8-snapshot doesnot builds QtWebengine
module.

Configure line:

./configure -v -opensource -confirm-license -make libs -release -shared
-sysroot
/home/ubuntu/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi
-no-gcc-sysroot -device arm-linux-gnueabihf-g++ -device-option
CROSS_COMPILE=/home/ubuntu/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-
-reduce-exports -optimize-size -no-gtk -force-pkg-config
-no-use-gold-linker -qt-libjpeg -qt-zlib -qt-libpng -sql-sqlite -no-xcb
-no-cups -no-opengl -no-qml-debug -skip qt3d -skip qtactiveqt -skip
qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip
qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip
qtimageformats -skip qtnetworkauth -skip qtlocation -skip qtmacextras -skip
qtpurchasing -skip qtmultimedia -skip qtquickcontrols -skip
qtquickcontrols2 -skip qtremoteobjects -skip qtscript -skip qtscxml -skip
qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttools
-skip qtwayland -skip qtwebsockets -skip qtwebview -skip qtwebchannel -skip
qtwinextras -skip qtandroidextras -skip qtx11extras -skip qtxmlpatterns
-nomake tools -nomake tests -nomake examples -no-compile-examples -no-iconv
-dbus -fontconfig -system-freetype -ssl -qt-pcre -no-pch -recheck-all
-DQT_ARCH_ARM

Appreciate your help in this regard to resolve Qtwebengine build error.

Best Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebengine is not built with v8 snapshot error

2020-05-03 Thread Ramakanth Kesireddy
Thanks for your mail.
Could you please let me know the packages to be installed on Ubuntu
16.04(64 bit) to match the target for building the snapshot?

Best Regards,
Ramakanth

On Sun, May 3, 2020 at 12:15 PM Allan Sandfeld Jensen 
wrote:

> On Sonntag, 3. Mai 2020 06:20:22 CEST Ramakanth Kesireddy wrote:
> > ,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 '-no-webengine-v8-snapshot'
> > QtWebEngine will not be built.
> >
> Just install the x86-32bit compiler and tools. We need a host compiler
> that
> matches the target for building the snapshot. Note in 5.15 we can no
> longer
> disable snapshots, and so it is no longer optional (though 5.12 should
> still
> work)
>
>
> > Even configuring with -no-webengine-v8-snapshot doesnot builds
> QtWebengine
> > module.
> >
> > Configure line:
> >
> > ./configure -v -opensource -confirm-license -make libs -release -shared
> > -sysroot
> >
> /home/ubuntu/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/s
> > ysroots/armv7ahf-neon-linux-gnueabi -no-gcc-sysroot -device
> > arm-linux-gnueabihf-g++ -device-option
> >
> CROSS_COMPILE=/home/ubuntu/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/
> > linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-
> > -reduce-exports -optimize-size -no-gtk -force-pkg-config
> > -no-use-gold-linker -qt-libjpeg -qt-zlib -qt-libpng -sql-sqlite -no-xcb
> > -no-cups -no-opengl -no-qml-debug -skip qt3d -skip qtactiveqt -skip
> > qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity
> -skip
> > qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip
> > qtimageformats -skip qtnetworkauth -skip qtlocation -skip qtmacextras
> -skip
> > qtpurchasing -skip qtmultimedia -skip qtquickcontrols -skip
> > qtquickcontrols2 -skip qtremoteobjects -skip qtscript -skip qtscxml -skip
> > qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip
> qttools
> > -skip qtwayland -skip qtwebsockets -skip qtwebview -skip qtwebchannel
> -skip
> > qtwinextras -skip qtandroidextras -skip qtx11extras -skip qtxmlpatterns
> > -nomake tools -nomake tests -nomake examples -no-compile-examples
> -no-iconv
> > -dbus -fontconfig -system-freetype -ssl -qt-pcre -no-pch -recheck-all
> > -DQT_ARCH_ARM
> >
> > Appreciate your help in this regard to resolve Qtwebengine build error.
> >
> Please report the errors you see.
>
> Best regards
> Allan
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebengine is not built with v8 snapshot error

2020-05-03 Thread Ramakanth Kesireddy
I did install all the libraries that compile to 32 bit. However,
QtWebengine module throws below error on cross-compilation:

/home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/7.2.1/../../../../arm-linux-gnueabihf/bin/ld:
cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
Makefile.core_module:84: recipe for target
'../../lib/libQt5WebEngineCore.so.5.12.8' failed
make[4]: *** [../../lib/libQt5WebEngineCore.so.5.12.8] Error 1
make[4]: Leaving directory
'/home/target/qt-everywhere-src-5.12.8/qtwebengine/src/core'
Makefile:124: recipe for target 'sub-core_module-pro-make_first' failed
make[3]: *** [sub-core_module-pro-make_first] Error 2
make[3]: Leaving directory
'/home/target/qt-everywhere-src-5.12.8/qtwebengine/src/core'
Makefile:79: recipe for target 'sub-core-make_first' failed
make[2]: *** [sub-core-make_first] Error 2
make[2]: Leaving directory
'/home/target/qt-everywhere-src-5.12.8/qtwebengine/src'
Makefile:48: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory
'/home/target/qt-everywhere-src-5.12.8/qtwebengine'
Makefile:153: recipe for target 'module-qtwebengine-make_first' failed
make: *** [module-qtwebengine-make_first] Error 2

Configure line:
./configure -v -opensource -confirm-license -make libs -release -shared
-sysroot
/home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi
-no-gcc-sysroot -device arm-linux-gnueabihf-g++ -device-option
CROSS_COMPILE=/home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-
-reduce-exports -optimize-size -no-gtk -force-pkg-config
-no-use-gold-linker -qt-libjpeg -qt-zlib -qt-libpng -sql-sqlite -no-xcb
-no-cups -no-opengl -no-qml-debug -skip qt3d -skip qtactiveqt -skip
qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip
qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip
qtimageformats -skip qtnetworkauth -skip qtlocation -skip qtmacextras -skip
qtpurchasing -skip qtmultimedia -skip qtquickcontrols -skip
qtquickcontrols2 -skip qtremoteobjects -skip qtscript -skip qtscxml -skip
qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttools
-skip qtwayland -skip qtwebsockets -skip qtwebview -skip qtwebchannel -skip
qtwinextras -skip qtandroidextras -skip qtx11extras -skip qtxmlpatterns
-nomake tools -nomake tests -nomake examples -no-compile-examples -no-iconv
-dbus -fontconfig -system-freetype -ssl -qt-pcre -no-pch -recheck-all
-DQT_ARCH_ARM

Appreciate for any help in this regard.

Best Regards,
Ramakanth

On Sun, May 3, 2020 at 8:36 PM Allan Sandfeld Jensen 
wrote:

> I am not sure, I think gcc-7-base:i386 or something like that, check the
> config.log and how the test failed. You basically just need a compiler
> that
> compile to 32bit, and the most basic libraries (libc, libstdc++) for 32bit
> as
> well.
>
> 'Allan
>
> On Sonntag, 3. Mai 2020 11:41:20 CEST you wrote:
> > Thanks for your mail.
> > Could you please let me know the packages to be installed on Ubuntu
> > 16.04(64 bit) to match the target for building the snapshot?
> >
> > Best Regards,
> > Ramakanth
> >
> > On Sun, May 3, 2020 at 12:15 PM Allan Sandfeld Jensen 
> >
> > wrote:
> > > On Sonntag, 3. Mai 2020 06:20:22 CEST Ramakanth Kesireddy wrote:
> > > > ,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 '-no-webengine-v8-snapshot'
> > > >
> > > > QtWebEngine will not be built.
> > >
> > > Just install the x86-32bit compiler and tools. We need a host compiler
> > > that
> > > matches the target for building the snapshot. Note in 5.15 we can no
> > > longer
> > > disable snapshots, and so it is no longer optional (though 5.12 should
> > > still
> > > work)
> > >
> > > > Even configuring with -no-webengine-v8-snapshot doesnot builds
> > >
> > > QtWebengine
> > >
> > > > module.
> > > >
> > > > Configure line:
> > > >
> > > > ./configure

Re: [Interest] QtWebengine is not built with v8 snapshot error

2020-05-03 Thread Ramakanth Kesireddy
The cross compiled crt1.o is found
in 
/home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/crt1.o.

But still it throws it cannot find the same though sysroot is added in the
configure line -sysroot
/home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi.
Has it got to do with -no-gcc-sysroot option in the configure line?

Best Regards,
Ramakanth

On Mon, May 4, 2020 at 9:00 AM Thiago Macieira 
wrote:

> On Sunday, 3 May 2020 19:20:04 PDT Ramakanth Kesireddy wrote:
> > I did install all the libraries that compile to 32 bit. However,
> > QtWebengine module throws below error on cross-compilation:
>
> > ./../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: No such file or
> > directory
> > collect2: error: ld returned 1 exit status
>
> You did not install all the necessary files to compile 32-bit.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebengine is not built with v8 snapshot error

2020-05-03 Thread Ramakanth Kesireddy
Installed multi-lib package as well but not sure why it is unable to find
the crt1.o

On Mon, 4 May, 2020, 09:36 Ramakanth Kesireddy,  wrote:

> The cross compiled crt1.o is found
> in 
> /home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/crt1.o.
>
> But still it throws it cannot find the same though sysroot is added in the
> configure line -sysroot
> /home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi.
> Has it got to do with -no-gcc-sysroot option in the configure line?
>
> Best Regards,
> Ramakanth
>
> On Mon, May 4, 2020 at 9:00 AM Thiago Macieira 
> wrote:
>
>> On Sunday, 3 May 2020 19:20:04 PDT Ramakanth Kesireddy wrote:
>> > I did install all the libraries that compile to 32 bit. However,
>> > QtWebengine module throws below error on cross-compilation:
>>
>> > ./../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: No such file or
>> > directory
>> > collect2: error: ld returned 1 exit status
>>
>> You did not install all the necessary files to compile 32-bit.
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>>   Software Architect - Intel System Software Products
>>
>>
>>
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> https://lists.qt-project.org/listinfo/interest
>>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebengine is not built with v8 snapshot error

2020-05-04 Thread Ramakanth Kesireddy
It yielded host 32 binaries like below:-

target@ubuntu:~/qt-everywhere-src-5.12.8$ find /usr/ -name crti*
/usr/libx32/crti.o
/usr/lib32/crti.o
/usr/lib/x86_64-linux-gnu/crti.o

On Mon, May 4, 2020 at 11:57 AM Thiago Macieira 
wrote:

> On Sunday, 3 May 2020 21:06:30 PDT Ramakanth Kesireddy wrote:
> > The cross compiled crt1.o is found
> > in
> >
> /home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/
> > sysroots/armv7ahf-neon-linux-gnueabi/usr/lib/crt1.o.
>
> How about the one to produce host 32-bit binaries?
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebengine is not built with v8 snapshot error

2020-05-04 Thread Ramakanth Kesireddy
sudo apt-get install gcc-multilib
sudo apt-get install g++-multilib lib32stdc++6-5-dbg libx32stdc++6-5-dbg

In the page https://github.com/meta-qt5/meta-qt5, it mentions to
install lib32-gcc-libs
lib32-glibc for building v8 snapshot?
Do we need to install them if yocto meta-qt5 recipes pick sources from the
same official Qt https://download.qt.io/archive/qt/5.12/5.12.8/single/

Also in the TI sdk provided and tool chain, do we need to set the
PKG_CONFIG_PATH as the default installation(Qt 5.9) is successful along
with libs in cross-compiler path
though sysroot is being passed to the configure line?

Best Regards,
Ramakanth


On Mon, May 4, 2020 at 8:06 PM Thiago Macieira 
wrote:

> On Monday, 4 May 2020 00:22:40 PDT Ramakanth Kesireddy wrote:
> > /usr/libx32/crti.o
> > /usr/lib32/crti.o
> > /usr/lib/x86_64-linux-gnu/crti.o
>
> How did you instal the first two? Their paths look very different from the
> last one.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Qt 5.12.8 32 bit libraries configure options on Ubuntu 16.04

2020-05-04 Thread Ramakanth Kesireddy
Hi,

Can anyone let me know the configure options to generate 32 bit Qt 5.12.8
libraries on Ubuntu 16.04 like the below equivalent configure options in Qt?

 for  ./configure "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"

Do we need to modify the QMAKE_CFLAGS or there are any configure options
while configuring Qt 5.12.8 sources to generate 32 bit Qt libs?

Best Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt 5.12.8 32 bit libraries configure options on Ubuntu 16.04

2020-05-05 Thread Ramakanth Kesireddy
Hi,

While configuring with -platform linux-g++-32, it fails the tests with
below errors in the configure output:

ERROR: Feature 'ssl' was enabled, but the pre-condition 'config.winrt ||
features.securetransport || features.openssl' failed.

ERROR: Feature 'xcb' was enabled, but the pre-condition 'features.thread &&
features.xkbcommon && libs.xcb' failed.

ERROR: Feature 'system-freetype' was enabled, but the pre-condition
'features.freetype && libs.freetype' failed.

ERROR: Feature 'fontconfig' was enabled, but the pre-condition
'!config.msvc && features.system-freetype && libs.fontconfig' failed.

Since the app is compiled with -m32, the corresponding Qt libs need to be
compiled with -m32 inorder to generate the appropriate code on Ubuntu 16.04
VM
so as to replicate the same tests being performed on 32 bit target.

Please let me know if we need to install the 32 bit library versions to
resolve the above errors.

Best Regards,
Ramakanth


On Tue, May 5, 2020 at 12:30 AM Allan Sandfeld Jensen 
wrote:

> On Montag, 4. Mai 2020 18:31:19 CEST Ramakanth Kesireddy wrote:
> > Hi,
> >
> > Can anyone let me know the configure options to generate 32 bit Qt 5.12.8
> > libraries on Ubuntu 16.04 like the below equivalent configure options in
> Qt?
> >
> >  for  ./configure "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
> >
> > Do we need to modify the QMAKE_CFLAGS or there are any configure options
> > while configuring Qt 5.12.8 sources to generate 32 bit Qt libs?
> >
> Just configure with -platform linux-g++-32
>
> Why are you making 32-bit libraries now though?
>
> 'Allan
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt 5.12.8 32 bit libraries configure options on Ubuntu 16.04

2020-05-05 Thread Ramakanth Kesireddy
It doesnot recognize -spec linux-g++-32 . Am I missing something?

Best Regards,
Ramakanth

On Tue, May 5, 2020 at 12:36 AM Thiago Macieira 
wrote:

> On Monday, 4 May 2020 09:31:19 PDT Ramakanth Kesireddy wrote:
> > Hi,
> >
> > Can anyone let me know the configure options to generate 32 bit Qt 5.12.8
> > libraries on Ubuntu 16.04 like the below equivalent configure options in
> Qt?
> >
> >  for  ./configure "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
> >
> > Do we need to modify the QMAKE_CFLAGS or there are any configure options
> > while configuring Qt 5.12.8 sources to generate 32 bit Qt libs?
>
> configure -spec linux-g++-32
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWebengine is not built with v8 snapshot error

2020-05-05 Thread Ramakanth Kesireddy
Thanks a lot.. It installed QtWebEngine(including QtWebEngineCore and
QTWebEngineWidgets) on the target.
Had to install additional packages lib32ncurses5
lib32z1 linux-libc-dev:i386 on Ubuntu host.

Looks like issue with configure line where -no-gcc-sysroot had been
mentioned before.
So final configure line looks like below:

./configure -v -opensource -confirm-license -make libs -release -shared
-sysroot
/home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi
-device arm-linux-gnueabihf-g++ -device-option
CROSS_COMPILE=/home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-
-reduce-exports -optimize-size -no-gtk -no-use-gold-linker -qt-libjpeg
-qt-zlib -qt-libpng -sql-sqlite -no-xcb -no-cups -no-opengl -no-qml-debug
-skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip
qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad
-skip qtgraphicaleffects -skip qtimageformats -skip qtnetworkauth -skip
qtlocation -skip qtmacextras -skip qtpurchasing -skip qtmultimedia -skip
qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscript
-skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip
qtspeech -skip qttools -skip qtwayland -skip qtwebsockets -skip qtwebview
-skip qtwebchannel -skip qtwinextras -skip qtandroidextras -skip
qtx11extras -skip qtxmlpatterns -nomake tools -nomake tests -nomake
examples -no-compile-examples -no-iconv -dbus -fontconfig -system-freetype
-ssl -qt-pcre -no-pch -recheck-all -DQT_ARCH_ARM

A quick couple of questions:

Can anyone let me know if the dependent skia graphics library is also built
along with QtWebengine(including QtWebEngineCore and QtWebengineWidgets)
sources?

Since there is no opengl es2 on target, Can we make use of QtWebengine
widgets to render html content without opengl( As
https://doc.qt.io/qt-5/qtwebengine-overview.html mentions the Qt WebEngine
Widgets module uses the Qt Quick scene graph to compose the elements of a
web page into one view) or is it mandatory to have opengl to use
QtWebEngine module as I need to port from QtWebkitwidgets to
QtWebengineWidgets to setHtml?

Best Regards,
Ramakanth



On Mon, May 4, 2020 at 9:24 PM Ramakanth Kesireddy 
wrote:

> sudo apt-get install gcc-multilib
> sudo apt-get install g++-multilib lib32stdc++6-5-dbg libx32stdc++6-5-dbg
>
> In the page https://github.com/meta-qt5/meta-qt5, it mentions to install 
> lib32-gcc-libs
> lib32-glibc for building v8 snapshot?
> Do we need to install them if yocto meta-qt5 recipes pick sources from the
> same official Qt https://download.qt.io/archive/qt/5.12/5.12.8/single/
>
> Also in the TI sdk provided and tool chain, do we need to set the
> PKG_CONFIG_PATH as the default installation(Qt 5.9) is successful along
> with libs in cross-compiler path
> though sysroot is being passed to the configure line?
>
> Best Regards,
> Ramakanth
>
>
> On Mon, May 4, 2020 at 8:06 PM Thiago Macieira 
> wrote:
>
>> On Monday, 4 May 2020 00:22:40 PDT Ramakanth Kesireddy wrote:
>> > /usr/libx32/crti.o
>> > /usr/lib32/crti.o
>> > /usr/lib/x86_64-linux-gnu/crti.o
>>
>> How did you instal the first two? Their paths look very different from
>> the
>> last one.
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>>   Software Architect - Intel System Software Products
>>
>>
>>
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> https://lists.qt-project.org/listinfo/interest
>>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Wayland QPA in Qt 5.12.8 LTS

2020-05-11 Thread Ramakanth Kesireddy
Hi,

Is there any option to use Wayland as QPA while configuring Qt 5.12.8 LTS
or it needs to be configured with EGLFS building Qt Wayland module with
prior requirement of OpenGL ES 2.x and above for handling multi-process
usecases?

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt Creator licensing for companies with Qt Commercial developers

2020-05-11 Thread Ramakanth Kesireddy
Hi Tuukka,


Does it mean that if we use Qt 5.12.8 LTS commercial license, it is
permitted to use Open source components like third party Qt WebKit  module
in conjunction with commercial license?

Could you please let me know in this regard?

Thanks and Regards,
Ramakanth

On Mon, 11 May, 2020, 18:01 Tuukka Turunen,  wrote:

> Hi,
>
> We have now clarified the license agreement to allow use of independent
> open-source items in conjunction with commercially license Qt.
>
> The updated agreement (version 4.2.3) states:
>
> "Permitted Software" shall mean any (i) open source software (excluding
> Open Source Qt) that is a) generally available for public in source code
> form without additional cost under any of the licenses approved by Open
> Source Initiative as listed on  https://opensource.org/licenses; and (b)
> is in no way, directly or indirectly, developed by or for or otherwise
> related to or in the interest of the Licensee or its Affiliates, or (ii)
> software The Qt Company has made available via its Qt Marketplace online
> distribution channel.
>
> Updated agreement can be found from https://www.qt.io/terms-conditions as
> well as from the Qt online installer.
>
> This clarification should clear the usage of independent open-source tools
> and libraries containing or developed with Qt. Mixing of open-source Qt
> framework and tools with commercially licensed Qt remains forbidden, just
> like before.
>
> Yours,
>
> Tuukka
>
> On 2.4.2020, 21.17, "Bernhard Lindner" 
> wrote:
>
> Hi Tuukaa!
>
> > TTT: This part is difficult to generally answer, as it depends how
> these are used and
> > what these are used for. Intention of the mixing restriction is to
> prevent cases where
> > someone (e.g. a company) uses the open-source version of Qt in cases
> where they should
> > use commercial version. Typical example of this is a case where only
> part of the
> > developers using Qt together would have a commercial license. We are
> aware of the fact
> > that the way how it is written is such that it might extend further
> than the primary
> > intention. This is a topic that we do not currently have a proper
> solution for.
>
> Then you should find a solution. This puts customers / developers /
> users in the situation
> that they depend on the goodwill of a for-profit corporation. However,
> there is no good
> will in a profit-making business.
>
> It must be perfectly clear that development projects are not affected
> by the fundamental
> use of third-party Qt-based applications.
>
> I probably will not use Qt for new projects and I cannot recommend it
> (but I have to add
> that this decision is also driven by the fact that the technical
> priorities in the Qt
> project have not been in line with my priorities for a few years) .
>
> --
> Best Regards,
> Bernhard Lindner
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Wayland QPA in Qt 5.12.8 LTS

2020-05-11 Thread Ramakanth Kesireddy
Yes I want to set Wayland as the default QPA backend.

Well, I didn't set any QPA while configuring Qt and it selected LinuxFB as
the default.

Do we need to set QT_QPA_platform explicitly?

Best Regards,
Ramakanth

On Mon, 11 May, 2020, 20:50 Thiago Macieria 
wrote:

> On Monday, 11 May 2020 04:08:16 PDT Ramakanth Kesireddy wrote:
> > Hi,
> >
> > Is there any option to use Wayland as QPA while configuring Qt 5.12.8 LTS
> > or it needs to be configured with EGLFS building Qt Wayland module with
> > prior requirement of OpenGL ES 2.x and above for handling multi-process
> > usecases?
>
> Sorry, the question is unclear. Do you want to set Wayland as the default
> QPA
> backend instead of something else?
>
> Can you confirm your applications are working when setting the QPA backend
> on
> the environment (QT_QPA_PLATFORM)? What did you set it to?
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Wayland QPA in Qt 5.12.8 LTS

2020-05-14 Thread Ramakanth Kesireddy
LinuxFB as QPA backend works well with our applications.

However, there are other processes which use Qt now so that would like to
extend the usecases with Wayland by setting Wayland as QPA if it would
support with TI sdk provided since there could be one QApplication
instance.

Best Regards,
Ramakanth

On Mon, 11 May, 2020, 23:26 Thiago Macieira, 
wrote:

> On Monday, 11 May 2020 09:00:56 PDT Ramakanth Kesireddy wrote:
> > Yes I want to set Wayland as the default QPA backend.
> >
> > Well, I didn't set any QPA while configuring Qt and it selected LinuxFB
> as
> > the default.
> >
> > Do we need to set QT_QPA_platform explicitly?
>
> Before we talk about changing the default, please confirm which QPA
> backend
> makes your applications work. You're trying to solve the wrong problem by
> changing the default if you don't have a working system yet.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Wayland QPA in Qt 5.12.8 LTS

2020-05-17 Thread Ramakanth Kesireddy
Planning to use Weston.
Do I need to pass -qpa Wayland and build the Qtwayland module?

Best Regards,
Ramakanth

On Fri, 15 May, 2020, 00:45 Thiago Macieira, 
wrote:

> On Thursday, 14 May 2020 09:31:35 PDT Ramakanth Kesireddy wrote:
> > LinuxFB as QPA backend works well with our applications.
> >
> > However, there are other processes which use Qt now so that would like to
> > extend the usecases with Wayland by setting Wayland as QPA if it would
> > support with TI sdk provided since there could be one QApplication
> > instance.
>
> What compositor do you plan to use?
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Font width and height in pixels based on language Qt 5.12.8

2020-05-18 Thread Ramakanth Kesireddy
Hi,

Can you let me know if it possible to determine the font text width and
height in pixels using fontmetrics based on language for the fixed button
width?

Basically to fix number of characters for translation ts files in the fixed
button width based on language both for latin and non-latin languages.

Any other suggestions?

Appreciate your help in this regard.

Best Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Wayland QPA in Qt 5.12.8 LTS

2020-05-18 Thread Ramakanth Kesireddy
Ok thanks for your mail.
So while configuring Qt, I neednot specify -qpa wayland right? and the
default one would do along with export QT_QPA_PLATFORM=wayland.

Best Regards,
Ramakanth



On Mon, 18 May, 2020, 21:34 Thiago Macieira, 
wrote:

> On domingo, 17 de maio de 2020 21:00:12 PDT Ramakanth Kesireddy wrote:
> > Planning to use Weston.
> > Do I need to pass -qpa Wayland and build the Qtwayland module?
>
> Ok, so first you start Weston and then your Qt applications should just
> work.
> If necessary, add
>
>   export QT_QPA_PLATFORM=wayland
>
> Yes, you need the qtwayland module compiled.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt 5.12.x LTS

2020-05-19 Thread Ramakanth Kesireddy
Apart from CVE-2020-0569 and CVE-2020-0570, could you please let me know
other security fixes that donot have associated CVE or any other CVEs
backported to Qt 5.12.8?

Thanks and Regards,
Ramakanth

On Mon, 13 Apr, 2020, 17:21 Thiago Macieira, 
wrote:

> On Monday, 13 April 2020 02:57:17 -03 Ramakanth Kesireddy wrote:
> > 2) Does it makes sense to use latest Qt 5.12.8 LTS instead of Qt 5.12.7
> > wrto stable release?
>
> It never makes sense to use something that is not the latest in a given
> LTS
> Series. Use the latest.
>
> > 3) May I know if the recent security bug fixes added to Qt 5.13 and Qt
> 5.14
> > are back ported to Qt 5.12 LTS?
>
> Yes, they've been backported, including other fixes that don't have an
> associated CVE number.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt 5.12.x LTS

2020-05-20 Thread Ramakanth Kesireddy
Ok thanks for the update.

Can you let me know if the mentioned security fixes are available in
earlier LTS releases like Qt 5.6.3?

Best Regards,
Ramakanth

On Wed, 20 May, 2020, 06:42 Thiago Macieira, 
wrote:

> On Tuesday, 19 May 2020 00:08:53 PDT Ramakanth Kesireddy wrote:
> > Apart from CVE-2020-0569 and CVE-2020-0570, could you please let me know
> > other security fixes that donot have associated CVE or any other CVEs
> > backported to Qt 5.12.8?
>
> All known security issues that affected 5.12.7 are fixed in 5.12.8. Issues
> affecting 5.12.8 are in the 5.12 branch in Git and will be in 5.12.9, but
> there's nothing that required a Qt security announcement.
>
> There are security fixes for third-party content bundled inside Qt.
> Remember
> that you must take care of those yourself. Recommendation: always use the
> system libraries (-system-sqlite, for example) and update your system.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Klocwork error in Qt5 concurrentwrapper

2020-05-30 Thread Ramakanth Kesireddy
Hi ,

Below is the Klocwork error thrown while using Qt5 with the application
code:

Void function returns value VOIDRET pointing to the below code in
qtbase/src/concurrent/qtconcurrentfunctionwrappers.h.

template 
inline void operator()(C &c, U &&u) const
{
return c.push_back(u);
}

Could you please let me know if the below singleton class code would
trigger above error and be ignored or not?

QSharedPointer MyClass::getInstance( void )
{

if(m_Sharedptr.isNull() )
{
m_Sharedptr = ( QSharedPointer ) new MyClass();

}
Q_CHECK_PTR( m_Sharedptr.data() );

return m_Sharedptr;
}

Best Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Klocwork error in Qt5 concurrentwrapper

2020-05-31 Thread Ramakanth Kesireddy
Thanks for your mail.

Basically Klocwork categories the severity as error mentioning void
function returns value under CODE VOIDRET pointing to the below function in
qtconcurrentfunctionwrappers.h as the cause of error severity.

Best Regards,
Ramakanth

On Sun, 31 May, 2020, 12:02 Thiago Macieira, 
wrote:

> On Saturday, 30 May 2020 11:03:57 PDT Ramakanth Kesireddy wrote:
> > Void function returns value VOIDRET pointing to the below code in
> > qtbase/src/concurrent/qtconcurrentfunctionwrappers.h.
> >
> > template 
> > inline void operator()(C &c, U &&u) const
> > {
> > return c.push_back(u);
> > }
> >
> > Could you please let me know if the below singleton class code would
> > trigger above error and be ignored or not?
>
> Can you explain what the error is in the first place? Your tool seems to
> be
> complaining that a void function returned the void of another function,
> but
> there should be no harm in that.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Wayland QPA in Qt 5.12.8 LTS

2020-06-18 Thread Ramakanth Kesireddy
Could you please let me know if it is recommended to use Wayland for single
Qt client application using QWidget on embedded board with EGLFS or
hardware accelerated rendering? As we cannot use EGLFS which fallsback to
fbdev with existing QWidget application, does it makes sense to use Wayland
to improve performance?

Best Regards,
Ramakanth

On Mon, 18 May, 2020, 21:34 Thiago Macieira, 
wrote:

> On domingo, 17 de maio de 2020 21:00:12 PDT Ramakanth Kesireddy wrote:
> > Planning to use Weston.
> > Do I need to pass -qpa Wayland and build the Qtwayland module?
>
> Ok, so first you start Weston and then your Qt applications should just
> work.
> If necessary, add
>
>   export QT_QPA_PLATFORM=wayland
>
> Yes, you need the qtwayland module compiled.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Wayland QPA in Qt 5.12.8 LTS

2020-06-24 Thread Ramakanth Kesireddy
Hello Thiago,

Thanks a lot for your quick response. We shall use backend instead of using
wayland compositor.
In one of the programs where we are using Qt 5.6.3 widgets based on kernel
4.14, the DRM driver replaces the fbdev driver on TI AM335x.

As mentioned in  https://doc.qt.io/archives/qt-5.6/embedded-linux.html, DRM
dumb buffer is not supported in Qt 5.6  but only from Qt 5.9.
Does it mean we cannot use LinuxFB as QPA backend using Qt 5.6.3 or
/dev/fb1 could still be used to make use of DRM APIs for rendering?

If so, there are two options as QPA backends in terms of eglfs and
DirectFB. But in case of Qt Widgets using eglfs as QPA backend, it falls
back to fbdev being deprecated(/dev/fb0 legacy systems)
as there is no attribute to set to use eglfs or OpenGL using Qt
Widgets,right?

Please let me know if we need to enable any kernel config options to make
use of eglfs and DirectFB build using Yocto even if we configure Qt 5.6.3
with the QPA?

Best Regards,
Ramakanth

On Fri, 19 Jun, 2020, 21:55 Thiago Macieira, 
wrote:

> On Thursday, 18 June 2020 22:13:07 PDT Ramakanth Kesireddy wrote:
> > Could you please let me know if it is recommended to use Wayland for
> single
> > Qt client application using QWidget on embedded board with EGLFS or
> > hardware accelerated rendering? As we cannot use EGLFS which fallsback to
> > fbdev with existing QWidget application, does it makes sense to use
> Wayland
> > to improve performance?
>
> In a Wayland system, you must have:
>  - exactly one compositor (which doesn't use Wayland)
>  - zero or more applications using Wayland
>
> But that only makes sense if you have two or more. If you have only one,
> there's no need to launch the compositor to composite that single
> application's output. Just have the application output directly to
> whatever
> the compositor was using as a backend.
>
> Which is also the exception: when the backend of the compositor is not
> something directly supported by Qt.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Qt 5.x configure line prefix

2020-06-28 Thread Ramakanth Kesireddy
Hi,

Can anyone let me know if it is recommended to use -prefix /usr or the
default in the configure line where it gets installed in /usr/local/Qt5.x?

As the font algorithm using font config checks the available fonts in
/usr/lib/fonts, does it makes sense to configure Qt 5.x with prefix /usr?

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Gold linker configuration in Qt 5

2020-07-02 Thread Ramakanth Kesireddy
Hi,

Is it recommended to use gold linker or system linker with
-no-use-goldlinker while configuring Qt5.6.3 and above?

As per my understanding, gold linker should provide faster linking and use
less memory than the traditional linker.

Please let me know your thoughts in this regard.

Best Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Gold linker configuration in Qt 5

2020-07-02 Thread Ramakanth Kesireddy
Ok Thanks for your details.

Is there any option in Qt5 configure line to make use of llvm ldd linking?

Best Regards,
Ramakanth
On Thu, 2 Jul, 2020, 15:26 Sérgio Martins,  wrote:

> On 2020-07-02 10:29, Ramakanth Kesireddy wrote:
> > Hi,
> >
> > Is it recommended to use gold linker or system linker with
> > -no-use-goldlinker while configuring Qt5.6.3 and above?
> >
> > As per my understanding, gold linker should provide faster linking and
> > use
> > less memory than the traditional linker.
> >
> > Please let me know your thoughts in this regard.
>
> I did a quick test a while back, not sure which versions I tested, but
> FWIW:
>
> Linking Qt5Widgets:
>gnu ld: 5 seconds
>gold: 3 seconds
>gold --threads: 1.6 seconds # Requires compilation with
> --enable-threads
>llvm ldd: 0.7 seconds # Threads enabled by default in newer llvm
>
> ldd was the fastest
>
>
> Regards,
> --
> Sérgio Martins | sergio.mart...@kdab.com | Senior Software Engineer
> Klarälvdalens Datakonsult AB, a KDAB Group company
> Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
> KDAB - The Qt, C++ and OpenGL Experts
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Disconnect QObject signal/slot in Qt5

2020-07-02 Thread Ramakanth Kesireddy
Hi,

As we had to disconnect QObject explicitly in Qt 4.8 since disconnectNotify
() is not called for graceful cleanup, Is it recommended to remove all
disconnect of QObject signals/slots associated or ok to retain since
disconnectNotify is invoked automatically in Qt5?

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Qt5 fontconfig default font directory

2020-07-02 Thread Ramakanth Kesireddy
Hi,

Qt5 configured with font config default font directory set to
/usr/share/fonts through fontconfig Yocto recipe.

Do we need to copy the custom fonts in /usr/lib/fonts and add
/usr/lib/fonts as a font config directory by overriding the font config
Yocto recipe or fontconfig could locate the matching fonts through font
algorithm even if custom fonts are available in /usr/lib/fonts?

Is there any preference to have custom fonts in /usr/lib/fonts or
/usr/share/fonts location?

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] LinuxFB rotation configuration

2020-07-06 Thread Ramakanth Kesireddy
Hi,

As there is an environment variable QT_QPA_EGLFS_ROTATION to specify the
rotation applied to software rendered content in QWidget based applications.

Can you let me know if we have similar environment variable for LinuxFB to
rotate Qt5 widget applications?

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] QtWidget examples not being run

2020-07-07 Thread Ramakanth Kesireddy
Hi,

I am unable to run a few below QtWidget examples using Qt 5.6.3 libs though
I set qmake PATH but other QtWidget examples work fine.

export
PATH=/home/target/ti-processor-sdk-linux-rt-am335x-evm-05.03.00.07/linux-devkit/sysroots/armv7ahf-neon-linux-gnueabi/usr/local/Qt-5.6.3/bin:$PATH

export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event0


qtbase/examples/widgets/animation/animatedtiles:-
root@target:~/widgetapps# ./animatedtiles -platform linuxfb
./animatedtiles: relocation error: ./animatedtiles: symbol
_ZN14QGraphicsSceneC1EP7QObject, version Qt_5 not defined in file
libQt5Widgets.so.5 with link time reference

qtbase/examples/widgets/scroller/graphicsview:
root@target:~/widgetapps# ./graphicsview -platform linuxfb
./graphicsview: relocation error: ./graphicsview: symbol
_ZN4QPenC1ERK6QBrushfN2Qt8PenStyleENS3_11PenCapStyleENS3_12PenJoinStyleE,
version Qt_5 not defined in file libQt5Gui.so.5 with link time reference

qtbase/examples/widgets/gestures/imagegestures:-
root@target:~/widgetapps# ./imagegestures -platform linuxfb
./imagegestures: relocation error: ./imagegestures: symbol
_ZN8QPainter6rotateEf, version Qt_5 not defined in file libQt5Gui.so.5 with
link time reference

cross compiled Qt gcc version: 7.2.1(Using configure,make)
Target gcc version: 7.3.0(using Yocto meta-qt5 recipes)

I compiled all the above examples using cross compiled Qt on Ubuntu 16.04
and run on target which is Yocto Qt 5.6.3 build.

Am not sure why there would be any ABI incompatibility as both versions
used are Qt 5.6.3 if the the error due to mismatch of Qt versions.

Cross-compiled Qt and Yocto Qt build are built with c++14 as the compiler
supports.

Appreciate if you could provide your suggestions in this regard to resolve
the error.

Best Regards,

Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWidget examples not being run

2020-07-08 Thread Ramakanth Kesireddy
Hello Thiago,

Thanks for your quick response.

Yes there is an inbuilt Qt 5.9.7 version installed as part of TI sdk though
am setting Qt 5.6 3 path before rebuilding examples.

If we remove Qt 5.9.7 libs and Qt5 plugins, does it suffice or we need to
remove .pc,cmake and includes as well?

Best Regards,
Ramakanth

On Tue, 7 Jul, 2020, 21:40 Thiago Macieira, 
wrote:

> On Tuesday, 7 July 2020 06:36:16 PDT Ramakanth Kesireddy wrote:
> > ./animatedtiles: relocation error: ./animatedtiles: symbol
> > _ZN14QGraphicsSceneC1EP7QObject, version Qt_5 not defined in file
> > libQt5Widgets.so.5 with link time reference
>
> You have more than one Qt version in your system.
>
> Delete all but one and rebuild everything.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWidget examples not being run

2020-07-09 Thread Ramakanth Kesireddy
Is it ok if we have Yocto Qt build on device and  Qt build cross compiled
in sysroot both being Qt 5.6.3 and the Qt program cross-compiled with
sysroot build could run on device Yocto Qt build since the configuration is
same?

Best Regards,
Ramakanth

On Thu, 9 Jul, 2020, 21:24 Thiago Macieira, 
wrote:

> On Wednesday, 8 July 2020 22:08:53 PDT Ramakanth Kesireddy wrote:
> > Yes there is an inbuilt Qt 5.9.7 version installed as part of TI sdk
> though
> > am setting Qt 5.6 3 path before rebuilding examples.
> >
> > If we remove Qt 5.9.7 libs and Qt5 plugins, does it suffice or we need to
> > remove .pc,cmake and includes as well?
>
> Remove EVERYTHING from all but one Qt. Make sure you have exactly one Qt
> build
> on your device and in your sysroot for cross-building, and that those are
> the
> same. In fact, make sure the sysroot and the device's content were created
> by
> the same process.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWidget examples not being run

2020-07-17 Thread Ramakanth Kesireddy
Hello Thiago,

Thanks for your feedback.

As you pointed out different configure options and patches is the reason.
Now with the single Qt build, it works fine on target.

However, the rotation of linux framebuffer doesnot works in Qt 5.6 using export
QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:rotation=180.
Do we need to apply the patch
https://patchwork.openembedded.org/patch/149258/
<https://urldefense.com/v3/__https:/patchwork.openembedded.org/patch/149258/__;!!MvWE!SCeR31GgtkH_YaZK8cIOQQMn2hAzBjnpkDIf7VEdxmafN8AIBosz9jtpBMW98kbcgWsOtkY$>
and
then set the above environment variable?

Best Regards,
Ramakanth


On Fri, Jul 10, 2020 at 2:18 AM Thiago Macieira 
wrote:

> On Thursday, 9 July 2020 09:33:31 PDT Ramakanth Kesireddy wrote:
> > Is it ok if we have Yocto Qt build on device and  Qt build cross compiled
> > in sysroot both being Qt 5.6.3 and the Qt program cross-compiled with
> > sysroot build could run on device Yocto Qt build since the configuration
> is
> > same?
>
> Remove the "both" from your sentence. That implies more than one.
>
> Make sure you have exactly one build of Qt, built in the same step. I
> suspect
> your problem is that you have two builds of Qt, which may be of the same
> version, but used different configure options and potentially patches.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel System Software Products
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] QtWidget examples not being run

2020-07-19 Thread Ramakanth Kesireddy
Hello Thiago,

The below mentioned patch along with setting environment
variable 
QT_QPA_PLATFORM=linuxfb:rotation=180TSLIB_PARAMETERS=rotate=180:mode=640x480
worked in Qt 5.6.3 version.

Thanks and Regards,
Ramakanth


On Fri, Jul 17, 2020 at 11:04 PM Ramakanth Kesireddy 
wrote:

> Hello Thiago,
>
> Thanks for your feedback.
>
> As you pointed out different configure options and patches is the reason.
> Now with the single Qt build, it works fine on target.
>
> However, the rotation of linux framebuffer doesnot works in Qt 5.6 using 
> export
> QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0:rotation=180.
> Do we need to apply the patch
> https://patchwork.openembedded.org/patch/149258/
> <https://urldefense.com/v3/__https:/patchwork.openembedded.org/patch/149258/__;!!MvWE!SCeR31GgtkH_YaZK8cIOQQMn2hAzBjnpkDIf7VEdxmafN8AIBosz9jtpBMW98kbcgWsOtkY$>
>  and
> then set the above environment variable?
>
> Best Regards,
> Ramakanth
>
>
> On Fri, Jul 10, 2020 at 2:18 AM Thiago Macieira 
> wrote:
>
>> On Thursday, 9 July 2020 09:33:31 PDT Ramakanth Kesireddy wrote:
>> > Is it ok if we have Yocto Qt build on device and  Qt build cross
>> compiled
>> > in sysroot both being Qt 5.6.3 and the Qt program cross-compiled with
>> > sysroot build could run on device Yocto Qt build since the
>> configuration is
>> > same?
>>
>> Remove the "both" from your sentence. That implies more than one.
>>
>> Make sure you have exactly one build of Qt, built in the same step. I
>> suspect
>> your problem is that you have two builds of Qt, which may be of the same
>> version, but used different configure options and potentially patches.
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>>   Software Architect - Intel System Software Products
>>
>>
>>
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> https://lists.qt-project.org/listinfo/interest
>>
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Klocwork CWE warnings in Qt5

2020-07-19 Thread Ramakanth Kesireddy
Hi,

There are 5 different CWEs of the below type thrown by Klocwork as warnings
in the below mentioned condition in findNext():-

 https://code.woboq.org/qt5/include/qt/QtCore/qiterator.h.html#144
  inline bool findNext(const T &t) \
{ while (const_iterator(n = i) != c->constEnd()) if (*i++ == t) return
true; return false; } \

  https://code.woboq.org/qt5/qtbase/src/corelib/tools/qmap.h.html
Q_DECLARE_MUTABLE_ASSOCIATIVE_ITERATOR(Map)
https://code.woboq.org/qt5/qtbase/src/corelib/tools/qvector.h.html
Q_DECLARE_MUTABLE_SEQUENTIAL_ITERATOR(Vector)
https://code.woboq.org/qt5/qtbase/src/corelib/tools/qlinkedlist.h.html
Q_DECLARE_MUTABLE_SEQUENTIAL_ITERATOR(LinkedList)
https://code.woboq.org/qt5/qtbase/src/corelib/tools/qlist.h.html
Q_DECLARE_MUTABLE_SEQUENTIAL_ITERATOR(List)
https://code.woboq.org/qt5/qtbase/src/corelib/tools/qhash.h.html
Q_DECLARE_MUTABLE_ASSOCIATIVE_ITERATOR(Hash)


Details description of the CWE is mentioned below:

Assignment in conditional expression
The ASSIGCOND.GEN checker finds conditional statements that include an
assignment expression.

Vulnerability and risk
This checker typically finds syntax errors, usually cases in which an
assignment operator is used mistakenly instead of a comparison operator. If
the error isn't corrected, unintended program behavior is likely to
occur.External guidance

External guidance
CWE-480:Use of Incorrect Operator
http://cwe.mitre.org/data/definitions/480.html
CWE-481:Assigning instead of Comparing
http://cwe.mitre.org/data/definitions/481.html
EXP45-C. Do not perform assignments in selection statements
https://www.securecoding.cert.org/confluence/x/nYFtAg

Please let me know if the assignment expression in conditional statements
in findNext() could be ignored?

Thanks and Regards,
Ramakanth
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


  1   2   >