A recieve a string like this:
<invoke name="CanClose" returntype="xml">
<arguments>
<string># 998.40</string>
<number>49920</number>
</arguments>
</invoke>
I'd like to use QDomDocument to get the values of arguments' child nodes by their index (I would like to extract the strings "# 998.40" and "49920" in the examp...
In one of my projects, I would like to have an auto-scrolling textbox.
I'm not talking of a textbox that scrolls whenever someone adds a text line, but of something which is like a movie "closing credits" sequence.
The textbox would be fullfiled with text and down-scroll slowly without any user action.
Is there any existing widget tha...
I'm trying to display a little square of solid color.
I've created a QGraphicsView widget myGraphicsView and call:
ui->myGraphicsView->setBackgroundBrush(QBrush(Qt::red, Qt::SolidPattern));
But it stays white. What am I doing wrong?
...
Hi!
I don't have much experience with Qt but somehow I think this is acting strange.
Compiled with VS2005:
class Entry {
public: Entry(const QString& aName, bool checked) :
name(aName), isChecked(checked)
{
// empty
};
public: Entry(const Entry& entry) :
name(entry.name), isChecked(entry...
I have the following:
Q_ASSERT(QFile::exists("\\.host\Shared Folders\username On My Mac\Desktop\New Deck.txt"));
The file is picked from QFileDialog but when check if it exists with QFile::exists it returns FALSE;
Is there any reason why QT cannot open a file on a shared drive.
Btw, this path is a valid one on Windows and is generat...
Hi,
I'm trying to set the accessible properties of a QMenu's sub items. I can set the accessible property of the parent menu using setAccessibleName() since it inherits QWidget. Unfortunately, the QActions that you add to the menu aren't widgets child classes, they inherit QObject directly.
Is there a way to set the menu items accessi...
I am using a 3rd party library with Qt that requires char* strings. I am using the following code to convert my QString to a char*
char* toCharArray(const QString &string)
{
QByteArray bytes = string.toLocal8Bit();
char* data = new char[bytes.count() + 1];
strcpy(data, bytes.data());
return data;
}
// later on...
3rdPa...
I have a GUI and user can select back up start and end date.
Is it possible with a sql query getting back up specific time distance.
Thank a lot
...
Can Applications developed using Qt framework be deployed in all the Nokia devices. And Series 40, Series 60, Meamo cover all the Nokia devices available? How can we identify that an Qt app can be deployed in a Nokia device?
...
Hi,
I have a Qt 4.6.2 application, running on a Windows XP SP2 x64 system.
When I press the physical power/shutdown button on the system, when my application is running nothing will happen, the app will not close and the system does not Shutdown.
If I go to start menu and click shutdown, then my application will close but the system w...
Hello!
I need to write an application, that detects roaming from one access point to another if I'm connected to WLAN. Unfortunately I couldn't find anything that detects roaming for me. All I could find are some explanations in the Bearer API. One sentence says:
The second form of roaming is referred
to as Forced Roaming. The sys...
I have a normal VS2008 project that I've been working on for awhile that is doing some OpenGL based stuff. The main window is created with GLUT and until now that has been sufficient for my GUI.
Now, however, I want to add a small window of buttons, and I need to do it in a cross platform way, so I decided to use QT. I've installed all...
Is there a way to create a transparent panel as described by the Apple Human Interface Guidelines in Qt 4.6 (built for OS X 10.6/Cocoa)?
If not, are there any alternatives similar in look and function?
I understand that Qt is a cross platform toolkit, but I want my application to feel as »native« as possible…
...
Dear All,
I'm going crazy with QStateMachine wth ParallelState.
I've a main state (sequential) which contain a first state,
a second state which contains a group of parallel states, and another state that is again sequential.
The first state represent a process which create N input files, the second represents N threads which
works over ...
I'm trying to build a project on Mac OSX, and it's giving me a cryptic error:
"[moc_droparea.cpp] Error 1"
droparea.cpp is (obviously) a file in the project. I checked that it exists in the project directory and is not corrupted. The file moc_droparea.cpp doesn't show up in the build folder after this error, so I'm assuming it's failin...
In my application I have to explicitly link to a dll. The application is in QT with gcc compiler.
The dll the application have to link to is a wrapper around another old dll. The purpose is to fit the old dll to a new interface.
I use implicit linking when compiling the new dll. The new dll is compiled with msvc 2008. The reason is th...
I have the following:
QProcess *process = new QProcess(this);
QString path = QDir::toNativeSeparators(QApplication::applicationPath);
#if defined(Q_OS_WIN)
process->start("explorer.exe", QStringList() << path);
#elif defined(Q_OS_MAC)
process->start("open", QStringList() << path);
#endif
How I can achieve the same behavior for le...
The QFuture is iterating over a bidirectional iterator, which I assume is the root of the problem. However, the docs say that QFutureWatcher::progressValue "returns a value between progressMinimum and progressMaximum". I am calling QtConcurrent::filtered like this: QtConcurrent::filtered(myMap.begin(), myMap.end(), filterFn).
Does an...
I have three QLineEdit fields, whose content is changing really fast (100/second).
Somehow it crashes the application. Maybe it's a bug or I make a mistake.
Here is some code:
acc[0]->setText(QString("%1").arg(acceleration.x));
acc[1]->setText(QString("%1").arg(acceleration.y));
acc[2]->setText(QString("%1").arg(acceleration.z));
The...
How do I get the standard system / user paths in Qt?
What I really need is to get the location of the user's Downloads folder.
...