qt

Qt::Tool window diasappears when application become inactive.

I have problem with keeping Qt::Tool window visible when the application becomes inactive. The application is running and there are 2 windows opened - main and additional with Qt::Tool flag set. When I open/switch to other app e.g Konosole the main window remains visible but second disappears - so if I want to e.g. rewrite some data from...

Using SQLite with QT

I am thinking of using SQLite as a backend DB for a C++ applicatiojn I am writing. I have read the relevant docs on both teh trolltech site and sqlite, but the information seems a little disjointed, there is no simple snippet that shows a complete CRUD example. I want to write a set of helper functions to allow me to execute CRUD action...

Visual C++ 2008 runtime error-- debug vs release exe problem?

Hi everyone, I have a Windows executable (native, not .Net) project that I'm trying to pass along to a new team member. It's a graphics modeling tool that uses the Qt widget library and OpenGL. The project runs fine on my box but when we buld and link it on this new member's machine and he tries deubugging it, here's what he sees (not...

Errors while compiling a test program using Qt

I am pretty new to C++/Qt I am following the book 'C++ GUI Programming with Qt 4' by Jasmin Blanchette and Mark Summerfield. I was working on an example program and got stuck up with some compilation errors which I was not able to resolve. Code and Errors below. Any help is appreciated. Thanks. finddialog.h #ifndef FINDDIALOG_H #defi...

find if qtreewidgetitem is top level

Is there a way I can find out if the qtreewidgetitem I'm looking at is top level or not? I have a program crashing when I'm trying to take the text a parent if the item is top level(no parent). ...

Is it possible to use CIN and QT ???

within Qt is it possible to use cin?? I can use cout but cannot find anywhere where it shows how to use ciin within a Qt Console application many thanks, gda2004 ...

How to run parallel codes using QT ?

I am developing a simulator. I have chosen QT for the GUI. My project involves a lot of manipulation of data and I use QT just to plot my results. My code structure is such that my main function contains a global object of my data, an object of the QT GUI and other objects for manipulating this data. I need to modify this data at every...

When to use signals and slots and when not to

We're using Qt that offers signals and slots which I find really convenient. However, with great power comes great responsibility and I think it's very easy too misuse this feature. Are there any best-practices for signal-slot usage? I'm having a hard time to find some general guidelines in this manner. Some questions (I have clear opi...

How to handle signals when a QT object isn't created through Designer?

Hi I've got a spare moment so decided to look at QT and how easily I can port my windows applications to Qt. My only real problem is a couple of controls that will need re-implementing under QT. I've already handled the basic drawing of the control but my control creates a child scroll bar. The problem is that this scrollbar is crea...

Help needed in implimenting control in QT

Hi.. is there any way to implement the control mentioned in the following link in QT. http://wiki.forum.nokia.com/index.php/QtDynamicSettingList pls suggest me how to implement the same. Thanks ...

long double to string

I'm developping in C++, using the Qt framework. I need to convert a long double value into a string (ideally a QString, but could be something else). So far, I always used QString::number() for numerical->string conversion, but there is no overloading for the long doubletype. Thanks ...

How to get qmake to generate "project dependencies" in a Visual Studio .sln project

I have a qmake build of a few libraries and an app which depends on them. Using the subdirs template I'm able to get qmake to output a .sln file which works almost to my liking in VC2008. Though I've specified the dependencies between the targets in every way I've seen described, I end up with no "project dependencies" in the .sln file...

Overlapping labels in Qt fridge magnets example

I want to modify the fridge magnets example provided with Qt in a way that when I drag a label and drop it over another, it will push the label beneath the dragged label to the side, so they will never overlap one another. I've seen how collision is detected in the colliding mice example, where it uses a QGraphicsScene to draw the QGrap...

breakpoints not working after installing valgrind

I just installed valgrind but now my breakpoints dont work in qtcreator. How can I fix this? debug:NO GDB PROCESS RUNNING, CMD IGNORED: -stack-list-arguments 2 0 0 ...

GDB process not running

when I start GDB, I get the following error message in debugger: input:--- token barrier --- debug:NO GDB PROCESS RUNNING, CMD IGNORED: -stack-list-arguments 2 0 0 debug:NO GDB PROCESS RUNNING, CMD IGNORED: -stack-list-locals 2 debug:SWITCHING OFF DUMPER DEBUGGING debug:NO GDB PROCESS RUNNING, CMD IGNORED: set unwindonsignal on Now if ...

authenticate website in qt

how do i go about in authentication of a particular website say facebook on qt?please help.i am new to qt. say i want to use facebook in qt without using qt's webkit.i want to use the rest apis.the first step i want to do is to authenticate a valid user with a username and password.how do i link this username and password to be entered ...

Installing Qt on Snow Leopard fails

Hi guys, I am having a hard time trying to get Qt running. I downloaded the 4.6.2 SDK-Installer and it completed successfully. Yet, when I try to compile any of the examples by Terminal and typing "qmake" I get errors like this Failure to read QMAKESPEC conf file /Users/xxx/mkspecs/macx-g++/qmake.conf. Error processing project file: /U...

Qt client for Facebook

I would like to use Facebook api (http://wiki.developers.facebook.com/index.php/API) in my Qt Application. I don't want to use WebKit. Is it possibile to use QNetwork only? Is there any example on how to do it? ...

To run Phonon on Windows XP sp2

can anyone tell me from where i can get a fully functional phonon that runs on windows, if compilation needed , then from where i can download directly the compiled output. Or tell me which other multimedia toolkit can be used with QT and how ? ...

Generate the hardware interupt which will enable the CapsLock

Hello All, I want to Send my machine an hardware event so that my caps-lock key becomes enable. When I send enable interrupt, light on Caps-lock key should be on and when I send enable interrupt, light on Caps-lock key should be off. I am using Qt, Mac, C++, Carbon. Any help is appreciated. Thanks, Rahul ...