Hi
I just have installed Qt 4 on windows 7. I am now in a bit of a confusion
How do I get to install OpenGL so that it works with QT? Is there an installer for OpenGL?
Qt docs. say it has support for OpenGL, but when I include QTOpenGL and build, the compiler issues an error of "No such file or directory"
Thanks for the reply in advan...
Hello there,
I'm in the process of learning how to display data and tables using PyQt. Ultimately I'd like to have a Table showing the contents of a database, but for now I'm just getting to grips with some of the fundamentals. I have a basic setup (pasted below) made using Qt Designer with a set of buttons ("Create", "Add Row", "Add Co...
I can't seem to keep the horizontal header from being selected when I select a single row in a QTableWidget.
Example:
How can I prevent the header from being selected too? This only happens when one row is in the table. If it has more than two rows, then it works as expected and only the row itself is selected.
Note: I have set
u...
I am not very proficient in Mac OS X programming, but I am working on a Qt application which needs info about the storage devices. Basically a list of hard drives and USB thumb drives.
The end result should be like a vector which contains the following info for each device:
string: Label
string: Mount point
string: Device description (a...
Suppose I have a commercial license for Qt (say, for 4.5.2 ), is it possible to reuse part of the QtCreator (say, version 2.0) source code to develop a completely proprietary software? I read the QtLicensing information, but it doesn't provide any information about QtCreator licensing.
...
Hi there.
In my program I need to download 3-4 files simultaneously (from different servers which are quite slow). I'm aware of the solution involving python threads or qt threads, but I'm wondering: since it seems to be a quite common task, maybe there's a library which I feed with urls and simply receive the files?
Thanks in advance!
...
I have the following:
QString html = ui->DetailsTextBrowser->document()->toHtml();
html = details.replace("#VERSION", "1.0");
ui->DetailsTextBrowser->document()->setHtml(details);
Unfortunately after the HTML content of the DetailsTextBrowser is set the document is scrolled to the bottom.
I tried without success:
ui->DetailsTextBrow...
I have a main server and 4 computers connected. How can I learn which computer use how much cpu and disk.
I write code Qt and c++
Thans a lot.
...
Hi,
I'm developing Qt/C++ application and I need simple function that retrive me User idle time in seconds on Mac OS X.
I found this code for detection User idle time.
#include <IOKit/IOKitLib.h>
/**
Returns the number of seconds the machine has been idle or -1 if an error occurs.
The code is compatible with Tiger/10.4 and later (b...
Hi guys,
It’s all the day that I’m trying to make this code working. It should be the same code presented in the QScript help page but unfortunately it doesn’t work at all!
class Person
{
public:
QString nm;
Person()
{
}
Person(QString& name)
:nm(name)
{
}
};
Q_DECLARE_METATYPE(Person)
Q_DECLARE_METATYPE(Person*)
QScriptV...
I have implemented signals for mousePressEvent() in a QGraphicsScene subclass, but I can't figure out how to use the class in a UI. I can add a QGraphicsView widget to my UI, but how do I then access the scene?
GraphicsScene *scene = new QGraphicsScene(this);
// Add pixmap, etc
ui->graphicsView->setScene(scene);
// Here's where I'm stuc...
I have a UI and a QGraphicsScene subclass GraphicsScene that implements mousePressEvent(), however mouse clicks are being ignored.
ui->setupUi(this);
scene = new GraphicsScene(this);
scene->addPixmap(QPixmap::fromImage(someImage));
ui->graphicsView->setScene(scene);
connect(scene, SIGNAL(clicked(QPoint)), this, SLOT(someSlot(QPoint)));
...
(see edits)
I'm developing a QT/c++ application under gnome.
The application a main window and QListBox child window.
Both of these windows show up as separate main windows when I alt-tab away from the application.
How can I make it so that only one window is shown when I (or later the user) uses alt-tab?
I am guessing this behav...
My application needs to run on Windows and Mac OS X and display various kinds of media files, such as videos and Adobe Flash content. After installing the Flip4Mac codec, I can play WMV video using Phonon on the Mac. In order to support Flash via the Flash plugin in a QWebView, I need to build a 32-bit binary. But when I do that, WMV pla...
Why the opened dialog is not centered to the main window?
void MainWindow::on_FileOpenAction_triggered()
{
QStringList fileNames = QFileDialog::getOpenFileNames(
this,
"Open Image",
QApplication::applicationDirPath(),
"Images (*.jpg);;All Files (*.*)"
);
}
The documentation says that is should...
I am planning to do some development for Nokia Devices. Can someone tell me which to use between Qt framework and j2me?
...
Hello!
I know, there are some similar questions to the following out there, but I couldn't find a concrete answer that helps me. So here's my problem:
I work on an application that does some gui-initialisations on start up. One of the things I have to do, is calling
NetworkConfigurationManager::updateConfigurations ()
This is a asyn...
We have a QCheckBox object, when user checks it or removes check we want to call a function so we connect our function to stateChanged ( int state ) signal. On the other hand, according to some condition we also change the state of QCheckBox object inside code, and this causes the unwanted signal.
Is there any way to prevent firing sig...
How can I change the mouse cursor while dragging? I don't want the Blocking cursor or the Arrow with the Plus sign to be displayed, just the arrow cursor.
I'm using Qt 4.6.
Thanks
...
I'm working on a pretty standard Qt mobile app (written in C++, targeted at Symbian devices), and am finding that sometimes when the app is closed (i.e. via a call to QApplication::quit), the final destructor in the app can take a long time to return (30 seconds plus). By this I mean, all clean up operations in the destructor have comple...