You are not logged in.

Search results

Search results 1-20 of 23.

Wednesday, October 17th 2007, 3:44am

Author: Peter Vel

Can anyone explain why QWT does this

You seem to be using your own functions, so the code isn't helping that much.. insertCurve() doesn't seem to be in my qwt manual, neither does setCurveBaseLine().. etc.

Tuesday, October 2nd 2007, 3:30pm

Author: Peter Vel

QWT in Visual Studio

I solved the problem.. For those looking for the answer, here's a quick summary of what I did: I started over completely, removed qwt, qt, even the qt VS integrationI installed the latest version of Qt, its VS integration and copied the qwt source to my HDI compiled qwt as described in the manual, using a simple qmake/nmakeI then copied the qwt_designer_plugin.dll (in %QWTDIR%\designer\plugins\designer) along with its .exp and .lib to the %QTDIR\plugins\designer directory, and just the .dll to t...

Monday, October 1st 2007, 12:34am

Author: Peter Vel

QWT in Visual Studio

I know this is a well discussed topic, but I have read all the other threads available on the subject (as far as I know ;-)) I have copied the qwt5.dll to the general Qt dll dir, and the qwt_designer_plugin.dll to the "VS integration\plugins" and "plugins\designer" directories.I think I have added all paths necessary to my VS project settings..I removed the HKCU registry key, this forces it to recheck the plugin directory, but does not solve my problem. In the standalone Qt designer everything i...

Saturday, July 30th 2005, 3:08pm

Author: Peter Vel

Progress bar in listbox

Hi, Ive found some interesting stuff at http://lists.trolltech.com/qt-interest/2004-05/msg00926.html The most important part being Source code 1 2 3 4 5 6 7 1) when you create the widget give it listView->viewport() as the parent (not the most clean, there may be a better way) 2) Subclass QlistViewIItem to take a widget* in the constructor, then override width() and setHeight(), 3) In the constructor set the Widget focus policy to NoFocus/ClickFocus (unless you want to handle tab order issues) a...

Tuesday, July 26th 2005, 12:02pm

Author: Peter Vel

Progress bar in listbox

I don't quite follow what you mean by that.. Do you mean drawing it manually in the listview control? Cos that's the approach I didn't really wanted to take, although it will of course work. Im hoping there is a way to really insert a child widget inside a listview. Regards, PV

Saturday, July 23rd 2005, 8:28pm

Author: Peter Vel

Progress bar in listbox

Hi, I'm making an ftp client, and was wondering if there is a neater way to make a progress bar (using QProgress) inside a listview.. I've seen the manual drawing technique, which I suppose works, but it would be nicer to use QProgress for reasons like the fact that it uses the users selected style, instead of a fixed style the programmer invented (copying the system colours is doable, copying the full style is too much hassle ;-)) Any ideas would be welcome, if there really is no way to do it, ...

Wednesday, July 13th 2005, 3:07am

Author: Peter Vel

Fixed size dialog

Hi, I'm wondering what the proper way is to make a dialog of fixed size. I have a dialog with a set of line edit fields, and it seems pretty pointless to let users stretch it, it would only make it less readable. So I figured I would make it fixed size. However, the only way I've found to do it is set the vsizetype and hsizetype to 'fixed' and then start guessing a pixel count in minimumSize/maximumSize/baseSize.. This seems like a hopeless way to do things, surely there is some more organized w...

Tuesday, July 12th 2005, 11:41pm

Author: Peter Vel

RE: Multiple splitters

Perfect, thanks a lot

Tuesday, July 12th 2005, 8:51pm

Author: Peter Vel

Multiple splitters

Hey, I've been trying to figure out how to use QSplitter from the Designer, and browsing through the forum I found the handy 'select two widgets and add a splitter from the toolbar' method. This works beautifully if I only have one splitter to add.. But after that it gets confused and the toolbar buttons stay grey For example: A | B ____ C ____ D where the bars are 3 splitters. I can create the one between A and B, *or* the one between C and D. but not have both at the same time. How to create o...

Tuesday, July 12th 2005, 8:33pm

Author: Peter Vel

I want my label is transparent and only text shown, how can I do?

as far as I know, textlabel backgrounds are transparent by default Regards, PV

Wednesday, July 6th 2005, 3:10am

Author: Peter Vel

OpenGL compile fails

Ok, never mind. I just answered that question myself. Decided to uninstall that package and see what the result was. The result is, everything now compiles right away. If anyone else has this problem: REMOVE THE NON-MT PACKAGE! ;-) Thanks to everyone that helped, PV

Wednesday, July 6th 2005, 2:59am

Author: Peter Vel

OpenGL compile fails

Perhaps it's related to the qt3-non-mt-3.3.4-11 package? the non-mt seems to indicate 'non multithreading'. Seems strange to me.. but maybe i should uninstall that package? I'm grasping at straws here Regards, PV

Wednesday, July 6th 2005, 2:53am

Author: Peter Vel

OpenGL compile fails

Yep, that did the trick, compiles now ) Any idea why my configuration needs that option added tho? I'd like it to work with all examples out of the box, instead of having to open every .pro file in a text editor before compiling ;P Thanks a lot already, PV

Tuesday, July 5th 2005, 11:39pm

Author: Peter Vel

OpenGL compile fails

np, here's the whole thing from start to finish (be warned, its a little on the big side ;-)) Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 # make g++ -o cube cube.o main.o -L/usr/lib/ -L/usr/lib/qt3/lib/ -L/usr/lib/ -L/usr/X11R6/lib/ -lqt -lGLU -lGL -lXmu -lXext -lX11 -lm cube.o(.text+0x1f7): In function `Cube::draw()': /home/uName/Documents/code/examples/chap08/cube/cube.cpp:71: und...

Tuesday, July 5th 2005, 10:54pm

Author: Peter Vel

RE: OpenGL compile fails

hrm well, I suppose.. But this is just an example from the book. I'm using the standard Qt version in SuSE 9.3 Installed it with package manager YaST, no problems. I can compile all other Qt programs fine, just nothing that works with OGL. :-( -PV

Tuesday, July 5th 2005, 10:14pm

Author: Peter Vel

RE: OpenGL compile fails

The project file already contained that, it's full contents: Source code 1 2 3 4 CONFIG += opengl HEADERS = cube.h SOURCES = cube.cpp \ main.cpp Still no luck compiling it :-/ Regards, PV

Tuesday, July 5th 2005, 6:37pm

Author: Peter Vel

OpenGL compile fails

Hi, I'm trying to compile the cube OpenGL example that comes with the book by Blanchette & Summerfield, and I'm getting an error that seems to indicate I don't have OpenGL installed. I'm not quite sure how to get it working though, I don't see any packages that seem to relate to it.. The (first) errors I get: cube.o(.text+0x1f7): In function `Cube::draw()': /home/uName/Documents/code/examples/chap08/cube/cube.cpp:71: undefined reference to `QGLWidget::qglColor(QColor const&) const' cube.o(.text+...

Thursday, June 16th 2005, 8:29pm

Author: Peter Vel

Beginner question

awesome, exactly what I was looking for! Thanks a lot guys Regards, Peter Vel

Thursday, June 16th 2005, 7:58pm

Author: Peter Vel

Beginner question

What about if a slot has 1 param and the signal has 2? Is that allowed? If so, is the first param taken or the second? I assume it's either not allowed or the parameters are taken in order (if 1 param: take first, etc) Regards, PV

Thursday, June 16th 2005, 6:24pm

Author: Peter Vel

Beginner question

I'm wondering, do a signal and slot have to have the same parameters if you want to connect them? My book says they have to have the same parameters, but later on, in an example, they connect textChanged(const QString &) with enableOkButton().. Im confused, what's the deal here? If they have the same type, does the value automatically get passed? and if they don't have the same type? Any info would be appreciated, Peter Vel