mplex than that, of
course. You can experiment by forking one of those
QML files (depending whether you want to scroll through all the pages, or just
one page at a time).
https://code.qt.io/cgit/qt/qtwebengine.git/tree/src/pdfquick
On Dec 5, 2024, at 00:58, Joshua Grauman wrote:
He
Hello,
I generate pdfs by using QPainter to paint onto a QPrinter. My
understanding is that the generated pdf has a transparent background, even
though most viewers view the pdf with a white background. I am able to
view the pdf with a different color background with Okular for example.
I'm w
Hi all,
I have been researching how to have a QSyntaxHighlighter change
QTextBlockFormat. I need my syntax highlighter to change the indent, left
and right margins, line height, etc. of a QTextDocument/QTextEdit.
I was able to have my class derived from QSyntaxHighlighter change the
QTextBlo
Hi all,
I am working on using QTextLayout and I was wondering if someone could
give me a quick explanation for what preedit text / preedit area was in
this context? There's not much detail in the docs, reading the Qt code and
googling hasn't helped me much.
When/why would you use setPreeditA
Hi all,
I see that qSort is deprecated in newer versions of Qt. I can also see
that std::sort is intended to replace it. But I can't figure out how to
use std::sort to sort a QList with a custom compare function. With qSort
you could supply your own comparison function to sort however you want
Great. Helpful as always. Thanks!
Josh
On Saturday, 29 July 2017 13:02:20 PDT Joshua Grauman wrote:
Do you know offhand about how accurate typical PC system clocks are? I'm
wondering about how much drift there would be after an hour of recording
screencasts.
See the ntp drift file
thereby correct for drift over time. But it sounds like switching
to QElapsedTimer is better.
Do you know offhand about how accurate typical PC system clocks are? I'm
wondering about how much drift there would be after an hour of recording
screencasts.
Josh
On Friday, 28 July 2017 16
time. But it sounds like switching to QElapsedTimer is better.
Do you know offhand about how accurate typical PC system clocks are? I'm
wondering about how much drift there would be after an hour of recording
screencasts.
Josh
On Friday, 28 July 2017 16:15:27 PDT Joshua Grauman wrote:
29 PDT Joshua Grauman wrote:
Thanks so much for the response.
So do I have this right then?
QTimer doesn't use any actually timers in the OS (no system
calls/interrupts). It is all handled internally by Qt's event loop. So if
the OS doesn't give Qt CPU time, it will miss a timer.
;
(Linux) on the process may help with this.
Josh
On quarta-feira, 26 de julho de 2017 12:58:43 PDT Joshua Grauman wrote:
Hello all,
I have a QTimer in my application that runs every 40ms. It doesn't run
continuously, but I recall the start function every time my timer function
is done s
Hello all,
I have a QTimer in my application that runs every 40ms. It doesn't run
continuously, but I recall the start function every time my timer function
is done so that the timer doesn't drift over time. My question though is
about timeout overrun. If the system is busy, and so the timer i
d the only way to support that be via
the setFullPage option?
Josh
Hi,
On Fri, March 17, 2017 02:03, Joshua Grauman wrote:
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 c
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
Hello all,
I have a bunch of small fragments of formatted text (small paragraphs with
multiple colors and fonts, using tags). I need to paint them with
QPainter at different locations (multiple rectangles of text) onto my
widget. I've seen recommendations to put them in a QLabel and then call
Brilliant! How did I miss that constructor?!
Josh
Hi,Why not construct the image object from the shared memory buffer to begin
with? Then lock the sm while drawing.
Look for example this constructor: http://doc.qt.io/qt-5/qimage.html#QImage-3
On Mon, Dec 12, 2016 at 11:45 PM, Joshua Grauman
Hello all,
I have been able to generate a screen capture of my program by rendering a
window into a QImage at 30fps (called from QTimer), and then copying the
QImage to shared memory (QSharedMemory) where another program grabs the
frames and outputs them to ffmpeg. It all works great.
Howeve
anks again so much!!!
Josh
On Tue, 15 Nov 2016, Bo Thorsen wrote:
Den 08-11-2016 kl. 23:05 skrev Joshua Grauman:
Hello all,
I am wondering if there is a way to customize the size of a QMenu used
as a context menu. I have it so that when I right click, a popup menu
comes up. But I would like
Hello all,
I am working on compiling a test program for Android. It uses
qttoolbardialog from
Qt5.6.2-Android/5.6/Src/qttools/src/shared/qttoolbardialog. The files are
included in the .pro file like:
SOURCES += qttoolbardialog.cpp
HEADERS += qttoolbardialog.h
FORMS += qttoolbardialog.ui
RESO
Hello all,
I am wondering if there is a way to customize the size of a QMenu used as
a context menu. I have it so that when I right click, a popup menu comes
up. But I would like it so the QMenu doesn't ever go outside of the window
it is clicked in. Right now, if you click near the bottom, th
Hello all,
I have a QTreeView with a custom TreeModel. It works really well and I
haven't had any problems with it after exhaustive testing. The QTreeView
is in a widget inside a layout. It all looks great and works perfectly on
screen. However, when I try to render the widget to a QImage to s
Thanks, this is the issue. At least I'm not the only one!
Josh
Hi,I think mouse events are subject to compression, so you might be
getting only part of the real number of "mouse moves" if Qt decides it
can't keep up with the speed.For example this bugreport[1] looks
relevant.
[1]: https://b
Hello all,
I'm running into a problem where the mouse (and touchscreen) poll rate is
too slow for my application. At first I thought it was the device (mouse
and/or touchscreen), but after trying in different apps, I discovered it
is Qt. I am simply subclassing a QLabel and adding points to a
Nevermind, apparently it was just the default theme that is dithered.
Explicitly setting the theme to fusion fixed it.
Josh
Hello,
I have been working for hours trying to figure out how to get 24 or 32-bit
color on my Raspberry Pi 3. Currently, Qt is running at 16-bit color and
everything i
Hello,
I have been working for hours trying to figure out how to get 24 or 32-bit
color on my Raspberry Pi 3. Currently, Qt is running at 16-bit color and
everything is dithered and looks terrible. As far as I can tell, X and the
framebuffer are both running at 24 bit and I think it is only Qt
Hello,
I'm looking to use QSharedMemory to grab an image from a widget into
shared memory (using QWidget::grab() or QWidget::render()), so another
process/program can process the images.
So I'm looking at the QSharedMemory example here:
http://doc.qt.io/qt-5/qtcore-ipc-sharedmemory-example.ht
I've tried to google and find the proper defines to use for different Mac
related operating systems. Does anyone know offhand which defines to
use for which OSes (moving forward for Qt 5.2+)?
Is this correct?
Q_OS_MAC - Mac OSX and iOS
Q_OS_MACX - Mac OSX
Q_OS_OSX - Mac OSX (any difference wi
Hello all,
I'm trying to get the down arrow of a QComboBox to be wider than the
default. I've tried lots of different ideas and none are working as
expected. I'm using the Fusion style and Qt5.2. If possible, I'd like to
keep having the style draw everything and not have to redo all the
painti
Hello,
Does anyone know if anything changed with respect to enabling Harfbuzz on
Qt/Mac with Qt version 5? With the precompiled releases what is the
default setting? Do I need to set the environment variable
QT_ENABLE_HARFBUZZ? Is there a (programatic) way to check and verify if it
has been en
I fairly often find myself wanting to sort a bit of data. Imagine I have a
few QList's a QStringList's and that they correspond like a database
table so that I always append to all the lists together with data for one
row. Something like:
QList age, height;
QStringList firstname, lastname;
whil
I just finished getting my app ready to run with Qt5.2beta and OSX Lion
and everything is running fine. However, after I run macdeployqt, I can't
run the app by double clicking on it, it just immediately crashes. When I
run it from the terminal it is fine. I ran otool -L on the binary and
every
droid...
Thanks!
Josh
> On 11 November 2013 08:07, Thiago Macieira wrote:
>> On domingo, 10 de novembro de 2013 21:34:08, Joshua Grauman wrote:
>>> Hello all,
>>>
>>> I just tried Qt5.2 for Android and unless I'm missing something I can't
>>> u
Hello all,
I just tried Qt5.2 for Android and unless I'm missing something I can't
use QPrinter. Now I understand the reason for this, obviously there is no
printer backend on Android. However, when I used Qt 4.x for Android using
Bogdan's version, I was still able to use QPrinter and friends,
s
> Senior Software Engineer - Digia, Qt
> Visit us on: http://qt.digia.com
>
> On Nov 5, 2013, at 7:09 PM, Joshua Grauman wrote:
>
> Sorry, I'm using Qt5.2beta under Linux.
>
> Josh
>
> Which platform are you on?
>
> Yoann Lopes
> Senior Software Engi
Sorry, I'm using Qt5.2beta under Linux.
Josh
> Which platform are you on?
>
> Yoann Lopes
> Senior Software Engineer - Digia, Qt
> Visit us on: http://qt.digia.com
>
> On Nov 5, 2013, at 7:14 AM, Joshua Grauman wrote:
>
> Hello all,
>
> I setup a basic use
Hello all,
I setup a basic use of QCamera and QCameraViewFinder that work fine. I
just used the basic example in the docs to capture an image like this:
camera->searchAndLock(); //on half pressed shutter button
imageCapture->capture(); //on shutter button pressed
camera->unlock();
ded GNU Compiler Collection (GCC) 4.8 compiler to the NDK. Since GCC 4.6
is still the default, you must explicitly enable this option.
On Mon, 28 Oct 2013, Thiago Macieira wrote:
> On segunda-feira, 28 de outubro de 2013 14:44:02, Joshua Grauman wrote:
>> Hello,
>>
>> I am wo
Hello,
I am wondering if there are any potential issues with using C++11 (I want
to use lamba functions for connecting to signals) on all the major Qt5
platforms --without recompiling the source--. I know the default
Linux/Mac/WindowsMSVC compilers should be fine, but I'm more wondering
about
Hello all,
I have a QTextEdit/QTextDocument that I want to print. I call
document()->setPageSize(QSizeF(pageWidth,pageHeight)); to set the page
size and can print it fine. I have some custom drawing I need to do though
and so I need to have a reliable way to see where QTextDocument did the
pag
Hello all,
I'm interested in diving into using Qt5.1 on iOS. Before I do though (I'm
not a Mac or iOS user) I have two quick newbie questions for iOS:
1) I keep hearing that iOS is "locked down" or a "walled garden". If I buy
an iPad or whatever, is it pretty easy for me to compile/build my app
Scott,
I'm not certain that all these functions exist in QPlainTextEdit, but I'll
tell you how I did it in QTextEdit by subclassing QTextEdit and
reimplementing QTextEdit::mouseDoubleClickEvent(QMouseEvent *e). I get the
position of the mouse click via e->pos(), and then get a QTextCursor using
I'm not sure if this is relevant, but the tap and hold gesture works with
the mouse for me on multiple platforms, but I haven't tried other
gestures.
Josh
> Hello, guys.
>
> I just did a fresh pull from GIt, ran the example, and got nothing.
>
> Also, when I attempted the doubleclick event
Great idea. Thanks so much for the help.
Josh
> On 02/23/2013 07:43 PM, Joshua Grauman wrote:
>> Bill,
>>
>> Thanks so much, that looked like it should do the trick. But
>> onfortunately, when my new window pops up (even with those flags, I tried
>> both Qt::Di
Linux.
Josh
> On 02/23/2013 04:40 PM, Joshua Grauman wrote:
>> Hello all,
>>
>> I have a QTableWidget that uses a custom delegate. When I double click on
>> a cell, the editor comes up fine. But then I want to be able to pull up a
>> helper widget/window to ente
Hello all,
I have a QTableWidget that uses a custom delegate. When I double click on
a cell, the editor comes up fine. But then I want to be able to pull up a
helper widget/window to enter data into the persistent editor. The problem
is, when I show the new widget/window, the QTableWidget loose
That is a good thought, but I don't think that is the problem. I have a
double click event handler on one of my widgets, and it's not even getting
called. I would think that sending a double click event would cause the
double click event handler to be called, so that's why I think that
somehow
Hello all,
I'm trying to write a global proceedure to convert all QTapAndHoldGesture
events to mouse double click events. I thought this should be trivial, but
it's really stumping me.
I setup an event filter globally for my QApplication and grab the gesture
as follow:
app.installEventFilter(&
Thanks! Any idea if there are plans to add QToolBar back in for Mac?
Josh
> On Feb 12, 2013, at 9:08 PM, Joshua Grauman wrote:
>>
>> Qt could not resolve function "qimagetocgimage" from
>> QGuiApplication::platformNativeInterface()->nativeResourceFunctionForI
Hello all,
I have a multi-platform app I'm trying to update/port to Qt5. Everything
pretty much seems ok, except that QToolBar no longer works on Mac. I've
been trying to google and read up on the issue, but I'm having a hard time
answering my main question:
Is this a permanent situation, or i
t;
> Josh
>
>> On quinta-feira, 24 de janeiro de 2013 16.20.37, Joshua Grauman wrote:
>>> I'm not sure I completely understand your question, but I'll give it a
>>> shot. I had a global variable as follows (bad style, I know). It seems
>>> pointless
Ok, got it. That makes way more sense. Sorry for being slow. I'll take a
look and let you know if I can find any more information.
Josh
> On quinta-feira, 24 de janeiro de 2013 16.20.37, Joshua Grauman wrote:
>> I'm not sure I completely understand your question, but I'
d.
Josh
> On quinta-feira, 24 de janeiro de 2013 15.29.07, Joshua Grauman wrote:
>>> It's definitely a bug. Please remember that most Qt API is not supported
>>> before the QCoreApplication object is initialized, so this bug will have
>>> a low priority of fixing.
&g
> On quinta-feira, 24 de janeiro de 2013 14.51.24, Joshua Grauman wrote:
>> Sorry for all the emails, but I finally tracked it down.
>> QTextCodec::codecForName("UTF-8") is returning 0 because I call it before
>> QApplication is initialized. I'm not sure if thi
Hi,
I just found out about the Qt Installer Framework and so downloaded and
compiled it. On linking, I see it is trying to link to QFSFileEngine,
which isn't in Qt5. Is a Qt5 version of qif planned? Does anyone have it
working in Qt5? Thanks!
Josh
24.01.2013, × 19:36, Karsten Heimrich ÎÁ
Sorry for all the emails, but I finally tracked it down.
QTextCodec::codecForName("UTF-8") is returning 0 because I call it before
QApplication is initialized. I'm not sure if this is expected behavior or
not. In any case, on the other platforms it's not a problem.
But where there is definitely
Ok, I think I've found the root problem. QTextCodec::codecByName("UTF-8")
is returning 0. It's a static function, so I'm lost as to why this would
be. I didn't compile my own Qt, just downloaded the main Qt5.0.0-clang SDK
from the qt-project website and installed. This is what is causing the
se
I'm not sure I did this correctly, but it did give some more information.
Now I can see that it is segfaulting on QTextCodec::toUnicode(), which
incidentally, also segfaults in another program I have. So I think I can
trace most (all?) my segfaults to this function. Thanks for any more help!
Jo
> Hi,
>
> On Thu, Jan 24, 2013 at 7:08 AM, Joshua Grauman wrote:
>> First a disclaimer, I know very little about Mac OS specifics. I only have
>> a Mac to build my app for it.
>>
>> I am porting two apps to Mac OS Mountain Lion and Qt5. The apps have run
>>
I'll add one more odd note about porting to Qt 5. I found that Qt::UniteClip
is no longer an option in Qt5 as used in:
painter.setClipRect(rect, Qt::UniteClip);
I find this is a weird option to get rid of as Qt::IntersectClip is still
there. Why one and not the other...
Josh
> On sexta-feira,
Hello all,
First a disclaimer, I know very little about Mac OS specifics. I only have
a Mac to build my app for it.
I am porting two apps to Mac OS Mountain Lion and Qt5. The apps have run
fine on quite a few of the Qt4 series versions in Windows/Linux/Mac (Snow
Leopard). They both run fine in
Hello all,
Imagine a horizontal layout with 4 QLabels in it. The various QLabels have
different amounts of text that can vary quite a bit and can be changed
dynamically. I've been unable to get the horizontal layout/size policies
to size the QLabels how I would like. What I would like is for th
correctly and thus I want to use Harfbuzz... Anyway, I realize now it's
not anything I'm doing wrong but a design decision of Qt. I'll work to see
if there is a way to use Harfbuzz for all TTF fonts on Mac, but it would
take a change to the Qt source... Thanks again!
Josh
> J
Hello all,
According to this page, it is now possible to enable Harfbuzz on Mac by setting
an environment variable:
https://bugreports.qt-project.org/browse/QTBUG-17728
However, unless I'm missing something I haven't been able to enable
Harfbuzz on Mac. I'm using Qt 4.8, which according to the
62 matches
Mail list logo