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.

Re: [Interest] QtQuick Controls 2 and Designer: Should I use Styles or Customize?

2018-04-11 Thread Jérôme Godbout
Look nice, but what exactly does the function SoStronk.contextPropertyForQmlObject(obj, string) does ? From: Shantanu Tushar Sent: April 11, 2018 9:29 AM To: Jérôme Godbout Cc: Thomas Hartmann; interest@qt-project.org Subject: Re: [Interest] QtQuick Controls 2 a

Re: [Interest] Qt Charts: Making the legend top and right aligned

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? There must be. On 11 April 2018 a

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()

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

[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

Re: [Interest] Qt Charts: Making the legend top and right aligned

2018-04-11 Thread Christopher Probst
I have noticed that! Clearly they thought of it! I tried grabbing the y coordinate of the legend and changing it. That also does not work! It would be nice to have a solution to this. On 11 April 2018 at 10:03, Mike Chinander wrote: > Not sure of a solution to this, but noticed that unlike other

Re: [Interest] Qt Charts: Making the legend top and right aligned

2018-04-11 Thread Mike Chinander
Not sure of a solution to this, but noticed that unlike other uses of Qt::Alignment flags, the QLegend docs say, "If you set more than one flag, the result is undefined." https://doc.qt.io/qt-5.10/qlegend.html#alignment-prop On Wed, Apr 11, 2018 at 8:51 AM, Christopher Probst < christop.pro...@gm

[Interest] Qt Charts: Making the legend top and right aligned

2018-04-11 Thread Christopher Probst
Hi, I would like to place the legend of chart that uses Qt charts at the top right of the view. I would have expected something like this to work: m_chart->legend()->setAlignment(Qt::AlignTop| Qt::AlignRight) Unfortunately it does not! Is there a direct way to make the legends (right or left

Re: [Interest] QtQuick Controls 2 and Designer: Should I use Styles or Customize?

2018-04-11 Thread Shantanu Tushar
Hi, Thanks for the suggestion. I ended up implementing it like this- $ cat theme/v2/Theme.qml pragma Singleton import QtQuick 2.10 import QtQuick.Window 2.3 Item { visible: false GlassColors { id: glassColors } PlatinumColors { id: platinumColors } rea

Re: [Interest] How to scroll QScrollArea by number of pixels?

2018-04-11 Thread Igor Mironchik
Hello, [virtual protected ] void scrollContentsBy(int dx, int dy) On 11.04.2018 08:31, Patrick Stinson wrote: Hello! Is there a way to scroll a QScrollArea by a precise number of pixels on the viewport widget? Or do you have to use relative units as calculated by the size fo the scrollbar h