>
> On Wed, May 15, 2013 at 3:08 AM, Sujan Dasmahapatra
> mailto:sujan.dasmahapa...@gmail.com>> wrote:
>
> I got a QTableWidget with 3 columns in it. How can I resize the
> columnwidth
> based on resizing my MainWindow. Currently I have set a fixed width for
> column using
Create you
On 10/30/2015 10:08 AM, Etienne Sandré-Chardonnal wrote:
Dear all,
I have an app which runs several days executing computation jobs (about one job
every few minutes). In some cases, the memory consumption grows to several Gb
unexpectedly.
If someone is still pointing at a piece of memory then
Also, use techniques like QScopedPointer to simplify memory
management.
All this was done, especially in the QThread / QSocket part. But the app is
complex and something may have been left out.
I had a similar problem.
You need to look for places where "things" could accumulate.
Ch
I am wondering if this problem can happen again. What can possibly cause
QPrinter constructor to get stuck for such a long time?
For me Qt was scanning the network, building up the list of
available printers. On a campus of 6 buildings and umpteen printers,
that took a noticeable amount of t
On 11/25/2015 12:32 PM, william.croc...@analog.com wrote:
I am wondering if this problem can happen again. What can possibly cause
QPrinter constructor to get stuck for such a long time?
For me Qt was scanning the network, building up the list of
available printers. On a campus of 6
On 12/13/2015 05:32 AM, Jean-Michaël Celerier wrote:
Hello,
I am trying to render a graphics scene that contains some QGraphicsSvgItem and
some QGraphicsItem.
The QGraphicsItem render correctly as SVG when I import them in inkscape, but
the QGraphicsSvgItem are rendered as PNG !
Yes, I notic
Or, can you recommend a better way to diagnose
this problem. (The whole thing needs to be rewritten
now that I am older and wiser, but not just yet.)
I'd try to log calls to update() on the widget, and dump the stacktrack for each
of those to a file. You can do that (at least on gdb) by setti
On 12/17/2015 11:16 AM, Jason H wrote:
My very first Qt app is large and a little sloppy in
that the QWidget::update() function is being called
*someplace* where it should not, This is causing
unnecessary repaints.
Is there one place I can put a break to find the calls
which actually cause a
I know they are unnecessary because my app responds with multiple
screen refreshes (paints) from a single user action. And for me those
paints can be expensive.
Did you write a widget that calls update()? I'm not sure I understand your
concern. update() should only be called when a redraw i
On 12/17/2015 01:53 PM, Jason H wrote:
If I call:
QWidget::update() and
QWidget::updateGeometry()
Can I assume the layout request would be processed first and
then any repaints would take place.
In general can I assume that all layout requests would be serviced
upon
On 12/17/2015 02:40 PM, william.croc...@analog.com wrote:
On 12/17/2015 01:53 PM, Jason H wrote:
If I call:
QWidget::update() and
QWidget::updateGeometry()
Can I assume the layout request would be processed first and
then any repaints would take place.
In general can I assume that all
Hello:
Given a QPoint and a QPainterPath.
How do I find the distance from the QPoint to the
closest point along the QPainterPath.
I could step along the path with pointAtPercent
looking for the closest point, but that seems unduly
expensive: O(100N).
Any better ideas.
Thanks.
Bill
-
On 12/29/2015 06:42 AM, Elvis Stansvik wrote:
2015-12-28 22:49 GMT+01:00 william.croc...@analog.com
Given a QPoint and a QPainterPath.
How do I find the distance from the QPoint to the
closest point along the QPainterPath.
Like Konstantin said, the best approach probably depends on whether
Given a QPoint and a QPainterPath.
How do I find the distance from the QPoint to the
closest point along the QPainterPath.
Perhaps. But you should consider that QPainterPath is, as the name
suggests, primarily for painting, and not meant for solving generic
geometric problems. So I'm not sure
I think Qt opened the door for geometric consideration when they
invented the scene, gave items mouse-event-handlers and provided
intersection based item queries. :-)
Fair enough :) You could always try filing a feature request and see
what people think.
People will think, "What has this
On 01/07/2016 03:44 PM, Murphy, Sean wrote:
I'm trying to figure out the right way to show some feedback to the user and
I'm stuck. Here's the setup:
- I have a QTabWidget, that has three tabs, one for live data, one for archived
data, and a third tab that doesn't having much to do with this pa
On 01/08/2016 09:49 AM, Murphy, Sean wrote:
I would probably prefer something like an overlay message popping up for a
few seconds or (a bit nineties style) a status bar message. Another would be
to have a subtle small icon overlay float from the button up to the tab.
Overlay message probably i
On 01/08/2016 05:40 PM, Bill Crocker wrote:
Hello:
I am working on a WYSIWYG editor.
The user needs to be able to enter macros which render
specially on the screen. For the purpose of this conversation,
pretend they enter "$DATE" which displays as "8-JAN" on the screen.
They are not allowed to e
How do I this using a QTextEdit widget in HTML mode
with QTextCursor etc.
Okay. I have made some progress using the QTextObjectInterface.
Next series of questions:
- If a QTextCursor spans one of my inline objects and some aspect of the
font is changed, how does my object get notified.
- My
On 01/10/2016 02:59 AM, Tony Rietwyk wrote:
Bill asked:
Sent: Sunday, 10 January 2016 1:25 AM
Next question:
How do I save and restore to HTML?
Hi Bill,
I can't help with the saving. But we display html documents with
tags and replace them with QWidgets:
The HTML representation is
On 01/12/2016 07:37 PM, Elvis Stansvik wrote:
2016-01-12 15:37 GMT+01:00 Bill Crocker:
Hello:
Could someone please show me the few lines of code required
to add a list *of three elements* to a QTextDocument using low
level (i.e QTextBlock, QTextCursor, QTextList, etc.) classes.
This would be
On 01/13/2016 05:33 AM, Konstantin Tokarev wrote:
13.01.2016, 04:10, "william.croc...@analog.com":
On 01/12/2016 07:37 PM, Elvis Stansvik wrote:
2016-01-12 15:37 GMT+01:00 Bill Crocker:
Hello:
Could someone please show me the few lines of code required
to add a list
I do not remember why I added a styleSheet. Perhaps to make it more fat-finger
touch-friendly for Android or iOS. Anyway, I must re-think and re-test.
I always tell my customers to stay away from style sheets. They are way more
trouble than what they are worth.
My complaint:
Some things c
On 02/05/2016 10:34 AM, Murphy, Sean wrote:
I’m still struggling with how to customize the selection color for items on a
QTableView
I use a QStyledItemDelegate.
In the paint(painter,option,index) method I create my own QPalette based on
selection etc and then call the base class paint function
Ok, so then in my case, I'd just inherit from QStyledItemDelegate and add a function
that allows me to pass in my QMap so that I can adjust your
calls of setColor() in paint() on the fly based on modelIndex.
Do you happen to have any pointers for customizing the drag and drop indicator?
N
On 03/04/2016 03:06 AM, Roshni Lalwani wrote:
I have application in which I am planning to use a QtreeWidget . The maxinum
number of elements in the treeWidget can go uptp 500 . COuld you let me how will
be performance of using QtreeWidget for 500 elements . Will it lead to some
performance degra
On 03/04/2016 11:24 AM, André Somers wrote:
Op 04/03/2016 om 13:20 schreef william.croc...@analog.com:
On 03/04/2016 03:06 AM, Roshni Lalwani wrote:
I have application in which I am planning to use a QtreeWidget . The maxinum
number of elements in the treeWidget can go uptp 500 . COuld you
int main()
{
// module A creates a byte array
QByteArray bai;
QDataStream out(&bai, QIODevice::WriteOnly);
out << QString("A QString"); // writes some information on it
Some tool kits use a buffer in their version of QDataStream.
You can not in general be sure that anything has actually been
On 03/07/2016 09:19 AM, Sina Dogru wrote:
2016-03-07 15:51 GMT+02:00 william.croc...@analog.com
<mailto:william.croc...@analog.com> mailto:william.croc...@analog.com>>:
Some tool kits use a buffer in their version of QDataStream.
You can not in general be sure that
On 03/07/2016 09:35 AM, Sina Dogru wrote:
Well but, I am writing a QString to QByteArray,
QByteArray bai;
QDataStream out(&bai, QIODevice::WriteOnly);
out << QString("A QString");
And writing an 'int' and QByteArray which a QString written
file.open(QIODevice::WriteOnly);
QDataStream out2(&fil
QDataStream out2(&file); // and module A write those datas to a file.
out2 << bai.size();
out2 << bai;
All of the following is IMHO:
I think that if you are going to read the size back as an 'int'
you should insure that an 'int' is written in the first place:
out2 <<
Sure, you can look and see that the size() of a QByteArray returns
an 'int', but that is only as of today. You should get into the habit
of controlling the types written to QDataStreams.
Actually, for reading and writing binary data files, I think it is wise to get
into the habbit of using expl
Hello:
If I have a single data structure being presented to the world
by two, separate item models and I want to "insert a row".
I assume I would:
1 - call beginInsertRows on both models,
2 - insert the row in my single data structure
3 - call endInsertRows on both models.
I am pretty sure I am
On 03/29/2016 10:47 AM, David Heremans wrote:
Hello,
I seem to have a 'visibility problem' with my application.
I have a QGraphicsscene that represents a piece of A4 paper at 300DPI
(approx. 3300 by 2500 scene coordinates). On this scene I have a simple
street map and some symbols. I draw the li
On 05/04/2016 01:07 PM, Thiago Macieira wrote:
On quarta-feira, 4 de maio de 2016 10:08:27 PDT Bill Crocker wrote:
From my experience the symbols I am seeing are typical of missing moc
files. I know I have all of my #include "abc.moc" statements in place
because my project builds fine with qm
to my
set(CMAKE_CXX_FLAGS "-m32 -pthread").
On Wed, May 4, 2016 at 7:29 PM, william.croc...@analog.com
<mailto:william.croc...@analog.com> mailto:william.croc...@analog.com>> wrote:
On 05/04/2016 01:07 PM, Thiago Macieira wrote:
On quarta-feira, 4 de mai
I have never been able to get creator to work. The 5 series won't even run
under my versions of VNC and the NX virtual desktops. This apparently due to a
dependency on new visual fluff.
Qt Quick doesn't indeed not work well over VNC. The common workaround is to
not load Quick based plugins
On 06/15/2016 04:28 AM, Willy Lambert wrote:
Hi all,
I'd like to use state machines to implement some of my behaviors. Is there any
graphical WYSIWIG editor for state machines in QT (or any side well known
project) ?
Many of my coworkers like this, but there is no
explicit Qt integration that
On 06/24/2016 11:52 AM, Bob Hood wrote:
On 6/24/2016 9:42 AM, Alan Ezust wrote:
There is another thread on this very subject from last week:
http://lists.qt-project.org/pipermail/interest/2016-June/023114.html
http://lists.qt-project.org/pipermail/interest/2016-June/023116.html
I agree with yo
On 07/07/2016 08:01 PM, Fabio Giovagnini wrote:
Thanks Frank. So you suggest to build from the sources. I' try. Thanks again
I suggest you just take the weekend and write your own
parser and lexical analysis, void of Flex and Bison.
I did and I have never looked back.
:-)
Bill
Il 07/lug/20
I suggest you just take the weekend and write your own
parser and lexical analysis, void of Flex and Bison.
I did and I have never looked back.
:-)
If you advice to reinvent the wheel, it's bad advice. But it makes sense
to know alternatives which may be easier to use or more convenient to w
Hello:
This is a desk top widgets question.
No QML here.
I have two QTreeView instances.
They both use the same base model,
but differ in subsequent layers of proxy models.
What is the most convenient way to keep then in sync.
When an index is selected in one, I want the corresponding
index to
applies to items which are common to both.)
KF5 has a solution for that. I'm not an Model/View expert, but i think
this is what you're looking for:
https://api.kde.org/frameworks/kitemmodels/html/classKLinkItemSelectionModel.html
Thanks for the pointer. Alas...
- I am industry and this is
On 07/29/2016 10:33 AM, Christoph Feck wrote:
On Friday 29 July 2016 16:14:41 william.croc...@analog.com wrote:
applies to items which are common to both.)
KF5 has a solution for that. I'm not an Model/View expert, but i
think this is what you're looking for:
https://api.kde.org/
On 07/29/2016 11:07 AM, Christoph Feck wrote:
On Friday 29 July 2016 16:58:31 william.croc...@analog.com wrote:
On 07/29/2016 10:33 AM, Christoph Feck wrote:
On Friday 29 July 2016 16:14:41 william.croc...@analog.com wrote:
applies to items which are common to both.)
KF5 has a solution for
IIRC: The first 'L' in LGPL stands for 'Lesser', not 'Library'.
For version 2 (which the above text refers to), it was called
"Library". You are free to use the later versions, whatever name they now have.
See https://www.gnu.org/licenses/old-licenses/lgpl-2.0.en.html
Very good.
- I do n
On 09/04/2016 05:48 PM, Konstantin Shegunov wrote:
Hi,
Do you forward the X? Sometimes this might do it ... for some reason ...
Hello:
I am running on a virtual machine
through an NX windowing system.
Sorry, I just noticed that I do not get the errors
when I run through a VNC based windowing
On 09/07/2016 04:23 PM, Mike Jackson wrote:
We are attempting to track down a memory leak that we _think_ we have. We have
reduced our code to the point where all we do is invoke a new QWidget instance,
show() it, hide() it and then delete it. We do this in a loop 100 times. We
monitor the memory
On 11/07/2016 08:44 AM, Bill Crocker wrote:
This sender failed our fraud detection checks and may not be who they appear to
be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing
I am pretty sure I am who I appear to be.
Bill
___
Interest mail
I am porting my app to Qt 5.7
When I run it, it appears on the screen,
but there is a long pause (~10 secs.) before it is responsive.
I ran it with strace and there is a point where it makes
100K calls to the poll() function, which accounts for the long pause.
I tried running it in a debugger,
On 11/07/2016 07:22 PM, william.croc...@analog.com wrote:
This sender failed our fraud detection checks and may not be who they appear to
be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing
I am porting my app to Qt 5.7
When I run it, it appears on the screen,
but there is a long
.
Also, I put print statements around the call to processEvents and
verified that it takes 5 secs, SOMETIMES.
Bill
- Michael.
-Original Message-
From: Interest [mailto:interest-bounces+sue=sf.mpg...@qt-project.org] On Behalf
Of william.croc...@analog.com
Sent: Tuesday, November 8, 2016 2
On 11/08/2016 09:45 AM, Michael Sué wrote:
Hi,
qApp->processEvents(QEventLoop::ExcludeUserInputEvents,5000);
Your processEvents call timeouts after 5 secs, and you wait for 5 secs, at
least sometimes. How about reducing it to 1 sec
then, as you think it has nothing to do, anyway, and
On 11/08/2016 10:00 AM, Michael Sué wrote:
Hi,
BaseClass::show();
qApp->flush();
// It appears that with Qt 5.7, SOMETIMES, this call to processEvents
waits
// for the full 5 secs though I do not believe there is anything to do.
qApp->processEvents(QEventLoo
But, if there *IS* something to do (sync), and I do not give it enough time,
then the new bug will be that my app only restores window size and location
SOMETIMES, because processEvents was not given enough time.
You seem to be misunderstanding what the timeout is. It doesn't say
"this functi
On 11/14/2016 06:23 AM, william.croc...@analog.com wrote:
This sender failed our fraud detection checks and may not be who they appear to
be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing
But, if there *IS* something to do (sync), and I do not give it enough time,
then the new bug
Perhaps I'm missing something, but why not skip the processEvents call
altogether and just queue an event to do the resizing later?
E.g:
void MyApp::show()
{
...
// The lambda is just quickest to write, you can use a private slot as
well.
QTimer::singleShot(0, [sz, pos] () -> void
From some experimentation it appears that the CPU time required by the
QPainterPath system is quite non-linear in the number of control points.
So, if I break my one long path up into a number of shorter paths, it
draws MUCH faster.
Is that the case with both antialiasing on and off? (They
On 09/28/2018 10:26 AM, Igor Mironchik wrote:
Hello,
I have a dock widget with text edit field. When I set document to QTextEdit
document layouts with smaller width than width of QTextEdit. Look.
Small width
I can't do so to enlarge the width of the text. But when I put enough text to
fit all
On 11/05/2018 10:38 AM, Allan Sandfeld Jensen wrote:
On Montag, 5. November 2018 12:10:15 CET Jean-Michaël Celerier wrote:
I tried building everything with clang 7 and libc++ last week but hit a
qlalr segfault during build. I've been trying to debug it ever since to no
avail.
clang sometimes
We have been using buildbot on a Linux server and multiple Macintosh and Windows
machines as workers for about 9 years. The workers build our Qt based
application, run tests, and if everything passes the application is uploaded to
the buildbot server which then passes the application to our web
Hello,
Is there a current recommended way of catching exceptions before they unwind
through the event loop? I want this for "debug purposes" only. I have few
methods that throw and I (think I) catch (all of) my exceptions before they
reach the event loop, but I wanted to be sure I hadn't forgot
The problem is not the GCC version. It's the set of libraries provided by
the old distribution.
And I guess he could still build his own packages. The libraries would
just
use bundled qt copies if too old. Only the prebuilt packages have higher
requirements, right?
No; e.g. xkbcommon is no l
I have a QTableView.
I use a QStyledItemDelegate on each cell.
The delegate opens a custom, modal editor on double click.
The editor is based on a QDialog and contains a number of widgets,
one of which is a QComboBox.
When I press in the text entry area of the QComboBox,
the whole edit window
You can also check the device pixel ratio for image “@2” alike:
qreal pixel_ratio = QGuiApplication::primaryScreen()->devicePixelRatio();
unsigned int image_scale_ratio=pixel_ratio/1u;
QString
m_image_scale = image_scale_ratio<=1u ? "" :
QString("@%1x").arg(image_scale_ratio);
Please kee
Is there a way to get access to the scroll buttons on a QTabWidget to customize
them?
The issue we're having is that we have a UI that uses a tab widget for
displaying file contents - one tab per open file. Once a user opens enough
files/tabs, the tab scroll buttons pop up (so far so good),
On 03/26/2019 11:02 AM, Murphy, Sean wrote:
[External]
You could add a tool-button with said popup menu associated to it to the
right of the tab widget (e.g. Firefox does this). This would have the
advantage from my PoV that it's always there and works, regardless of
how many tabs are open.
We have a data processing pipeline that looks like so:
Raw Data objects -> Type "A" data objects -> Type "B" data objects ->
Final Data objects
Each step can be considered a filtering process where the following
mathematical relationship holds for the quantities of each type of object:
So the issue I'm having here is that I want to show the user some sort of progress
indicator (this whole pipeline takes a bit of time), but at the start I only know the
raw count, not any of the intermediate or final counts. And because the
A->B->Final portion of the pipeline takes a notic
On 04/16/2019 07:56 AM, Fabrice Mousset | GEOCEPT GmbH wrote:
[External]
Hello,
before starting QtWebAssembly evaluation, I would like to know what are the
“limitation” of the GPL Version?
Does it mean that everything I will develop using QtWebAssembly must be GPL?
At this time, we have devel
Hello:
I have code to create a PNG file from a QGraphicsScene.
When I run this on Linux, text is anti-aliased. This is good.
When I run this on Windows, text is NOT anti-aliased. This is bad.
I would like the text to be anti-aliased.
Am I doing something wrong?
Is this a Windows bug?
Is there a w
nter.setBackgroundMode(Qt::OpaqueMode);
The bottom line is that my original Qt code was good enough
for Linux but not for Windows.
Thanks.
Bill
>
>> Sent: Friday, January 30, 2015 at 10:56 AM
>> From: "william.croc...@analog.com"
>> To: "interest@qt-project.org&q
On 03/18/2015 09:25 AM, Harri Porten wrote:
> On Wed, 18 Mar 2015, Thiago Macieira wrote:
>
>> I'm not sure I will apply a fix to the main codebase since this is a
>> feature added for kernel 2.6.22, almost 8 years ago.
>
> Still very much in use by certain industries who standardized on RH 5 for
>
>
> Bill said:
>> My sight has over 500 Linux machines. Only a handful
>> are running RedHat 6, but we will finally be migrating
>> over the next 6 months to a year.
>
> And when will you be deploying Qt 5.5 to that site?
>
Probably never because I can't get it to build.
Qt5 requires certain ver
>>
>> The problem is RHEL5.
>
> Yes, but the OP also explicitly mentioned RH 6 ("I tried once to get it to
> build on RH6, but even there I got
> the impression that I did not have the required versions of the required
> libraries.").
>
> So I understand they're sitting on thousands of 8 years o
On 03/18/2015 04:27 PM, Scott Aron Bloom wrote:
> On this note.. I a large number of my customers (about 20%) of my users are
> STILL using CentOS 5 or RHEL 5..
> In moving to Qt 5, they are now losing printing support :( They will have to
> print to a PDF and print external to the tool.
> In ED
>
> I know this is not the correct way to go, and is quite inefficient but I
> could not find another way.
> Would anyone have some suggestion on how to handle this correctly?
> Any help would be greatly appreciated.
>
Looks like I did this at some point in the past:
m_Label->setSizePolicy(QSi
On 04/17/2015 12:53 PM, Igor Mironchik wrote:
> Hi, guys.
>
> I have one problem: pixmap "usb-disconnected.png" doesn't draws correctly.
> Draws
> absolutely nothing. And if click on this button application crashes. What is
> the
> problem? Thank you.
>
Have you added the .png file to your .qrc
On 05/03/2015 11:17 PM, Thiago Macieira wrote:
> On Monday 04 May 2015 06:08:55 Nikos Chantziaras wrote:
>> On 03/05/15 13:54, Igor Mironchik wrote:
>>> Hi guys,
>>>
>>> I asked before about similar problem on Windows but now I have the same
>>> problem on Linux.
>>>
>>> I have messagebox.cpp file
> If you define your classes in .h files (not .cpp files) and run qmake,
> then you don't need to #include anything that moc produces.
And if I only use a Q_OBJECT based class in one .cpp file I should
now have to break it out into it's own header file just to make the
build system happy.
I acce
>>
>> it just so happens that one of the possible undefined behaviors is to run
>> exactly like you expected it to.
>
> Good explanation!
>
> I wish this was yet more prominent in the docs. It took me actually 2
> years to figure out that exactly this had been the cause that some of my
> command l
>
> It's certainly one of the uglier gotchas people run into. Here is my humble
> attempt to document it more prominently:
>
> https://codereview.qt-project.org/#/c/114517/
>
> Anyhow, adding stuff to the documentation only helps so much, since people
> also have to read it :)
>
> In general, I
On 07/18/2015 06:34 AM, Elvis Stansvik wrote:
> 2015-07-18 1:13 GMT+02:00 Bill Crocker:
>>
>> Hello:
>>
>> I am having a text rendering problem.
>>
>
>> From some googling, I think it's because the hinting values are
> obtained when unscaled, and then used even when scaled.
>
> What you can do in y
>>>
>>> I am having a text rendering problem.
>>
>>> From some googling, I think it's because the hinting values are
>> obtained when unscaled, and then used even when scaled.
>>
>> What you can do in your example is
>>
>> scene_font.setHintingPreference(QFont::PreferNoHinting);
>>
>
> Elvis
On 07/18/2015 08:02 PM, william.croc...@analog.com wrote:
>
>>>>
>>>> I am having a text rendering problem.
>>>
>>>>From some googling, I think it's because the hinting values are
>>> obtained when unscaled, and then use
On 07/21/2015 01:31 PM, william.croc...@analog.com wrote:
> On 07/18/2015 08:02 PM, william.croc...@analog.com wrote:
>>
>>>>>
>>>>> I am having a text rendering problem.
>>>>
>>>> What you can do in your example is
>>
>
> I have this working with DirectWrite on Windows,
> but it only appears to work when my app is built with debug mode.
> If I build it in release mode then it does *not* work
> and the text appears badly kerned.
>
This was all my fault.
(D'oh My release build was not using the intended dlls.)
On 09/14/2015 11:13 AM, Igor Mironchik wrote:
> Hi,
>
> it seems that problem not in the iterating and deletion from cantainer...
>
> I wrote simple test app and everything is ok.
>
> But something here crashes my app and only in release mode, so I can't
> understand what is the problem...
>
> And
On 09/23/2015 04:00 PM, Thiago Macieira wrote:
> On Tuesday 22 September 2015 16:09:57 Bill Crocker wrote:
>> 2 - During these periods, the invalid SYN cookies number on the server
>> steadily rises:
>> >netstat -ts | grep SYN
>> 302658 invalid SYN cookies received<---
>>
On 10/29/2015 05:05 PM, Thiago Macieira wrote:
On Thursday 29 October 2015 21:49:40 Igor Mironchik wrote:
On 29.10.2015 06:51, Thiago Macieira wrote:
On Thursday 29 October 2015 05:51:36 Igor Mironchik wrote:
P.S. Why QTextStream doesn't have something like get(), peek(), unget(),
putback()?
>
> In details, I have a widget that will display a floating window when the
> user clicks on a QToolButton. This floating widget must be placed below
> the button that summoned its soul, and if the main window moves, the
> floating window must be positioned in the same place.
>
Reimplement the m
On 06/17/2013 09:57 AM, Duane wrote:
> On 6/14/2013 5:06 PM, Till Oliver Knoll wrote:
>> Am 14.06.2013 um 23:02 schrieb Till Oliver
>> Knoll:
>>
>>>
>>> That said, the Qt "cross-platform file dialog" is (was?) terribly slow with
>>> network mapped drives
>>
That's the price we pay for viewing th
On 06/18/2013 01:05 PM, Thiago Macieira wrote:
> On terça-feira, 18 de junho de 2013 08.37.18, Bill Crocker wrote:
>> I have written a server app with Qt (4.7.1) and the image size grows over
>> time. Valgrind found this.
>> Are we missing a call to freeaddrinfo somewhere?
>
> No.
>
You seem prett
Hello:
When my app starts up and appears on the screen it steals the
keyboard focus away from whoever has it. (I do not currently
call QWidget::activateWindow()).
Since this involves the window manager, there is probably not
one answer. I am currently running under Gnome on RedHat
Enterprise Linu
On 09/11/2013 07:08 AM, nate.y...@gmail.com wrote:
> Hi guys,
>
> I have a frameless dialog and implement the title bar by myself. I implement
> the
> mousePressEvent, mouseReleaseEvent and mouseMoveEvent of the dialog, so users
> can drag the dialog. Every thing works fine until I put a QLabel, w
>
> Can you find it?
>
> QString
> MakeDigest( QStringList list ) {
> QCryptographicHash ch(QCryptographicHash::Md5);
> foreach( QString s, list )
> ch.addData( s.toAscii() );
> return ch.result();
> }
>
Yes. The problem is in the conve
On 10/30/2013 06:12 AM, Philipp Kursawe wrote:
> I want to detect how users usually work with the application. Do they click
> more
> or use the shortcuts. This way we can optimize the UI.
>
You can try installing a global event filter on the app.
You would then see all events go by, some of whic
On 11/22/2013 02:31 PM, an...@familiesomers.nl wrote:
> Bill Crocker schreef op 22.11.2013 20:19:
>> Gang:
>>
>> I have created my own item model by sub-classing QAbstractItemModel.
>>
>> Functions like rowCount take a parent index so the model
>> knows for which index it is being asked to return t
Gang:
I have a QTableView which uses a custom
model based on QAbstractItemModel.
The model sets the Qt::ItemIsUserCheckable flag
for one of the columns and the model data()
function responds to the Qt::CheckStateRole
for the same column. The result is a working
check box in the corresponding colum
>>
>> My problem is that the check box is presented
>> flush left in the column and I would like
>> it to be centered. The closest I could find was
>> Qt::TextAlignmentRole which didn't sound right
>> or have any affect.
>>
>> Any help would be appreciated.
>>
> There is no easy way to make the ch
1 - 100 of 172 matches
Mail list logo