[Interest] QCheckBox not drawing with focus in QStyledItemDelegate

2025-05-12 Thread Josh
mething about the focus. Sorry for the complicated email, but in short, what should I do to have the qcheckbox be drawn with the focus rectangle when my qdialog editor is first shown? Josh ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest

[Interest] Smaller QString Serialization

2025-04-14 Thread Josh
Any other obvious ways to speed it up, or other suggestions? Josh QDataStream &operator<<(QDataStream &out, const QString &str) { if(str.isNull()) out << (quint8)255; //null marker else { QByteArray utf8=str.toUtf8(); qsizetype size=utf8.size(

[Interest] QTextEdit shortcuts

2025-04-07 Thread Josh
Hi, It appears QTextEdit has more shortcuts than are in the docs? For example, Ctrl-E goes to the end of line. Where in the Qt source can I find all the shortcuts/key bindings for QTextEdit? I can't seem to find them in Src/qtbase/src/widgets/widgets/qtextedit.cpp or related files...

[Interest] Intercept key bindings for QTextEdit subclass

2025-04-01 Thread Josh
action item shortcut to the main window. But calling k->ignore(); and then returning in keyPressEvent() doesn't allow the main window to use the shortcut. Is there a way that the main window can see those shortcut keys? Josh ___ Interest mail

[Interest] Saving existing QSettings

2025-03-18 Thread Josh Grauman
work. QSettings set1("Company", "Program"); set1.setValue("key", 1); QSettings set2("test.ini", QSettings::IniFormat); set2 = set1; Josh ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest

[Interest] QPdfView source

2025-03-10 Thread Josh Grauman
r QPdfView (6.8.2) as well as the rest of Qt PDF? Thanks, Josh ___ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest

[Interest] QPrinter odd/even margins instead of left/right margins

2024-02-20 Thread Josh Grauman
to keep calling QPrinter::setPageMargins() after every QPrinter::newPage(). I suppose I could set the margins to the minimum left/right margin, and then adjust the painting for each page, but I'm wondering if there is a better way to do it. Thanks, Josh

[Interest] Bypass QTextCursor::mergeBlockFormat() Undo Stack

2021-03-11 Thread Josh
void QSyntaxHighlighter::highlightBlock(const QString &txt) //determine level of text if(level) { setCurrentBlockState(level); blkfmt.setTopMargin(10); blkfmt.setLeftMargin(((level)*2)*chW); blkfmt.setTextIndent((-level-1)*chW); myCur.mergeBlockFormat(blkfmt); } T

[Interest] QTextDocument supports tabstops, but can't insert tabs via html?

2020-05-19 Thread Josh
ument::setPlainText(). I've been able to mix/match insertHtml() and insertText() to split up my insertHtml() calls and insert tabs with insertText(). It sort of works (see below), but I'm checking if there is a better solution... Thanks, Josh QStringList tabText = text.split("\t&quo

Re: [Interest] Links in PDF printed from QTextDocument

2020-04-12 Thread Josh
On Sun, 12 Apr 2020, Josh wrote: On Sat, 11 Apr 2020, Giuseppe D'Angelo via Interest wrote: This should "just work". Are the links correctly inserted in the document? Does it work if you use document->print() and print directly on a PDF? HTH, Thanks, that does hel

Re: [Interest] Links in PDF printed from QTextDocument

2020-04-12 Thread Josh
didn't work. (I'm assuming span id isn't part of the supported HTML subset, didn't see it say it was supported) Okular and Chrome both recognize the as a link. Okular opens dolphin when I click it and Chrome does nothing. What am I missing? Josh

[Interest] Links in PDF printed from QTextDocument

2020-04-10 Thread Josh
function which generates the PDF like following: ... painter.translate(xmar/scale, -page*pageHeight + ymar/scale); myDocument->drawContents(&painter, view); ... Any ideas about getting links into the PDF are appreciated. Josh ___ Interest maili

Re: [Interest] Adding Scripting Capabilities to my Application (Suggestions on how to get started)

2014-03-12 Thread Josh Handley
t get in Javascript is co-routines. You can write run your Lua code as a co-routine and have it yield back to C++ so Qt can run its event loop and resume the Lua code on certain events. This lets you write Lua code that looks like straight-line code even though it runs inside an event based system

Re: [Interest] Blur part of rectangle possible?

2014-02-05 Thread Josh Faust
> > That could probably work if i want to blur an image. > In this case i want to blur the bottom part of a ListView where i want > to overlay a search field and blur the background. > That case makes splitting it a bit difficult ;) > You can use sourceRect on ShaderEffectSource, and then apply t

Re: [Interest] Turning on MSAA on a Qml-created Window

2013-11-04 Thread Josh Faust
Hi Sletta, That makes sense, I'll give it a shot. Thanks. Josh On Mon, Nov 4, 2013 at 12:34 AM, Sletta Gunnar wrote: > Hi Josh, > > This should be possible, but there are a few things to keep in mind. In Qt > 5.1 the QQuickWindows all share the same OpenGL context, so you

[Interest] Turning on MSAA on a Qml-created Window

2013-11-01 Thread Josh Faust
Is this possible? I can't use a custom QQuickWindow subclass, as I'm using ApplicationWindow. Is there any way to set the default QSurfaceFormat that will be used by QWindow? Josh ___ Interest mailing list Interest@qt-project.org http:

[Interest] QtQuick: are animations supposed to cause rendering even if the element it's animating is invisible?

2013-07-24 Thread Josh Faust
imation prevents the constant rendering. Is this a bug that I should file, or is it expected behavior? Thanks Josh ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] QtQuick Controls: Styling combobox dropdowns

2013-07-19 Thread Josh Faust
style the dropdown? (It doesn't look like it, as as far as I can tell ComboBoxStyle uses MenuStyle, which is not styleable). Is my best bet to override the mouse handling behavior and pop up my own menu? Thanks Josh ___ Interest mailing l

[Interest] QtQuick: Changing duration on a PropertyAnimation while the animation is running

2013-06-17 Thread Josh Faust
tion also resets the value. Is this possible at the moment? Should I just write a custom scene graph item? Thanks Josh ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Qml bindings with javascript library functions in them

2013-06-13 Thread Josh Faust
ts, but that should be solveable. Thanks! Josh ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] Qml bindings with javascript library functions in them

2013-06-13 Thread Josh Faust
nce is not a concern). Thanks Josh ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Multiple rectangles or any shapes in Scene Graph plugin?

2013-06-05 Thread Josh Faust
ne1); background ->appendChildNode(line2); Josh On Wed, Jun 5, 2013 at 10:14 AM, Mark wrote: > Hi, > > Another day, another Scene Graph question. > > In plain QML it's very easy to make a few rectangles laying on top of > each other. I'm having trouble doing the same thin

Re: [Interest] QtQuick Controls: custom styling

2013-05-16 Thread Josh Faust
arStyle is also currently not needed in the > public API since you can anyway use a custom QML item in their place. > Yes, it was ToolButtonStyle that I was missing, I just happened to notice ToolBarStyle at the same time. You're right that there's no reason it can

Re: [Interest] QtQuick Controls: custom styling

2013-05-16 Thread Josh Faust
, or should all the styles exist in the qmldir? (The specific ones I've noticed are ToolBarStyle and ToolButtonStyle). Josh ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] QtQuick Controls: custom styling

2013-05-16 Thread Josh Faust
The Style class is currently private, but is required as a base-class for custom styling. This wasn't the case until recently, but I'm not sure what changed to require it. Is this expected? Is custom styling not a supported feature? Josh __

Re: [Interest] Qml Window: handling close events?

2013-05-06 Thread Josh Faust
//bugreports.qt-project.org/browse/QTBUG-31019 > > Ah, yes, I should have been more explicit in what I meant by "handling". I meant ignoring -- though I also missed the obvious onVisibleChanged. Thanks! Josh ___ Interest mailing list Int

[Interest] Qml Window: handling close events?

2013-05-03 Thread Josh Faust
There doesn't appear to be any way of handling Window close events in QtQuick (nor, now that I look at it, in QWindow). Am I missing something obvious? Josh ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/lis

Re: [Interest] CSS with QML

2013-04-10 Thread Josh Faust
Qml does not use webkit ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Qt 4.8.3 / MinGW: JavaScriptCore doesn't compile

2012-09-16 Thread Josh
I just got the same exact error on Mingw-w64 4.7.1-2 (rubenvb's build). From what I see reported the Ming 4.4 installer also has confirmed problems with compiling projects. This is the sloppiest release of Qt yet. I question the future of Qt under its new management...

Re: [Interest] Qt 4.8.3 / MinGW: JavaScriptCore doesn't compile

2012-09-16 Thread Josh
I just got the same error on Mingw-w64 4.7.1-2 (rubenvb's build). From what I see reported the Ming 4.4 installer also has confirmed problems with compiling projects. This is the sloppiest release of Qt yet and I question the future of Qt under Digia. __