qt

Touch screens for kiosk applications

I'm developing a kiosk-style touchscreen application in Qt. Currently I'm using an Elo Touch surface acoustic wave touchmonitor which works well except for one thing: drag performance is way too poor to provide a good user experience. As this is the case for the cursor in X as well as in my application, it seems to be either the fault of...

Qt single EXE with lgpl?

I don't know much about the LGPL/GPL when it comes to distributing programs and I have a few questions (without a Qt license) 1. If I made a program, could I statically link the librarys to the exe so I have a single file to distribute when A) The program does not cost anything, it's just being distributed (closed source or open ...

Qt create game host

I have been creating a 2D game in Qt and I want to allow others to connect to hosted games to play. Would I just make a "server" in the game and allow others to connect to it? ...

How to achieve QT-like syntax of signal connections with Boost::Signal

In QT we can connect signals and slots using the following simple syntax: connect(pObject1, signal1, pObject2, slot2) For instance, one can write something like: A a; B b; connect(&a, SIGNAL(valueChanged(int)), &a, SLOT(setValue(int))); With Boost::Signal the syntax we would write it this way: A a; B b; a.valueChanged.conn...

How to fire user-like event in QWebElement

Is it real to fire user-like events (like mouse click on link) for QWebElement? I.e., for instance, given QWebElement from current frame (using QWebKit) for html tag ("") I want programmatically click() this element. In more complicated situations, there are more interestings things, like How to emit OnChange event for html UL element...

QDialog popping up another QDialog

I have a subclassed QDialog containing a bunch of subclassed QSpinBox's. When clicking a spinbox, a keypad (another QDialog) where you can use pushbuttons to enter digits. Both QDialog's are activated by calling QDialog::exec(); However, when opening this 2nd QDialog, the first one closes down. I've stepped through it and noticed the 1s...

How to get all the dates displayed in a QCalendarWidget

Hello, I am using a QCalendarWidget in my application, and I overloaded the updateCells method to put a red background on every dates which meet certain conditions. My problem is I don't know how to get the first date displayed in the calendar (not the first date in the month), and the last date displayed. Example: in february, the fir...

stable sorting QTreeWidgetItems in QTreeWidget?

Hi all, I have a list of QTreeWidgetItems (with children) in a QTreeWidget. I do not use a model for my data. From another window in my application the user can navigate thru the same set of data (viewed differently) and the QTreeWidget in the first window then highlights that specific row by setting the background colour. However, wh...

Qt installation error

i got an error when am trying to configure Qt. Erro : execute: File or path is not found (nmake) execute: File or path is not found (nmake) Cleaning qmake failed, return code -1 // installion files. InterBase...............no Sources are in..............E:\xampp\Qt\4.6 Build is done in............E:\xampp\Qt\4.6 Ins...

Qt::How small can it be made?

I'm using Qt for an embedded Linux app and want to make it as small as possible. At the moment If I make a statically compiled executable it will be 3.9Mb, pretty much only using the GUI parts I need. I got it to 3.9Mb just by using qconfig and configuration parameters. I was thinking about seeing how much smaller it could be made by mod...

Problem with selection rectange

Hi.. i m trying to make Customized listview in QT for symbian OS. i am facing some problem, i am able to draw everything like icon,text etc.. where ever i wish but the problem is, it is not getting selected by default.. i hope u got it. to do selection i need to draw the rectangle manually.. it could be a problem if them get changed o...

Qmake project dependencies (linked libraries)

I have a project that links to a number of shared libraries. Lets say project A depends on projects B and C Ideally, I want to impose the following dependencies in my project file: Rebuild project A if either B or C has been rebuilt since last time project A was built Use the output for the relevant configuration (i.e. if building pr...

Trouble with progressbar in QT

Hi.. i m facing problem in giving animation to progressbar in QT. where is the mistake in the following code, i am getting continues progress bar, but its not animating QApplication a(argc, argv); QProgressDialog *dialog = new QProgressDialog(); QProgressBar *pbar = new QProgressBar(dialog); pbar->setMinimum(0); pbar->setMaximu...

What is the mistake in my code. please help

Hi..i am new to QT the sample code mentioned below is not compiling ..please tell me the reason. #include "QprogressBar.h" #include <QtGui> #include <QApplication> #include<qprogressbar.h> #include <qobject.h> lass myTimer: public QTimer { public: myTimer(QWidget *parent=0):QTimer(parent) {} public slots: void recivetime(); };...

Recommended guidelines on moving from wxWidget to QT

I have a project that uses the wxwidget toolkit (wxThread, wxString, wxEvent, wxDateTime, wxLog etc). I am in the process of moving over to QT. I am a little daunted by the task, and thought its best to come in here to ask those that may have carried out such an operation before. Do I: take a more measured approach (replace one clas...

Qt4 parent pointer usage

I'm having some problem with understanding usage of parent pointer in QT4. class firstClass : public QWidget { Q_OBJECT public: firstClass(QWidget *parent = 0); ~firstClass(); void doSomething(); private: secondClass * myClass; }; class secondClass : public QWidget { Q_OBJECT public: secondClass(QWidget...

qsettings different results

I am using QSettings to try and figure out if an INI is valid.(using status() to check) I made a purposefully invalid INI file and loaded it in. The first time the code is called, it returns invalid, but every time after that, it returns valid. Is this a bug in my code? ...

Penalty of using QGraphicsObject vs QGraphicsItem?

I currently have a hierarchy of items based off of QGraphicsItem. I want to move to QGraphicsObject instead so that I can put properties on my items. I will not be making use of signals/slots or any other features of QObject. I'm told that you shouldn't derive from QObject because it's "heavy" and "slow". To test the impact, I deriv...

QtCreator 1.3, Qt 4.6.2 and build problem with cmake on windows

Hi, I'm trying to build a cmake project from QtCreator. When I open the project I need to give an argument to cmake otherwise Qt is not detected: -DQT_QMAKE_EXECUTABLE=D:/Qt/4.6.2/bin/qmake.exe The build step halts with this error: Running build steps for project CollidingMice... Starting: D:/Qt/2010.02/bin/jom.exe "C:\Programmi\C...

What happens when I call QWidget->close()

I would like to know what happens when I call QWidget-close() I called it after a setup function I coded and this disabled some of my slots to get called. before(creates odd behavior): pGrpCfg->setupGrpConfig(); pGrpCfg->close(); pGrpCfg->show(); after(ok): pGrpCfg->close(); ...