Re: [Qt-jambi-interest] juic on Mac OS X

2008-03-07 Thread Gunnar Sletta
Stephan Seufert wrote: > Hello everybody, > > I am running QtJambi 4.3.3 on Mac OS X Leopard. I have some > difficulties executing juic. I can only call juic from inside the lib > directory. Calls from different locations result in the following > error message: > > --- > > dyld: Library n

Re: [Qt-jambi-interest] juic on Mac OS X

2008-03-07 Thread Gunnar Sletta
Stephan Seufert wrote: > Dear Gunnar, > > thank you for your quick reply. QtJambi is installed to > > /Applications/qtjambi > > The PATH variable is set to $PATH:/Applications/qtjambi:/Applications/ > qtjambi/bin > and $DYLD_LIBRARY_PATH is pointing to /Applications/qtjambi/lib. Looks fine...

Re: [Qt-jambi-interest] juic on Mac OS X

2008-03-10 Thread Gunnar Sletta
Stephan Seufert wrote: > It's a binary package. Hi Stephan, I'm not seing any DYLD_LIBRARY_PATH in your environment... > e176248049:qtjambi steps$ env > MANPATH=/sw/share/man/de:/sw/share/man:/usr/share/man:/usr/local/share/man:/usr/X11/man:/sw/lib/perl5/5.8.8/man:/usr/X11R6/man > > > TERM_PR

Re: [Qt-jambi-interest] Displaying the hierarchical structure of an xml file using model/view framework

2008-03-11 Thread Gunnar Sletta
[EMAIL PROTECTED] wrote: > Hello, > > I'm trying to write a small app for displaying the hierarchical structure > of an xml file using the model/view framework. > > To do this, I have created a XmlTreeModel class inherited from > QAbstractItemModel to hold the hierarchical model and a QTreeView t

[Qt-jambi-interest] Qt Jambi 4.4.0 Preview

2008-03-12 Thread Gunnar Sletta
Hi fellow developers! We're proud to announce the first release of Qt 4.4 for Java. We hope you find it enjoyable! For more information see Eskils blog: http://labs.trolltech.com/blogs/2008/03/12/qt-jambi-44-preview-released/ And the Press Release: http://trolltech.com/company/newsroom/announce

Re: [Qt-jambi-interest] Qt Jambi 4.4.0 Preview

2008-03-12 Thread Gunnar Sletta
Felix Berger wrote: > Hi Gunnar, > > that's great news! > > Will it work with the existing eclipse plugin? Hi Felix, We've created a new eclipse installation that can be downloaded from the same location as the 4.4.0 preview packages: http://trolltech.com/developer/downloads/qt/qtjambi44-prev

Re: [Qt-jambi-interest] [QT Jambi 4.4] Media player not working

2008-03-14 Thread Gunnar Sletta
Dimitri Frederickx wrote: > Hi, > > I've downloaded the QT Jambi 4.4 preview. I'm working on Mac OS X and I > can't start the media player example. Can someone tell me what I'm doing > wrong? > > I don't know if I should post it in this newsgroup of the Qt preview > newsgroup, but hopefully so

Re: [Qt-jambi-interest] [QT Jambi 4.4] Media player not working

2008-03-14 Thread Gunnar Sletta
Dimitri Frederickx wrote: > I don't have anything on the DYLD_LIBRARY_PATH. Here is the result of the > command: > > otool -L > /private/tmp/QtJambi_dfx_i386_4.4.0_01_gcc-20080311-1153/lib/libphonon. > 4.dylib > /private/tmp/QtJambi_dfx_i386_4.4.0_01_gcc-20080311-1153/lib/libphonon.4.dylib: >

Re: [Qt-jambi-interest] Qt Jambi 4.4.0

2008-05-06 Thread Gunnar Sletta
Dimitri Frederickx wrote: > Now that Qt 4.4.0 is released to the public, can someone maybe tell us > if there is already a target date for the Qt Jambi 4.4.0 release? Hi Dimitri, We're aiming for late Q2 for the Qt Jambi 4.4.0 release. best regards, Gunnar

Re: [Qt-jambi-interest] Problem with qtjambi after upgrading Ubuntu to 8.04

2008-05-07 Thread Gunnar Sletta
Maciej Strzelczyk wrote: > Some time ago my friend wrote an application using qtjambi. When I had > Ubuntu 7.10 everything worked fine and I could use it. After updating > ubuntu to 8.04 something changed and I can't use this application any > more. When I try to run it using "java -classpath > /us

Re: [Qt-jambi-interest] DragMode.ScrollHandDrag inconsistent behaviour

2008-05-08 Thread Gunnar Sletta
Dawid Sip wrote: > Hi, > im playing alot with GraphicsView these days and I came accross a > following problem. I have a reimplemented QGraphicsView class where i > interecept the keyboardkeys: > > protected void keyPressEvent(QKeyEvent event){ > event.accept(); >

Re: [Qt-jambi-interest] Polygonzug

2008-05-08 Thread Gunnar Sletta
Dawid Sip wrote: Hi, I'm working on an option in my graphics editing application for drawing Polygon around an object in an image. It should work comparably to Path in Gimp except for that I'd like the line between the last added vertex and the one to be placed to be animated (stretched betwee

Re: [Qt-jambi-interest] QTextEdit - Getting the current line/cursor position

2008-05-08 Thread Gunnar Sletta
TyR wrote: Hi, I'm writing a simple text editor and I'm using QTextEdit as a base I'm trying to implement a "indent" action. I basically just want to add four spaces at the beginning of the current line. By "current line" I mean the line that the cursor (or whatever it's called) is at. You know..

Re: [Qt-jambi-interest] DragMode.ScrollHandDrag inconsistent behaviour

2008-05-09 Thread Gunnar Sletta
Dawid Sip wrote: > Hi Gunnar, > > yeah, it helped. Thank you! When is qt jambi 4.5 releasing? Q3-4 of this > year? Hard to say ;-) We haven't set up a release schedule for it yet, but towards the end of the year most likely. - Gunnar ___ Qt-jambi-in

Re: [Qt-jambi-interest] Tray-area and hotkeys

2008-05-09 Thread Gunnar Sletta
Stephan H Wissel wrote: > Hi, > I just get started... > I need to create an app that lives in the system tray and reacts on a > global hotkey (on win/lin/osx. The tray icon is there, but how would i > define the global hotkey (something like apple-shift G or win-G) > :-) stw Hi Stephan, Qt does n

Re: [Qt-jambi-interest] Tray-area and hotkeys

2008-05-12 Thread Gunnar Sletta
Stephan H Wissel wrote: > Gunnar Sletta <[EMAIL PROTECTED]> wrote on 09/05/2008 10:39:57 PM: > >> Stephan H Wissel wrote: >>> Hi, >>> I just get started... >>> I need to create an app that lives in the system tray and reacts on a >>> global h

Re: [Qt-jambi-interest] Missing signals in designer editor?

2008-05-13 Thread Gunnar Sletta
Derek Fountain wrote: > I'm having my first play with the Jambi 4.4 version of designer. > > I created a dialog with a radio button on it. When I go to the > Signal/Slot editor window and click the + button I get a new entry. I > then clicked Sender and chose my radio button from the drop down. So

Re: [Qt-jambi-interest] designer not finding JVM

2008-05-13 Thread Gunnar Sletta
Derek Fountain wrote: > I've correctly set up the QtJambi 4.4 preview on my SUSE box at home, > but I'm having trouble getting designer to run on my Ubuntu box at work. > When I run the designer.sh script it says: > >> designer.sh > QtJambi: failed to locate the JVM. Make sure JAVADIR is set, and

Re: [Qt-jambi-interest] selecting items with rubberband

2008-05-16 Thread Gunnar Sletta
Dawid Sip wrote: > Hi, > Im still working on my Polygonal Path which at the moment uses > QGraphicsSvgItem for Vertices. At the moment when user presses Shift the > DragMode for QGraphicsView turns to RubberBand. I want the ability to > select one, two, ..., all vertices of the MyPolygon under c

Re: [Qt-jambi-interest] Jambi with Groovy

2008-05-19 Thread Gunnar Sletta
> Thanks for the reply. > > May I humbly suggest that setProperty be changed to setQProperty as this > would seem to be consistent with other naming in Qt. Hi Toddy, Changing setProperty -> setQProperty would make the API very inconsistent, and is not an option. Its called setLayout, rather th

Re: [Qt-jambi-interest] Cannot use Sql drivers

2008-05-19 Thread Gunnar Sletta
Bráulio Barros de Oliveira wrote: > Hello, > > I'm developing my first QtJambi application. It needs a connection to > PostgreSQL, but, unfortunetely, my qt jambi installation doesn't detect its > driver, even the included by default QSQLITE driver. For PostgreSQL plugin > support, I've copied the

Re: [Qt-jambi-interest] Cannot use Sql drivers

2008-05-19 Thread Gunnar Sletta
Bráulio Barros de Oliveira wrote: > I had already tried setting QT_PLUGIN_PATH both on eclipse and on the shell > and unfortunetely it didn't work. > QApplication.addLibraryPath("/home/braulio/qtjambi-linux32-gpl-4.3.4_01/plugins"); This one is the correct to use. > The abose function put just

Re: [Qt-jambi-interest] Cannot use Sql drivers

2008-05-19 Thread Gunnar Sletta
Bráulio Barros de Oliveira wrote: > Uhm, the strange thing is that it work on the launcher (./qtjambi.sh), > demonstrating that the plugins work on it. qtjambi.sh sets QT_PLUGIN_PATH and the launcher also sets QApplication.addLibraryPath() one of those is enough. > I was trying to make a compi

Re: [Qt-jambi-interest] Cannot use Sql drivers

2008-05-19 Thread Gunnar Sletta
Bráulio Barros de Oliveira wrote: > After a long fight with your help, it finnaly worked :) > Also, I was able to build a archlinux package (PKGBUILD attached). QtJambi > now works perfect with my qt installation (and plugins). The compilation > succed after using the qt source and setting QTDIR to

Re: [Qt-jambi-interest] Jambi with Groovy

2008-05-20 Thread Gunnar Sletta
Todd Weiler wrote: > Hi Gunnar > > Ok - setQProperty was a bad idea. > > Thank you for finding that bug in the groovy bug system - I'm > embarrassed I didn't check there myself. I hope that they will be able > to deal with the issue. Its scheduled for fixing in 1.5.7 and 1.6-beta2 according t

Re: [Qt-jambi-interest] items position in scene coordinates

2008-05-20 Thread Gunnar Sletta
Dawid Sip wrote: > Hi, > Im still doing my Polygon Path and I came across a following problem, > I'm guessing this could be a bug. Inside of MyGraphicsView class i > create a MyPolygon instance. MyPolygon class has an inner class > definition of MyGraphicsEllipseItem which I use to visualize con

Re: [Qt-jambi-interest] 64 bit package for mac ?

2008-05-25 Thread Gunnar Sletta
Arne Stocker wrote: > the same message appears if I start qtjambi.sh. There was only a 32 bit > package for max-os in the download area. > > Unfortunately my Application was compiled against the jre 1.6, so I need > to run the jre in 64 bit mode on a 64 bit dual core machine (with > mac-osx 10.

Re: [Qt-jambi-interest] constant item size uppon viewport scaling

2008-05-28 Thread Gunnar Sletta
On 28. mai. 2008, at 20.40, Dawid Sip wrote: > Hi, > as some might remember, im doing a lot with > GraphicsView/GraphicsScene/GraphicsItem. So my recent problem is > that I > have EllipseItems in my scene. These ellipses are of width and > hight-16. > The viewport is scaled in the overriden r

Re: [Qt-jambi-interest] Error while subclassing QAbstractTableModel

2008-05-28 Thread Gunnar Sletta
Matt wrote: > package com.test; > > import com.trolltech.qt.QNativePointer; > import com.trolltech.qt.core.QModelIndex; > import com.trolltech.qt.gui.QAbstractTableModel; > > public class *ExampleModel* extends QAbstractTableModel { > > public int columnCount(QModelIndex parent) { >

Re: [Qt-jambi-interest] QFileDialog problem

2008-06-04 Thread Gunnar Sletta
Sahar Payandeh wrote: > Dear Eskil, > > Thanks for your help, but using "setNameFilter" wouldn't help me. I think I > can't explain my problem clearly. > > I want to in "Files of type" in "getOpenFileName "add "All supported > opetions(All file)", I mean I don't want to show the user what the sup

Re: [Qt-jambi-interest] QFileDialog problem

2008-06-05 Thread Gunnar Sletta
Sahar Payandeh wrote: > Dear Gunnar, > > Thanks for your help.I tesetd this code but unfortunately it does not work. > I don't undrestand what is "find media files" here. > Would you please explain more? > I also need find some code example related to this on the net? > Do you have any suggestion?

Re: [Qt-jambi-interest] QFileDialog problem

2008-06-05 Thread Gunnar Sletta
Sahar Payandeh wrote: > Dear Gunner, > > I work by python not C++ and it dosen't have "QFileDialog.Filter" . Hi Sahar, This is a mailing list for Qt Jambi, the Java version of Qt. If you're using PyQt, I suggest you direct your questions to the pyQt forums. - Gunnar ___

Re: [Qt-jambi-interest] QFileDialog , set filter problem

2008-06-09 Thread Gunnar Sletta
Sahar Payandeh wrote: > When I use "getOpenFileName" : > > QString QFileDialog::getOpenFileName ( const QString & startWith = > QString::null, const QString & filter = QString::null, QWidget * parent = 0, > const char * name = 0, const QString & caption = QString::null, QString * > selectedFilter

Re: [Qt-jambi-interest] jambi on mac

2008-06-09 Thread Gunnar Sletta
Hi Arne, Did you remember to run the example with -XstartOnFirstThread? It looks like you didn't because you have Qt GUI being used in both thread 0 and thread 1 according to your stack. - Best regards, Gunnar ___ Qt-jambi-interest mailing list Qt-jam

Re: [Qt-jambi-interest] Splitter

2008-06-10 Thread Gunnar Sletta
Dawid Sip wrote: > Hi, > Im having problems with adjusting the sizes of the widget in my > splitters. I have two splitters, a vertical and a horizontal one. The > father of the horizontal splitter is the vertical splitter and I use the > following code piece to add the widget to the splitters: >

[Qt-jambi-interest] Qt Jambi 4.4.0 Released!

2008-06-10 Thread Gunnar Sletta
Hello fellow developers! Its with great pleasure that we finally release Qt Jambi 4.4.0 to the masses. For the full press release, check out: http://trolltech.com/company/newsroom/announcements/press.2008-06-05.8292370812 Happy Coding Eskil and Gunnar

Re: [Qt-jambi-interest] QPainterPath

2008-06-10 Thread Gunnar Sletta
Helge Fredriksen wrote: > Hello! > > It seems that painting in a QGraphicsItem using QPainterPath seem to > demand a creation of this object each time the paint() method is called > for well behaved painting to occur (we experience that the painting is > performed with "flashing" and high CPU r

Re: [Qt-jambi-interest] QGraphicsScen.changed connection

2008-06-10 Thread Gunnar Sletta
Dawid Sip wrote: > Hi, > > Im trying to connect the 'changed' signal of my QGraphicsScene 'scene' > object to a slot. Other signals of the scene object are easy to connect, > but changed is a little different due to its generic List object - > java.util.List> > > I connect my slot like this: >

Re: [Qt-jambi-interest] UI_ generated files

2008-06-10 Thread Gunnar Sletta
Luis Zaldivar wrote: > I'm using QT jambi wht eclipse and the eclipse integration. > > In the qtjambi 4.4 preview, the generated classes from designer forms > where named ui_nameofform and in this final release are named just > "nameofform" > > is this expected? This is causing some duplicated

Re: [Qt-jambi-interest] QPainterPath

2008-06-11 Thread Gunnar Sletta
Helge Fredriksen wrote: > Sorry, my mistake, I found a bug in my code. No tip on the crash report, > though? > > I see that there's a couple of stability related fixes that came in Qt Jambi > 4.4, which may mend our problems with stability. > Also, I'm curious about the new phonon framework in thi

Re: [Qt-jambi-interest] Qt Jambi 4.4.0 Released!

2008-06-11 Thread Gunnar Sletta
Bruno Janvier wrote: > Hello, > > qtjambi.exe will not start for me. The error message is: > > The procedure entry point _Z18qInstallMsgHandlerPFv9QtMsgTypePKcE could > not be located in the dynamic link library QtCore4.dll > > I am running Windows XP SP2, Java 6 and qtjambi-win32-gpl-4.4.0_01.

Re: [Qt-jambi-interest] Qt Jambi 4.4.0 Released!

2008-06-11 Thread Gunnar Sletta
Bruno Janvier wrote: > doing this, I got no error message anymore, but the application is also not > starting. Should I clean some cache folders or registry settings ? I don't think there is more to clean then. The qtjambi.exe is very light-weight. What happens if you start the launcher manually

Re: [Qt-jambi-interest] QGraphicsScen.changed connection

2008-06-11 Thread Gunnar Sletta
Dawid Sip wrote: > Gunnar Sletta napisał(a): >> Hi Dave, >> >> In 4.4 you get this warning: >> >> Possible matching methods: >> slot(java.util.List) >> >> Which is the right way of specifying the signal. There is however a >> problem with

Re: [Qt-jambi-interest] Overriding itemChange

2008-06-15 Thread Gunnar Sletta
Helge Fredriksen wrote: > in a QGraphicsPixmapItem causes QtJambi 4.4 to crash. > Hi Helge, I cannot seem to reproduce this with the following example. Could you please modify it to reproduce the error? best regards, Gunnar import com.trolltech.qt.gui.*; public class OverrideItemChangeInPixma

Re: [Qt-jambi-interest] QAbstractItemModel.setData ()

2008-06-15 Thread Gunnar Sletta
Helge Fredriksen wrote: > got final it seems in Jambi 4.4, thus I cannot override it as I used to > in my implementation. How do I now update the datamodel behind the > scenes about changes made in the UI? This is correct, we did make quite a few methods final in this release that was previousl

Re: [Qt-jambi-interest] Overriding itemChange

2008-06-16 Thread Gunnar Sletta
Helge Fredriksen wrote: > Try adding a child item til that item, and I guess you will see the crash. I can reproduce this with a child item. I've made a task for fixing this for the next patch release. best regards, Gunnar ___ Qt-jambi-interest mailin

Re: [Qt-jambi-interest] Plugin mechanism

2008-06-17 Thread Gunnar Sletta
Dimitri Frederickx wrote: > Hi all, > > I want to develop some kind of plugin mechanism for my application. > Every plugin is a new jar file that I put on my classpath. Each plugin > has a configuration file that is called plugin.xml which is located in > the jar file. > > At startup I must read

Re: [Qt-jambi-interest] Still bugs in Qt Jambi 4.4.0

2008-06-17 Thread Gunnar Sletta
Dimitri Frederickx wrote: > I was a little bit disappointed when I just downloaded Qt Jambi 4.4.0 > for Mac OS > X. It seems that a few bugs that I've posted here more then a month ago are > still in the final 4.4.0 version. > > - My application crashes when I use Qt. I create a QGraphicsView and

Re: [Qt-jambi-interest] Question

2008-06-17 Thread Gunnar Sletta
Dimitri Frederickx wrote: > I'm having a nasty question, and I don't know how to solve the problem. > > I have created a graphics view, in which I want to display graphical > items, movies, SVG items, etc. > Then I also have a scheduled, that is going to show and hide certain > graphical items on

Re: [Qt-jambi-interest] Build fails on qt jambi 4.4

2008-06-20 Thread Gunnar Sletta
Rose, Stuart J wrote: > > id4 -lQtCored4 -lQtDesignerd4 > [make] C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\ > mingw32\bin\ld.exe > : cannot find -lQtDesignerd4 > Hi Stuart, It seems that make fails to locate QtDesignerd, the debug version of Qt Designer. It is possible that we pick up th

Re: [Qt-jambi-interest] Jambi and Webstart on Mac Os X problem. (Bus Error?)

2008-06-22 Thread Gunnar Sletta
Florian Hübner wrote: > Hello everyone, > I tried to run a Qt Jambi GUI via Webstart on Mac Os X but despite > adding "-XstartOnFirstThread" to the parameters it wont run (It runs > fine on Windows and Linux). > I also tried to modify the "LauncherOSX.java" from the Jambi demo with > the same re

Re: [Qt-jambi-interest] ListView, move item instead copy

2008-06-23 Thread Gunnar Sletta
Dawid Sip wrote: > Hi, > > I'am working on a way to visualize the zValue hierarchy of > PolygonItems in my scene. To do this I want to use the ListView which > supports interaction with its items like moving. I need the behavior > where one list element(item) can be moved down/up to a new index

Re: [Qt-jambi-interest] How can I update the QTreeView/QTreeModel if my Data changes

2008-06-23 Thread Gunnar Sletta
Waldemar Wittmann wrote: Hi all, i am vizualising a real Tree Datastructure. It's a binary Tree where each Node has always 2 Childs (leafs have 0 childs) and one parent (in the case of the root node no parent). I have extended QTreeView and I extended QTreeModel. The problem is, the Tree Datast

Re: [Qt-jambi-interest] QGraphicsView and coordinates system... (again)

2008-07-22 Thread Gunnar Sletta
[EMAIL PROTECTED] wrote: > Hello ! > > I'm still working on my mathematical function plot program and I still > have problems to make it work as expected. > > Thanks to Eskil, I found the ItemIgnoresTransformations flag that permit > to make some items (especially text items) ignoring scale transfo

Re: [Qt-jambi-interest] [BUG] JUIC use complete path to refer to icons

2008-07-22 Thread Gunnar Sletta
Jose Arcangel Salazar Delgado wrote: > Hi. > Look at this code that is generated by de JUIC when I set an Icon to a > QAction in the Designer using the Resource system: > > actionNuevo = new QAction(Ui_MainWindow); > actionNuevo.setObjectName("actionNuevo"); > actionNuevo.setIcon(new QIcon(new > Q

Re: [Qt-jambi-interest] Using .jui files with custom widget needing personal library crashes Eclipse

2008-07-23 Thread Gunnar Sletta
[EMAIL PROTECTED] wrote: > Hi people, > > I developed my own library called dgl (pure java, no jambi here). Once > this library packaged into a jar, I used it to develop my own jambi widget > called Plotter. Until then all is working fine. The first problem arise > when I want to include this widg

Re: [Qt-jambi-interest] help~~, sth about QPainter

2008-07-24 Thread Gunnar Sletta
?? wrote: > public class GroupEntryDelegate extends QItemDelegate { > > protected void drawDisplay(QPainter painter, QStyleOptionViewItem > option, QRect rect, String text) { > rect.setHeight(16); > super.drawDisplay(painter, option, rect, text); > rect.moveTop(rect.top() + 16); > optio

Re: [Qt-jambi-interest] [BUG] JUIC use complete path to refer to icons

2008-07-24 Thread Gunnar Sletta
José Arcángel Salazar Delgado wrote: > Hi Gunnar. > > Unfortunately I cannot reproduce the bug easily. This is my environment: > Eclipse ganymede+ qt jambi integration 4.4+ qt jambi 4.4 > > The .jui is generated through the designer inside the eclipse and the > resources are in the classpath. To

Re: [Qt-jambi-interest] jambi 4.4 and empty spaces

2008-07-24 Thread Gunnar Sletta
Waldemar Wittmann wrote: > Hi Eskil and all :) > > Ok, i try to give a special example in detail. It's in Linux but it goes > analog in Windows and with all the other Qt Jambi Examples and self-made > Qt Jambi Applications and perhaps you don't need to do exactly the > settings i do. Hi Waldemar,

Re: [Qt-jambi-interest] Modifying a QTreeWidgetItem causes the JVM to crash. (Similar to bug #80337?)

2008-07-24 Thread Gunnar Sletta
Florian Hübner wrote: > Hello, > after upgrading from jambi 4.3.3_01 to 4.4.0_01 I noticed that modifying > a QTreeWidgetItem can crash the JVM under certain conditions. > I have a method that takes a QTreeWidgetItem as argument, removes all > child nodes with takeChildren() and then adds more n

Re: [Qt-jambi-interest] a problem about QGraphicsTextItem----help

2008-07-30 Thread Gunnar Sletta
?? wrote: > QGraphicsView gv=new QGraphicsView(); > QGraphicsScene gs=new QGraphicsScene(); > QGraphicsTextItem textitem=new QGraphicsTextItem(); > textitem.setDocument(ui.textEdit.document()); > gs.addItem(textitem); > gv=new QGraphicsView(gs); > gv.show(); > ***

Re: [Qt-jambi-interest] JDK 5 vs 6 errors on OS X Leopard : possible bug

2008-08-03 Thread Gunnar Sletta
Manish Chakravarty wrote: > Hello All, > > I just installed Jambi on OS X 10.5.3. > > I wrote the simple Hello World program from > http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/qtjambi-tutorial1.html > When running with JDK 1.5 the application runs flawlessly. > > When running with

Re: [Qt-jambi-interest] building jambi 4.4.0_01 with java-openjdk 1.6

2008-08-04 Thread Gunnar Sletta
Dirk Mueller wrote: > Hi, > > I've been trying for a few weeks now to package jambi for openSUSE (11.0 for > example). I've noticed that it seems to depend on $QTDIR being set to a > directory containing include/, lib, and plugins directories. > > fixing that, I'll end up with this build erro

Re: [Qt-jambi-interest] building jambi 4.4.0_01 with java-openjdk 1.6

2008-08-05 Thread Gunnar Sletta
Dirk Mueller wrote: > On Tuesday 05 August 2008, Gunnar Sletta wrote: > >> This is a problem with how and which header files the generator picks >> up. the toChar method stems from QByteArray::toUShort() which returns a >> ushort. The method is rejected, as you can proba

Re: [Qt-jambi-interest] QApplication - GuiEnabled?

2008-08-07 Thread Gunnar Sletta
Luis Zaldivar wrote: > Hi > > Is there a way to use the GuiEnabled flag from Qt in QtJambi? Is there > plans to add it? > > Thanks :) Why not just use QCoreApplication? - Gunnar ___ Qt-jambi-interest mailing list Qt-jambi-interest@trolltech.com http

Re: [Qt-jambi-interest] QAbstractTableModel problems

2008-08-10 Thread Gunnar Sletta
Thomas Coopman wrote: Hi, I'm trying to write a custom QAbstractTableModel but I have some problems with inserting data into the model. My model will have a fixed number of columns and data items can be added one at a time. All the items that are present before I start the model get added correc

Re: [Qt-jambi-interest] QCompleter with QSqlQueryModel problem.

2008-08-10 Thread Gunnar Sletta
José Arcángel Salazar Delgado wrote: > Hi, > > I'm Having some troubles trying to set a QCompleter into a QLineEdit. > > This is what I´m Doing: > > QComplete completer= new QCompleter(); > completer.setModel(Familias.tableModel()); > completer.setCompletionColumn(1); > ui.familiaLineEdit.setC

Re: [Qt-jambi-interest] maping & Cooirdinates

2008-08-10 Thread Gunnar Sletta
Dawid Sip wrote: > Hi, > > Im having a tough time with Rectangle positioning in a scene. > Basicaly I'm using a custom Cursor made from an rectangular image. I > take the im and get its .rect(), I than make > graphicsView.mapToScene('the rectangle'), and get a polygon from which i > create grap

Re: [Qt-jambi-interest] QApplication - GuiEnabled?

2008-08-10 Thread Gunnar Sletta
Luis Zaldivar wrote: > Because I need to use some components not included in CoreApplication. > Specifically I want to use the QPixmap.grabWidget function, but without > showing it in a gui. > > I've made a proof of concept on a server with X installed and it works, > without showing any window

Re: [Qt-jambi-interest] Designing a plugin based Jambi application

2008-08-10 Thread Gunnar Sletta
Andreas Bockhold wrote: > Hello, > > I would like to start to create an application using/based on plugins. I > found > the general description in [1] and a first example in [2] so I know that a > plugin based architecture should be possible with Qt Jambi. Now I have the > problem, that all th

Re: [Qt-jambi-interest] Restart SVG Animation

2008-08-10 Thread Gunnar Sletta
Dimitri Frederickx wrote: > Hi, > > I'm creating a QGraphicsSvgItem to display an svg file with > animations. When I open the item, the animation automatically starts. > > Is there a way to stop the animation and start it back? And is there a > method for resetting the animation (to the first f

Re: [Qt-jambi-interest] Problems controlling SVG object location

2008-08-10 Thread Gunnar Sletta
abigbee wrote: > Hi, > > I'm having difficulty controlling where SVG objects/images are > rendered in QImages that I save to disk. Not sure if there is a > problem with the SVG file or whether I am misunderstanding the > coordinate systems in QT Jambi 4.4. > > To simply testing, I've creat

Re: [Qt-jambi-interest] Restart SVG Animation

2008-08-11 Thread Gunnar Sletta
Dimitri Frederickx wrote: > Gunnar Sletta <[EMAIL PROTECTED]> wrote: > >> Dimitri Frederickx wrote: >>> Hi, >>> >>> I'm creating a QGraphicsSvgItem to display an svg file with >>> animations. When I open the item, the animation automat

Re: [Qt-jambi-interest] Problems with QGraphicsItem::paint(...) after migration to QTJambi 4.4

2008-08-11 Thread Gunnar Sletta
Nico Naumann wrote: > Hi, > Today I migrated some Java sourcecode from version 4.3 to the current > version 4.4 of QTJambi. After that, I am having trouble with the > overloaded paint methods of QGraphicsItem which doesnt pass the correct > scale factor of the item anymore. > > The following co

Re: [Qt-jambi-interest] Model/View problem: How to keep the model as simple as possible

2008-08-12 Thread Gunnar Sletta
Ying Ma wrote: > > Research & Development > > > > Dear sir, > > I am trying to implement a model/view structure for a system which > contains a large > number of data. when I tried to add all the data to the model, th

Re: [Qt-jambi-interest] Problems with QGraphicsItem::paint(...) after migration to QTJambi 4.4

2008-08-12 Thread Gunnar Sletta
Naumann, Nico wrote: > thank you for your response. > I think that the scale factor in your scenario is correct because you > call scale on the item itself. Since my scene contains thousands of > QGraphicsItems, I can't call scale on each item after the view > changes. In fact, what I do is to sca

Re: [Qt-jambi-interest] QNativePointer to void*

2008-08-14 Thread Gunnar Sletta
Karim Andras Pinter wrote: > Hello! > > I would like to create a utility class using jambi generation. > One of the class functions should be like this: > > Java side : > void converter( byte[], QNativePointer ) > > C++ side : > void converter( char*, int, void* ) > > So basicly byte[] -> to vo

Re: [Qt-jambi-interest] Qt Jambi / AWT Bridge

2008-08-17 Thread Gunnar Sletta
Dimitri Frederickx wrote: > Today I tried to integrate the Qt Jambi AWT bridge in my project. I > needed to integrate a panel into my program. I downloaded the prebuild > binary, and try to compile my program, but... it seems that the pre- > build is for Java 1.6. > > After turning my proje

Re: [Qt-jambi-interest] how to implement rich text in list view's item?

2008-08-17 Thread Gunnar Sletta
朱欢 wrote: > Excuse me, I'm a QT beginner. I want to archieve a Instant Message like > Gtalk. But I don't know how to implement rich text in list view's item. > At the time being, I am using the QStandardItem to list these plain text > of every message in the list view. It's a pity that QStandard

Re: [Qt-jambi-interest] path with blanks results in java.lang.ExceptionInInitializerError

2008-08-18 Thread Gunnar Sletta
Hi Sönke, This is a known issue in the 4.4.0 release and will be fixed for the next release. best regards, Gunnar Sönke Brummerloh wrote: > Hello all, > > with Qt-Jambi 4.4.0_01 I get the following Exception when trying to > start my application: > > -

Re: [Qt-jambi-interest] Model/View problem: remove functionality for the model

2008-08-19 Thread Gunnar Sletta
Ying Ma wrote: > > Research & Development > > > Dear sir, > > When I tried to remove some model indexes from the model, I saw the > whole model index list > of the model changed so the previous selection became a mess.

Re: [Qt-jambi-interest] QNativePointer to void*

2008-08-19 Thread Gunnar Sletta
Karim Andras Pinter wrote: > Thanks for your fast relpy! > I meant that there is a Java function which returns QNativePointer and what > is returned should be accessed directly on the c++ side without copying as a > void*. > Is there any opportunity to reach Java data directly as a pointer withou

Re: [Qt-jambi-interest] Classpath bug?

2008-08-20 Thread Gunnar Sletta
Dimitri Frederickx wrote: > Hi, > > I want to access a file inside of a specific jar file. To do this the > file name is "classpath:nameofmyjar.jar#nameofthefile". Under Mac OS X > with Qt Jambi 4.4.0 this works without a problem, but under Windows > the file can not be opened. > > What I do i

Re: [Qt-jambi-interest] UI_ generated files

2008-08-24 Thread Gunnar Sletta
Tomasz 'Trog' Welman wrote: > On Mon, 16 Jun 2008, Eskil Abrahamsen Blomfeldt wrote: > >> There is a bug in the Eclipse integration causing this problem to occur. >> The bug will be fixed for the next patch release of Qt Jambi. >> >> If you refactor your source code to work around the bug, you may

Re: [Qt-jambi-interest] Help with QIBASE

2008-08-24 Thread Gunnar Sletta
José Arcángel Salazar Delgado wrote: > Hi, > I'm having troubles trying to use the QIBASE driver. With Qt jambi 4.3, I > only > need to compile the driver from QT 4.3 and put it in the /plugins/sqldrivers > dir. But with qt jambi 4.4 I don't know what to do, because the same trick > did't wor

Re: [Qt-jambi-interest] Help with QIBASE

2008-08-26 Thread Gunnar Sletta
José Arcángel Salazar Delgado wrote: > As you can see, the problem is the incomplete JDBC driver for firebird. > In my personal opinion, I think that you need to check the compatibility of > the QJDBC, because most of the available drivers for opensource databases > (derby, sqlite, firebird, sma

Re: [Qt-jambi-interest] Help--Why I set the style sheet through QDesigner in eclipse, but it doesn't work???

2008-08-26 Thread Gunnar Sletta
?? wrote: > Help--Why I set the style sheet through QDesigner in eclipse, but it > doesn't work??? QWidget::setStyleSheet() will fail if your stylesheet has syntax errors in it. If you pasted the stylesheet correctly in this mail you're missing the end brace '}'. - Gunnar > I right click, and

Re: [Qt-jambi-interest] Manual Selection in QTableView does not select and does not repaint

2008-08-27 Thread Gunnar Sletta
Curt Nowak wrote: > Hi all, > > I'm trying to implement a QTableView in which two consecutive rows are always > marked as selected. For example: If the user clicks on row 1 then row 1 and > row 2 should both be marked. > I created a small example that shows where I'm stuck. > There are two prob

Re: [Qt-jambi-interest] Help--The Stylesheet is really correct, but why I set the style sheet through QDesigner in eclipse, and it still doesn't work???

2008-08-31 Thread Gunnar Sletta
Hi, I tried this stylesheet on a widget in designer, both in eclipse and in stand alone designer and it works perfectly. Do you do anything else to reproduce this? - Gunnar ___ Qt-jambi-interest mailing list Qt-jambi-interest@trolltech.com http://list

Re: [Qt-jambi-interest] Help with Drag and Drop in QTreeView

2008-09-01 Thread Gunnar Sletta
?? wrote: > I have set the QTreeView as follows: >ui.treeView.setDragEnabled(true); >ui.treeView.viewport().setAcceptDrops(true); >ui.treeView.setDropIndicatorShown(true); > > ui.treeView.setDragDropMode(QAbstractItemView.DragDropMode.InternalMove); > > Then what e

Re: [Qt-jambi-interest] QWidget.rect() problem

2008-09-01 Thread Gunnar Sletta
Florian Hübner wrote: > Hi everyone, > I have a problem with the size of a QWidget. Whenever its painted I try > to set the correct size but for some reason it doesnt work. ... > rect().setWidth(image_.width()); > rect().setHeight(image_.height()); > > For some reason

Re: [Qt-jambi-interest] qtjambi application start-up time

2008-09-07 Thread Gunnar Sletta
Massimo Fazzolari wrote: > Hi everybody, > > I would like to minimize the qtjambi application start-up time. Can > anyone help me? > > I'm using the non-jar version of the qt library referenced by > java.library.path. Could you be a bit more spesific? What kind of startup-time problems are yo

Re: [Qt-jambi-interest] QTextEdit.setText guessing

2008-09-07 Thread Gunnar Sletta
Florian Hübner wrote: > Hi everyone, > is there a way to make QTextEdit take another guess at the text type > when using setText? The only way I found was creating a new QTextEdit > object but thats not really feasible in my case. The text format is checked when you call setText(). If you have s

Re: [Qt-jambi-interest] QtJambi path on shared Eclipse workspace

2008-09-07 Thread Gunnar Sletta
Derek Fountain wrote: > I've got QtJambi set up to work on my Linux and Windows machines from > Eclipse. I have my Eclipse workspace on the Linux machine, shared with > Samba, so that Eclipse running from both Linux or Windows can see and > use it. Thus I can use the same workspace for my code r

Re: [Qt-jambi-interest] Help--QT 4.4's QMimeData problem

2008-09-08 Thread Gunnar Sletta
朱欢 wrote: > I extended QTreeModel, and implemented some drag and drop operations, > using the QMimeData class in QT 4.3. But when I change the version to > 4.4, it has no such a QMimeData class to import. How can I solve it? Hi, As outlined in the changes file, a few classes were incorrectly pl

Re: [Qt-jambi-interest] How to use Stylesheet and delegate at the same time?

2008-09-08 Thread Gunnar Sletta
朱欢 wrote: > How to use Stylesheet and delegate at the same time? The stylesheet will override the default delegate and you cannot have both. best regards, Gunnar ___ Qt-jambi-interest mailing list Qt-jambi-interest@trolltech.com http://lists.trolltech.c

Re: [Qt-jambi-interest] Cannot find the main class error

2008-09-08 Thread Gunnar Sletta
Derek Fountain wrote: > Has anyone got any idea what I've done wrong? The error in the Eclipse > console is: > > java.lang.ExceptionInInitializerError > at com.trolltech.qt.QtJambiObject.(QtJambiObject.java:40) > Caused by: java.lang.RuntimeException: Loading library failed, progress > so

Re: [Qt-jambi-interest] Classpath question

2008-09-08 Thread Gunnar Sletta
Dimitri Frederickx wrote: > I've created an eclipse project (under Mac OS X). My eclipse project has two > source directories. In both source directories I have a folder images: in the > first folder I have an image called image_1.png and in the other folder I > have > an image called image_2.p

Re: [Qt-jambi-interest] qtjambi application start-up time

2008-09-08 Thread Gunnar Sletta
Massimo Fazzolari wrote: > Hi Gunner, > > Thanks for reply. I need about 20 seconds to start a simple qtjambi > application. I use QtJambi on Windows XP. This time is required by > QtJambi jar file and Qt DLLs. Other java native application start-up > immediatly. A native application like Chro

Re: [Qt-jambi-interest] QTextEdit.setText guessing

2008-09-08 Thread Gunnar Sletta
Florian Hübner wrote: > Gunnar Sletta wrote: >> If you need to reevaluate the text you have written in the textedit >> into HTML you could for instance do: >> >> edit.setText(edit.text()); > > > Hmm, I could neither find a text() method for QTextEdit nor a

  1   2   3   >