Re: [Interest] QGraphicsView stays big

2012-06-07 Thread Till Oliver Knoll
[proper recipient] Am 07.06.2012 um 15:22 schrieb "Waitman Gobble" : > ... > Per recommendation I've just tried this: > > gs->clear(); > gs->setSceneRect(QRectF()); > gs->addPixmap(pm); Ah, wait a minute... I actually meant setting the "null" QRectF /after/ adding all your item(s) - does that

Re: [Interest] QGraphicsView stays big (solved)

2012-06-07 Thread Till Oliver Knoll
Am 08.06.2012 um 04:19 schrieb "Waitman Gobble" : > ... >gs->addPixmap(pm); >gs->setSceneRect(pm.rect()); //set the size using Andre's way. Hmm, that's odd. While your code makes perfect sense from what I understand from the previously linked Qt docs is that it should al

Re: [Interest] QGraphicsView stays big (solved)

2012-06-07 Thread Waitman Gobble
Andre Haupt wrote .. > On Thu, Jun 07, 2012 at 06:22:56AM -0700, Waitman Gobble wrote: > > yeah I suspect it does create a memory leak, but it does seem to solve my > > size > issue with QGraphicsScene; > > > > > > Per recommendation I've just tried this: > > > > gs->clear(); > > gs->setSceneR

Re: [Interest] OSX 10.6.* + Qt4.8.1 Problem

2012-06-07 Thread Till Oliver Knoll
Am 07.06.2012 um 23:52 schrieb Stephen Chu : > On 6/7/12 4:23 PM, Till Oliver Knoll wrote: >> Am 07.06.2012 um 14:06 schrieb "Alexander Carôt" : >>> >> ... >> However if you /really/ want to (also) support 32bit CPUs, you now need to >> compile Qt yourself with the appropriate build flags. >> >

Re: [Interest] version control on MySQL-Qt

2012-06-07 Thread Till Oliver Knoll
Am 07.06.2012 um 19:26 schrieb Konrad Rosenbaum : > Hi, > > On Thursday 07 June 2012 15:01:11 Sujan Dasmahapatra wrote: >> I have a mysql database which I am accessing using my tool developed in >> QT. Tables are created. Can we create the same table with the same name >> but with different re

Re: [Interest] OSX 10.6.* + Qt4.8.1 Problem

2012-06-07 Thread Stephen Chu
On 6/7/12 4:23 PM, Till Oliver Knoll wrote: > Am 07.06.2012 um 14:06 schrieb "Alexander Carôt" : > >> ... >> >> ld: warning: in >> /Users/soulalex/QtSDK2/Desktop/Qt/4.8.1/gcc/lib/QtScript.framework/QtScript, >> file was built for unsupported file format which is not the architecture >> being lin

Re: [Interest] OSX 10.6.* + Qt4.8.1 Problem

2012-06-07 Thread Till Oliver Knoll
Am 07.06.2012 um 14:06 schrieb "Alexander Carôt" : > Hello all, By the way, you seem to have hijacked your own "Changing QSpinEdit color" thread! Even my mobile phone mail client sorts your "new" mail under this existing thread. Everyone on the Internet knows by now that *replying* to an email

Re: [Interest] OSX 10.6.* + Qt4.8.1 Problem

2012-06-07 Thread Till Oliver Knoll
Am 07.06.2012 um 14:06 schrieb "Alexander Carôt" : > ... > > ld: warning: in > /Users/soulalex/QtSDK2/Desktop/Qt/4.8.1/gcc/lib/QtScript.framework/QtScript, > file was built for unsupported file format which is not the architecture > being linked (i386) --- and then it spreads tons of errors du

Re: [Interest] version control on MySQL-Qt

2012-06-07 Thread Konrad Rosenbaum
Hi, On Thursday 07 June 2012 15:01:11 Sujan Dasmahapatra wrote: > I have a mysql database which I am accessing using my tool developed in > QT. Tables are created. Can we create the same table with the same name > but with different revision. Is this facility available in MySQL and > QtI

[Interest] Subclassing QTreeItemWidget seg faults when adding child

2012-06-07 Thread Michael Jackson
I decided to subclass QTreeItemWidget in order to add some custom behavior and catch/emit signals slots. Here is my class decl: class PMDirTWI : public QObject, public QTreeWidgetItem { Q_OBJECT; public: PMDirTWI(QString outputDir, QString pathTemplate, QString dirName,

Re: [Interest] QGraphicsView stays big

2012-06-07 Thread Waitman Gobble
Andre Haupt wrote .. > On Thu, Jun 07, 2012 at 06:22:56AM -0700, Waitman Gobble wrote: > > yeah I suspect it does create a memory leak, but it does seem to solve my > > size > issue with QGraphicsScene; > > > > > > Per recommendation I've just tried this: > > > > gs->clear(); > > gs->setSceneR

[Interest] How to refresh QML View when QAbstractListModel contents are modified?

2012-06-07 Thread Harri Pasanen
Hi, I have a QML PathView hooked up to a C++ model. My problem is that when I update a list item in C++, the QML PathView hooked up to it is not updated. My update function is: void FrameList::rename(int i, const QString &newname) { _itemList[i].setName(newname); QModelIndex r1 = in

Re: [Interest] QGraphicsView stays big

2012-06-07 Thread Andre Haupt
On Thu, Jun 07, 2012 at 06:22:56AM -0700, Waitman Gobble wrote: > yeah I suspect it does create a memory leak, but it does seem to solve my > size issue with QGraphicsScene; > > > Per recommendation I've just tried this: > > gs->clear(); > gs->setSceneRect(QRectF()); > gs->addPixmap(pm); > > .

Re: [Interest] QGraphicsView stays big

2012-06-07 Thread Waitman Gobble
Andre Haupt wrote .. > On Thu, Jun 07, 2012 at 05:27:27AM -0700, Waitman Gobble wrote: > > Till Oliver Knoll wrote .. > > > 2012/6/7 Waitman Gobble : > > > > ... > > > > When I load an image into QGraphicsScene and add the scene to > > > > QGraphicsView, > > > the QGraphicsView expands to image

Re: [Interest] QGraphicsView stays big

2012-06-07 Thread Andre Haupt
On Thu, Jun 07, 2012 at 05:27:27AM -0700, Waitman Gobble wrote: > Till Oliver Knoll wrote .. > > 2012/6/7 Waitman Gobble : > > > ... > > > When I load an image into QGraphicsScene and add the scene to > > > QGraphicsView, > > the QGraphicsView expands to image size, but if I clear and load anothe

[Interest] version control on MySQL-Qt

2012-06-07 Thread Sujan Dasmahapatra
I have a mysql database which I am accessing using my tool developed in QT. Tables are created. Can we create the same table with the same name but with different revision. Is this facility available in MySQL and QtI want to update the table with the same name but new dataset will be ther

Re: [Interest] QGraphicsView stays big

2012-06-07 Thread Waitman Gobble
Till Oliver Knoll wrote .. > 2012/6/7 Waitman Gobble : > > ... > > When I load an image into QGraphicsScene and add the scene to QGraphicsView, > the QGraphicsView expands to image size, but if I clear and load another image > which is smaller, it stays the same size. > > That is by design and do

[Interest] OSX 10.6.* + Qt4.8.1 Problem

2012-06-07 Thread Alexander Carôt
Hello all, I have a build problem after upgrading to Qt4.8.1 on OSX10.6.8 (I used the default web installation): ld: warning: in /Users/soulalex/QtSDK2/Desktop/Qt/4.8.1/gcc/lib/QtScript.framework/QtScript, file was built for unsupported file format which is not the architecture being linked (

Re: [Interest] submit policy

2012-06-07 Thread Stefan
Hi Mark, thank you for your response! I have been looking at the QItemDelegate class but am pretty unsure what method to override. Can you point me to the right direction? Thank you in advance Stefan From: Mark Brand To: Stefan Cc: Diego Schulz ; "interes

Re: [Interest] Changing QSpinEdit color

2012-06-07 Thread André Somers
Op 7-6-2012 8:45, Till Oliver Knoll schreef: > Am 06.06.2012 um 13:20 schrieb André Somers: > >> ... setPalette cannot be relied on, and is thus effectively useless. Pitty >> is: style sheet support is incomplete (no API for custom widgets), so in >> some cases (mainly if you use your own widgets