Re: [Interest] Qt, ibus and french keyboard

2013-11-21 Thread Guido Seifert
> Now that's the answer anyone was hoping for. It is the correct answer. By far not enough info in his mail to give a more qualified answer. It is not even clear, why he thinks that his problem is in any way Qt related. Ibus is not a Qt program. Ubuntu is most likely GNOME. But he might have

Re: [Interest] Qt, ibus and french keyboard

2013-11-21 Thread Bernhard Seßler
On 21.11.2013 17:28, Guido Seifert wrote: > How is this related to Qt? I am afraid, you are totally wrong here > with your question. Just because some program uses an environment > variable with 'QT' in it, does not make it a Qt related problem. > Perhaps you should ask in one of the StackOverflow

Re: [Interest] Qt, ibus and french keyboard

2013-11-21 Thread Bernhard Seßler
Hi, On 21.11.2013 15:33, Clément Geiger wrote: > Hi, > > > I also saw that QT_IM_MODULE was set to xim, whereas GTK_IM_MODULE was set > to ibus. So I tried to launch the app with QT_IM_MODULE=ibus, but that > didnt change anything. Is the application you're using based on Qt5? If yes, is the

Re: [Interest] Custom QPushButton

2013-11-21 Thread Bernhard Seßler
Hi again, On 21.11.2013 18:11, Graham Labdon wrote: > Say I have a push button for which I have set an icon and set the text to an > empty string. > When this is displayed all I see is the Icon, which is what I want. > However when the button is clicked the rectangular background for the button

Re: [Interest] Custom QPushButton

2013-11-21 Thread Bernhard Seßler
Hi, or, even shorter: ---8<--- QPushButton, QPushButton:hover, QPushButton:pressed, QPushButton:default, PushButton:disabled { // common content } --->8--- Regards, Bernhard On 21.11.2013 18:00, William Hallatt wrote: > Hi Graham, > > If I remember correctly, you should be able to do that w

[Interest] OpenGL ES2.0 on target board

2013-11-21 Thread Ramesh Nelakuditi
Hi, We are developing Qt widgets application using Qt 5.1.1 SDK. We plan to use CUPID i.MX35 board (http://www.garz-fricke.com/cupid-57-boxed_en.html) which has only Linux frame buffer support. I understand for classes QQuickItem or QSG* or QML, we need to have support for OpenGL ES2.0 on target

Re: [Interest] Custom QPushButton

2013-11-21 Thread William Hallatt
Hi Graham, I'm pretty sure you should be able to do that by setting the correct values in QPushButton:pressed, e.g. QPushButton:pressed { color: rgb(150, 150, 150); background-color: rgb(150, 150, 150); border-style: none; } http://qt-project.org/doc/qt-4.8/stylesheet-reference.html http:

[Interest] Custom QPushButton

2013-11-21 Thread Rayner Pupo
You can do whatever you want by subclassing QPushButton and reimplementing paintEvent function. using QStyleOptionButton you can draw the button exactly like a normal one but looking allways like normal state, just set the propper button feature for the styleOption

[Interest] Enabling Harfbuzz on Mac for Qt5

2013-11-21 Thread Joshua Grauman
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

[Interest] Qt 5.2 workflow for Android, iOS q

2013-11-21 Thread VStevenP
The new workflow for targeting Android and iOS in the forthcoming Qt 5.2 / Qt Creator 3.0.0 is so easy and useful Thanks to those who have done the work to make it so easy to build/deploy/run for Android and iOS from Qt Creator 3.0.0 Beta/pre-rc1 releases. I have had no issues with my QtQuick2

Re: [Interest] Custom QPushButton

2013-11-21 Thread William Hallatt
Hi Graham, If I remember correctly, you should be able to do that with stylesheets also, e.g if you don't want the button to change, ever, you could do something like this: QPushButton { // content is the same as all the others } QPushButton:hover { // content is the same as all the others } QP

Re: [Interest] Custom QPushButton

2013-11-21 Thread Philipp Kursawe
Thats the focused pseudo style. On Thu, Nov 21, 2013 at 6:11 PM, Graham Labdon < graham.lab...@avalonsciences.com> wrote: > Hi William > > Thanks for that > > Say I have a push button for which I have set an icon and set the text to > an empty string. > > When this is displayed all I see is the

Re: [Interest] Windows segfault, but not on Linux

2013-11-21 Thread spam2
I'm not sure if your problem is related to "asynchronous exceptions". Your code can generate a access violation exception, but the exeption occurs in other frame (not in your code). Citando William Hallatt : > Good day everybody, > > I have a bit of an odd scenario. At home I have Qt 5.2.x

Re: [Interest] Windows segfault, but not on Linux

2013-11-21 Thread William Hallatt
I think I found the problem, thanks to everybody who contributed! Out of interest, it turns out that: 1. I DID have slots that were connected to two different timers, the first resulted in a sequence of events that deleted and nulled a bunch of pointers, the second resulted in a sequence

[Interest] Configure 3.3.5 for canvas and xml

2013-11-21 Thread BM Mahfood
Hi all, I was directed by someone at qt-project.org/forums to post my question to this mailing list, since there doesn't seem to be anyone in that forum that knows enough about 3.x configuration. So here I am, hoping someone can help me with this issue. I am working on an old application my

[Interest] Custom QPushButton

2013-11-21 Thread Graham Labdon
Hi How can I stop the appearance of a QPushButton changing when it is hovered over or pressed. I know how to change the background colour for these events by setting the appropriate stylesheet, but cannot see how I can stop them changing at all. I would appreciate some help in getting this workin

[Interest] Qt, ibus and french keyboard

2013-11-21 Thread Clément Geiger
Hi, One of my user on Ubuntu want to be able to input chinese using IBus. She also uses a french keyboard. Here is the problem: when she just want to type french, she can't use the circumflex accent (^) as we french are used to do: pressing ^ then e gives ê. Here it ends up being ^e. I looked ar

[Interest] R: Map position of listview item

2013-11-21 Thread Simone
Hi Mark, I followed the documentation and now all is working as expected! Thanks so much! Simone Da: Mark Tucker [mailto:mark.tuc...@airborne.aero] Inviato: giovedì 21 novembre 2013 15:56 A: Simone; interest@qt-project.org Oggetto: RE: [Interest] Map position of listview item Hello,

Re: [Interest] QImage::save forces client to open file before call

2013-11-21 Thread Thiago Macieira
On quinta-feira, 21 de novembro de 2013 15:09:33, alexander golks wrote: > the question now is, why was this change made? You should have asked that in 2009, shortly after 4.5.0 was released. Now it's going to be extremely unlikely that anyone remembers why that change was made. > this change is

Re: [Interest] Qt, ibus and french keyboard

2013-11-21 Thread Guido Seifert
How is this related to Qt? I am afraid, you are totally wrong here with your question. Just because some program uses an environment variable with 'QT' in it, does not make it a Qt related problem. Perhaps you should ask in one of the StackOverflow forums? Or maybe... just maybe you might have a

[Interest] QImage::save forces client to open file before call

2013-11-21 Thread alexander golks
hi, after switching from 4.3.0 to current 4.8.5 i have seen that doing this: QImage image; image.save("goodfilename.tif"); // or whatever supported format is not working anymore. a bit digging done, i see the relevant code change was made in 4.5.0: bool QImageWriter::canWrite() const {

Re: [Interest] Custom QPushButton

2013-11-21 Thread Graham Labdon
Hi William Thanks for that Say I have a push button for which I have set an icon and set the text to an empty string. When this is displayed all I see is the Icon, which is what I want. However when the button is clicked the rectangular background for the button is displayed in the background col

Re: [Interest] Map position of listview item

2013-11-21 Thread Mark Tucker
Hello, In this case it sounds like you want to be using either mapToItem() or mapFromItem(). Documentation for both here: http://doc-snapshot.qt-project.org/4.8/qml-item.html#mapFromItem-method Thanks Mark From: interest-bounces+mark.tucker=airborne.a...@qt-project.org [mailto:interest-boun

Re: [Interest] Windows segfault, but not on Linux

2013-11-21 Thread Etienne Sandré-Chardonnal
Hey, that's using a tank for killing a bug. Why not std::atomic or QAtomicInt ? In heavy cases (such as mine...) that's a huge performance issue and code is also lighter. 2013/11/21 Konrad Rosenbaum > > Hint 2: never assume something as innocuous as var++ is an atomic > operation unless it is pr

Re: [Interest] Windows segfault, but not on Linux

2013-11-21 Thread Stephen King
> Sent: 21 November 2013 09:12 > To: Koehne Kai > Cc: interest@qt-project.org > Subject: Re: [Interest] Windows segfault, but not on Linux > > Thanks for the input! > > I have run it through valgrind before and didn't pick up anything weird, but > I think I will have to investigate this route more

Re: [Interest] Windows segfault, but not on Linux

2013-11-21 Thread William Hallatt
This is a very interesting angle to consider, thanks. I do not personally fire up multiple threads for this application...but my Ubuntu box has a single CPU whereas the Windows machine I am trying to run it on has 8...mmm On 21 November 2013 12:36, Konrad Rosenbaum wrote: > Hint: if your

Re: [Interest] Windows segfault, but not on Linux

2013-11-21 Thread Konrad Rosenbaum
Hint: if your code is multi-threaded, behavior is radically different on Linux and Windows: * which thread runs first differs on single-CPU (and sometimes multi-CPU) systems * creating threads takes slightly longer on Windows, which may change some timing in accessing variables during thread s

[Interest] Several targets in Android part of Qt project

2013-11-21 Thread Igor Grivko
Hello all, I have a Qt project that has different modules and different targets (subdirs). I created the Android target for one of those "subdirs". Can anyone tell me how can I create another target in Android part of the project? Is it possible - or I have to divide into smaller projects? I me

[Interest] Map position of listview item

2013-11-21 Thread Simone
Hello, In my current project I have a listview (QML QtQuick1.1) and I want to know the exactly Y position of an item inside the list. But I need the position relative to the container of the listview, not relative to the content. I need this because for speedup the scroll, I removed a lot of

Re: [Interest] Windows segfault, but not on Linux

2013-11-21 Thread William Hallatt
Thanks for the input! I have run it through valgrind before and didn't pick up anything weird, but I think I will have to investigate this route more thoroughly (I admit to doing some nasty raw pointer work with this guy, but the fact that it ran so smoothly on Linux made me think I had nailed all

Re: [Interest] Grouping Items in TreeWidget

2013-11-21 Thread Philipp Kursawe
And post the code fragment here maybe? ;) On Wed, Nov 20, 2013 at 10:58 AM, Joseph W. Joshua wrote: > On 20-Nov-13 12:36 PM, André Somers wrote: > > Joseph W. Joshua schreef op 20-11-2013 9:40: > >> Hi all, > >> > >> In the attached image, you can see how I am able to group items in a > >> listv

Re: [Interest] Windows segfault, but not on Linux

2013-11-21 Thread Koehne Kai
> -Original Message- > From: interest-bounces+kai.koehne=digia@qt-project.org > [mailto:interest-bounces+kai.koehne=digia@qt-project.org] On Behalf Of > Bo Thorsen > Sent: Thursday, November 21, 2013 7:43 AM > To: interest@qt-project.org > Subject: Re: [Interest] Windows segfault,