QImage.setDevicePixelRatio(2) seemed to do the trick along with a Image that is
twice as large and manual translation of the appropriate coordinates. QPainter
does the rest.
Good to know.
> On Mar 16, 2017, at 8:32 PM, Patrick Stinson wrote:
>
> That’s a good setting to know about, so thank y
That’s a good setting to know about, so thank you for pointing it out.
Unfortunately, this isn’t what I am trying to accomplish. I have a singleton
QGraphicsItem that acts as a canvas and is always resized to fit the view’s
viewport. This canvas item paints lines to a QImage buffer with each QPo
On 17 March 2017 at 16:01, Patrick Stinson wrote:
> Hi there!
>
> I am implementing handwriting with the apple pencil and am double-buffering
> each stroke on a QImage before passing the resulting pixmap and bounding rect
> for the stroke to a QGraphicsItem. The problem is that painting to the Q
Hi there!
I am implementing handwriting with the apple pencil and am double-buffering
each stroke on a QImage before passing the resulting pixmap and bounding rect
for the stroke to a QGraphicsItem. The problem is that painting to the QImage
is not at retina resolution which is what you get whe
Hi all,
I am trying to print a QTextDocument to PDF using QPrinter like the
following. It works great. But now I'm trying to print to a PDF with a
black background and I can't figure out how. If I do painter.fillRect() it
doesn't cover the margins (margins are white). I've tried changing the
Dear all,
I have set a High DPI image as a splash screen in my application, by
providing an image which is twice larger, and set the pixmap scaling to 2.
On a double DPI monitor, the result is perfect. But on a standard monitor,
the downsizing is very poor, it looks like the pixmap was scaled usi
Hi,
You can resize the header sections programmatically after the first load.
for(int i=0;icount();++i)
header->resizeSection(i, header->sectionSizeHint(i));
This should do the job.
Cheers,
Etienne
2017-03-16 22:27 GMT+01:00 Alexander Semke :
> Hi,
>
> I have a QTreeView where after sett
I forgot, in order to detect when the window lost "focus" (ie is no longer
the active window), you need to catch QFocusEvent, and check if reason() is
Qt::ActiveWindowFocusReason
Cheers,
Etienne
2017-03-16 22:34 GMT+01:00 Etienne Sandré-Chardonnal :
> Hi,
>
> That's because a context menu is a
Hi,
That's because a context menu is a system level window, not a widget.
And what you call focus is in fact not focus, but active window. See
QApplication::activeWindow
You create such a window by creating a QWidget with no parent and a
WindowFlag:
QWidget(0, Qt::Popup);
2017-03-16 15:56 GMT+0
Hi,
I have a QTreeView where after setting the model I call header()-
>setResizeMode(QHeaderView::ResizeToContents) to adjust the column width to
the content. Since I want the user to be able to resize the header sections
manually, I call header()->setResizeMode(QHeaderView::Interactive) after t
I was trying to show my QML app running on iOS on appleTV via AirPlay, and I
got black screen.. even though the app is working nicely on iPad. We see the
same behaviour when trying to show the same app with LightingToHDMI cable.
I tried several QML apps from Examples, some works with AirPlay, so
On 16/03/2017 11:37 AM, Thiago Macieira wrote:
Em quinta-feira, 16 de março de 2017, às 07:53:10 PDT, Duane escreveu:
I've tried QFile::read() but it wants a char buffer.
reinterpret_cast to char.
Thanks.
___
Interest mailing list
Interest@qt-pr
Em quinta-feira, 16 de março de 2017, às 07:53:10 PDT, Duane escreveu:
> I've tried QFile::read() but it wants a char buffer.
reinterpret_cast to char.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
How can I use Qt to read from a binary file to a structure?
I'm trying to replace
Foo foo;
fread(foo,sizeof(FOO);
I've tried QFile::read() but it wants a char buffer.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailm
Hi,
I try to have a contextual menu with a semi-transparent background. I
didnt manage to to it with QMenu, so I decided to use a custom widget.
I have no problem to have a widget with a semi-transparent background, I
just changed the alpha of the background color.
My problem is that I want
Hello:
I am slowly porting my app forward from Qt 4.8.6
With 4.8.6, it is my observation that simple line drawings,
as made by a QPainter and with Antialiasing enabled in render hints,
are implemented in software which makes them quite slow.
What can I look forward to if I port my app to 5.X (5
Can you file a JIRA with a test case that reproduces this please?
Thanks,
Sean
On Wednesday 15 March 2017 20:29:38 Russell, Matthew wrote:
> With Qt 5.8.0 on a Windows Surface, I'm experiencing flickering in my app
> that has both a SceneGraph (modelled after the Squircle example) and Qt3D
> ren
17 matches
Mail list logo