I have a Qt application which uses Q_DECL_EXPORT to mark certain data types and functions of my main executable as exported. Likewise, when I compile my plugins, I mark those same symbols with Q_DECL_IMPORT to import them.
This has worked great on linux. All I need to do is compile with -rdynamic and it goes well. Visual Studio 2008 has...
Hello All,
I am using Qt for almost for 1 and half year on cross platform desktop application (Mac, Win and Linux)development. I would like to know how development differs when we go to Symbian.
Any help is appreciated
...
My application mostly works. I'm using QNetworkAccessManager to send a screencapture to a remote FTP server.
If during the middle of the transfer, I unplug my laptop from the internet, the transfer stops. Duh. Of course, it must.
But my problem is that it does NOT send an error anywhere that I can find. And when I reconnect the int...
Hello,
I have got a file which is let's say 8 bytes length.
For example it looks like that:
22222222
Now, I read first let's say 5 bytes and changing them. For ex. to 11111
Finally, I want to write them ONTO EXCISTING DATA to the file, so I expect the file to look like that:
11111222
But I get only 11111, because file is erased. Ho...
I want use qt to control some other windows, so I write this code:
#define protected public //just for test
...
WId id = 0x00000001 //some real wid
QWidget w;
w.create(id, false, false);
w.hide();
after I run this code, the window crashes, and I got:
:X Error: BadAccess (attempt to access private resource denied) 10
I'm using ubunt...
I've tried these in my mainform's constructor:
QRect desktopRect = QApplication::desktop()->availableGeometry(this);
move(desktopRect.center() - frameGeometry().center());
QRect desktopRect = QApplication::desktop()->availableGeometry(this);
move(desktopRect.center() - rect().center());
but both put the bottom right corner of the for...
Is there any way to determine if a QTableView has an open editor in the current cell? I need to handle the following situation:
A user double-clicks a cell and edits the data, but leaves the cell in the "edit" state.
On another part of the UI, an action is taken that changes the selected row of the underlying model.
Back on my view, I ...
Hello,
I'm working on playing audio from an audio stream using VC++ with the QtMultimedia library. Since I'm not too experienced with Qt's libraries I started by reading in a .wav file and writing it to a buffer:
ifstream wavFile;
char* file = "error_ex.wav";
wavFile.open( file, ios::binary );
After that, I used ifstream's .read() fu...
I am using a QProgressDialog to show the status of a long running operation, which includes a step of running an external executable. I run the external executable using the QProcess::execute() method. QprogressDialog works fine updating the label text till it reaches the QProcess::execute() method, after which it doesn't update the stat...
I am developing an app using QT wrt that would include functionality monitoring how fast some one types (sms) on their mobile, log this to a file on the device (which file is then bencoded) and sent as a .torrent file. to a remote server
* Having looked at symtorrent, a bit of the required functionality is implemented (torrent file creat...
Is it possible to include C/C++ header files in a qmake (.pro) file?
I have a version.h header file with several definitions for my project (strings, version numbers, etc.). I also have an .rc file for Windows to add version info to my exe/dll, which includes this header file.
So, can I somehow get the #defines in my header file to be ...
Hi,i'm on ubuntu lucid with qt4
The image is cropped,look by yourself by compiling this (it appear only whith QGraphicsView,when i diplay the widget,it's okay)
#include <QApplication>
#include <QtGui>
int main (int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel* lab = new QLabel;
QPixmap img(3000,3000);
img...
Hi,I'm on ubuntu lucid with qt4
QGraphicsView seems don't like scaling + scrolling ,white lines appears when scrolling ,see by yourself:
#include <QApplication>
#include <QtGui>
int main (int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel* lab = new QLabel;
QPixmap img(300,300);
img.fill(Qt::red);
lab->...
Today i tried to implement the owner drawn menu item support in Cocoa and MacOSX 10.5
And what i found was pretty scary when i think about QT which i intended to use for some other projects.
If i see it right there is no future for QT on MacOSX because the whole Appearance Manager with the exeception of a few trivial functions is compl...
I need to serve a file on localhost to a certain application which only accepts http URI-s. However, the files are generated on the fly and I would like to avoid writing to disk, so I decided to write a simple HTTP server using QTcpServer. Luckily, I even found a nice tutorial explaining just that. However, I'm not familiar with HTTP res...
My problem is quite simple. I want the following macro
#define PROXYPASS(name, param) \
void MyClass::sl_name(param _param) { \
emit name(_param); \
}
to expand PROXYPASS(clientAdded, Client*) to:
void MyClass::sl_clientAdded(Client* _param) { \
emit clientAdded(_param); \
}
but since it ain't working i.e. it still shows ju...
I've developed an application in Qt which uses a launch script, myapp.sh. I've created a .desktop file which launches this script, and set:
Command: $PWD/myapp.sh
Work path: $PWD
However, $PWD prints my home directory when I launch the .desktop file, resulting in attempting to launch ~/myapp.sh rather than ~/Development/build-director...
I'm not sure how to ask this, so, feel free to ask for more information.
It seems that tableView->resizeColumnsToContents() will only resize all the columns based on data in current view. Which means that if I have more data below (which is longer in terms of counts of words), those words will be wrapped down (if the wordWrap property i...
Hello,
So I have two forms in my project: MainWindow and Options Form (OptForm; QWidget);
Now, I create (simply dragging to a form) a QPushButton in MainWindow to open OptForm, and passing in variables, which OptForm can change.
void MainWindow::openOpt() //Slot; QPushButton calls(?) it
{
OptForm w (this->variable1,this->variable2,...
Hi,
I have created a dialog using qt designer. There is a QLineEdit object in the dialog with some default content. When dialog initializes focus goes to the QLineEdit, I want the default content to be auto selected so once user start writing previous content will be overwritten.
Thanks,
GG
[EDIT]
{ in constructor }
dialog->accept(); ...