I defined a signal in myapp and emit it in very different places within code, but I need it just when my MY_DEFINED_FLAG is defined, my question is:
Do I should change every:
emit mySignal();
to
#ifdef MY_DEFINED_FLAG
emit mySignal();
#endif
?
and if the answer is "yes" then, is there a better idea?
...
hi,
i m trying to use DCMTK library built in MSVC in my qt application.although i have added libs in my .pro file like Libs+= -Ldcmtk/lib -ofstd -dcmdata..i have also include .h files of these libraries
but i m getting undefined reference error for each function i m calling of these library..
what i m missing..
...
when I compile the codes which has database connection, there's an error like,
QtSql: No such file or directory
I suppose that the sql library must be in Qt, but I dont have any idea why an error occured ?
what to do for enable the database's libraries?
Can you help me please, thanks
...
I need to draw some figure on context(Canvas).
So , need a class which is equivalent to QPen. If anyone know plz help me out.
...
The Qt documentation for QWidget::activateWindow() states:
On Windows, if you are calling this
when the application is not currently
the active one then it will not make
it the active window. It will change
the color of the taskbar entry to
indicate that the window has changed
in some way. This is because Microsoft
does...
I use QGraphicsiew and QGraphicsScene in order to draw graphics. How can I organize zoom-in and zoom-out (during zooming in scrolls should appear and while zooming out scrolls should disappear)?
...
HI,
I have placed few button in Qgraphicsscene, but I don’t know how to navigate the button from keyboard. I don’t know how to set the focus to button. Can anyone provide me the idea about how to do that
...
Hi,
I'm trying to use qFromBigEndian to read a 32-bit int from a byte stream received over a udp socket.
void processData(uchar *data)
{
qint32 addr;
addr = qFromBigEndian(data);
}
Compiling this gives the following error:
error: invalid conversion from 'uchar*' to 'qint32'
The Qt documentation says:
T qFromBigEndian ( const...
How do I use QString::replace to detect URLs in a string and replace them with an HTML link, like so...
[...].replace(QRegExp("???"), "<a href=\"\\1\">\\1</a>")
What should the argument to QRegExp be? The end of a URL should be denoted by the occurrence of a whitespace character (such as space, \r or \n) or the end of the string.
Th...
I serialize "double" data type and get an error though
QDataStream & operator<< ( double f )
operator is defined. Here is the error message:
error: conversion from 'double' to 'const QChar' is ambiguous
Did you meat this situation or understand why it can be like this?
...
I am trying to imple QLineEdit's text which is all capital letters no matter what user types in. I have found several solutions, none of them working in Ruby. In brief I have QLineEdit object searchEdit and this code:
class UpcaseValidator < Qt::Validator
def validate(input,pos)
input.upcase!
Qt::Validator::Acceptable
e...
Hi,
I want to develop an audio editor using Qt.
For this, I need to plot a waveform of the music track which I think should be a plot of peak amplitude of sound versus time(please correct me if I am wrong).
Currently, I have been using Phonon::AudioOutput class object as an audio sink and connected it with my Phonon::MediaObject class o...
I face a very serious situation. By writing this question I hope that really professionals will express their opinion regarding to the problem I am going to describe. I have reported a bug in http://bugreports.qt.nokia.com/ :
I have created QPropertyAnimation for maximumWidth property of QTextEdit and it does not work (it immediately...
Is it possible to handle different type of archive (zip,rar,7z,tar,) using qt framework ?
...
Hello,
i use c++ and qt for a project.
I would to know how i can get the default program : default navigator, default mail client, default editor ...
I found for Linux - Gnome: gconftool!
What is for Windows, Mac Os or Linux (KDE) ?
Thanks you.
...
Alright, here's my dillema. I am making a simple application with Qt Creator that makes use of Webkit. I thought Qt Creator would have an easy way to edit the right-click context menu with the signals and slots editor, but this has proven to not be true. I know webkit has classes that have to do with the context menu, but I don't know ho...
Hi:
I'm using a QWizard class, which contains several QWizardPage.
For some pages, I need to do something when "Next" button is clicked.
I tried to overwrite the "next" slot in QWizard class, however, it seems this doesn't work. the program still went into the original "next" slot in QWizard class instead the one I implemented.
Does th...
I want bind QImage to the MMF file to manipulate the image without the cost of memory directly on the disc. Unfortunately, my code creates a copy in memory.
QFile file("Boston City Flow.jpg");
if(!file.open(QIODevice::ReadOnly))
QMessageBox::information(this, "Error", "Error");
qint64 size = file.size();
unsigned char *mmf = fil...
Hi,
I've been trying to write an application, using Qt and mingw32, to download images and set them as the background Wallpaper. I have read several articles online about how to do this, in VB and C#, and to some extent how to do it in c++. I am currently calling the SystemParametersInfo with what seems to be all the correct arguments (...
QWizard have some options related to the buttons as follows:
NoDefaultButton
NoBackButtonOnStartPage
NoBackButtonOnLastPage
DisabledBackButtonOnLastPage
HaveNextButtonOnLastPage
HaveFinishButtonOnEarlyPages
NoCancelButton
CancelButtonOnLeft
HaveHelpButton
HelpButtonOnRight
Now these options are ...