Re: [Interest] Make Qt::PreciseTimer the default timer type

2018-04-11 Thread Thiago Macieira
On quarta-feira, 11 de abril de 2018 07:18:11 PDT Richard Weickelt wrote:
> Hi,
> 
> is there a way to set Qt::PreciseTimer as the default timer type for all
> QTimer instances in an application? According to the QTimer documentation
> [1], Qt::CoarseTimer is the default.

Patch Qt and recompile.

-- 
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] Make Qt::PreciseTimer the default timer type

2018-04-11 Thread Christopher Probst
Sorry wrong thread, please ignore previous message.

On 11 April 2018 at 10:37, Christopher Probst 
wrote:

> A solution would be doing something like this:
>
> m_chart->legend()->setAlignment(Qt::AlignTop);
>
> QApplication::processEvents();
>
> m_chart->legend()->setY(m_chart->plotArea().height() - m_chartView->height() 
> );
>
>
> Which feels like a big hack. Is there a better way?
>
>
>
>
> On 11 April 2018 at 10:18, Richard Weickelt  wrote:
>
>> Hi,
>>
>> is there a way to set Qt::PreciseTimer as the default timer type for all
>> QTimer instances in an application? According to the QTimer documentation
>> [1], Qt::CoarseTimer is the default.
>>
>> Thanks
>> Richard
>>
>> [1] http://doc.qt.io/qt-5/qtimer.html#timerType-prop
>> ___
>> 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] Make Qt::PreciseTimer the default timer type

2018-04-11 Thread Christopher Probst
A solution would be doing something like this:

m_chart->legend()->setAlignment(Qt::AlignTop);

QApplication::processEvents();

m_chart->legend()->setY(m_chart->plotArea().height() - m_chartView->height() );


Which feels like a big hack. Is there a better way?




On 11 April 2018 at 10:18, Richard Weickelt  wrote:

> Hi,
>
> is there a way to set Qt::PreciseTimer as the default timer type for all
> QTimer instances in an application? According to the QTimer documentation
> [1], Qt::CoarseTimer is the default.
>
> Thanks
> Richard
>
> [1] http://doc.qt.io/qt-5/qtimer.html#timerType-prop
> ___
> 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] Make Qt::PreciseTimer the default timer type

2018-04-11 Thread Richard Weickelt
Hi,

is there a way to set Qt::PreciseTimer as the default timer type for all
QTimer instances in an application? According to the QTimer documentation
[1], Qt::CoarseTimer is the default.

Thanks
Richard

[1] http://doc.qt.io/qt-5/qtimer.html#timerType-prop
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest