I just discovered the concept of an auto_ptr and am liking it! As Qt often requires a QList or QVector<(some QObject or QWidget) *>, is there any concrete reason why auto_ptr should be avoided. If I'm right, it allows you to replace this:
std::vector<MyClass*> vec;
/* add several elements to the vector and do stuff with them */
for(size...
Hi, I`m trying to freeze my application using Py2exe.
My app uses PyQt4 and it apparently works fine with py2exe. But once I`ve uninstalled PyQt, it shows the following error:
QSqlDatabase: QPSQL driver not loaded
QSqlDatabase: available drivers: QPSQL7 QPSQL
Which doesn't make any sense at all. The driver is available, but I can't us...
How can I get the QSyntaxHighlighter to syntax highlight ascii characters like @ or #? This is my current code:
Highlighter::Highlighter(QTextDocument *parent)
: QSyntaxHighlighter(parent)
{
HighlightingRule rule;
keywordFormat.setForeground(Qt::darkBlue);
keywordFormat.setFontWeight(QFont::Bold);
QStringList keywordPatterns;
keywor...
Just like in the tile? If You have any experience with both frameworks give me an advice which one use and why (C++ programming)
thanks for help
...
I'm building a Qt app with Python where you can point and click at a (google) map and get the coordinates of the location. The map is shown through a QWebView loading a simple HTML page and the user can create markers by clicking. Screenshot of the widget after clicking on the map.
However, I'm having trouble to retrieve the just-clicke...
I'm writing software which is demonstraiting video on demand service. One of the feature is something similiar to IIS Smooth Streaming - I want to adjust quality to the bandwith of the client. My idea is, to split single movie into many, let's say - 2 seconds parts, in different qualities and then send it to the client and play them. The...
I use Windows 7 x64, Qt Add-in 1.1.4, Visual Studio 2008 Team Edition.
Does not work on multiple computers ... reinstalling Windows, Qt Add-in or VS2008 does not help(
The error report says that an error in msenv.dll
Please tell us how to fix it.
If possible, of course.
Thank you!
...
I'm writing an IRC Client (yes another one). Long story short. I'm writing a Server dialogue
that keeps a list of this:
Identity
Networks
Channels
Addresses
I have 3 different list views that will be for the Networks, Channels and Addresses.
When the user changes the Identity (combo box). The network listview will...
What i did:
create a project,
edited the ui file with the designer tool,
ran the project, everything is ok
tried to add to my cppfile:
connect( pushButton_bracketBegin, SIGNAL( clicked() ), this, SLOT( pushButton_bracketBeginAction() ) );
but i get the error "‘pushButton_bracketBegin’ was not declared in this scope". this is my fi...
hi,
i wrote a program in Qt-Creator 1.3.1 and Qt 4.6.2
and realy dont figure out how to create a simple .exe file for the program i just wrote...
i rather do it with the Qt-Creator if it's possible
...
Hi,
I want to display a table and a image side by side. i.e Left side the image and right side the table. I want this because the image is the reference image for the data present in the table. I want that output in pdf. So I am using QTextDocument, QTextCursor and QPrinter to get the output in pdf. So how it is possible to display the i...
Hi
im using QTimeLine to run animation , now i like to trigger my custom function when the finished() signal is triggered
when the QTimeLinedo done its just ,but whit no lock i never getting this signal to fire
even that my :
QTimeLine::State sts = timeLineFadeIn->state(); is QTimeLine::NotRunning
Any idea why ?
...
Hi,
In my project I am using QGraphicsView/QGraphicsScene stuff.
On my scene there will be regions that contains 2D graphics.
Region count will be limited(Lets say 20)
Users can choose to display one or more regions.
If user choose to display one region I am going to show one region on scene
If user choose to display n regions I am goin...
I'm not sure how to ask this, but here goes the question:
I'm migrating from J2SE to Qt. After creating some small applications in Qt, I noticed that I've created way too many files compared to what I would've create if I was developing in Java (I use Netbeans).
For an example, for a GUI to Orders, I'd have to create
Main Order Sear...
Hi,
I want to find the day of the week of a particular date in Qt.
e.g.: 1/05/2010 is Sunday.
Is it possible to find the weekday using date?
...
Hi everyone,
I'm working on a simulation in Qt (C++), and would like to make use of a Semaphore wrapper class I made for the sem_t type.
Although I am including semaphore.h in my wrapper class, running qmake provides the following error:
'sem_t does not name a type'
I believe this is a library/linking error, since I can compile the c...
I am trying to capture screenshots using the BitBlt function. However, every single time I capture a screenshot, the non-client area NEVER changes no matter what I do. It's as if it's getting some cached copy of it. The client area is captured correctly.
If I close and then re-open the window, and take a screenshot, the non-client area ...
Hello Everyone,
I'm fairly new to Qt, and I'm using the new Nokia Qt SDK beta and I'm working to develop a small application for my Nokia N900 in my free time.
Fortunately, I was able to set up everything correctly, and also to run my app on the device.
I've learned C++ in school, so I thought it won't be so difficult.
I use Qt Creator...
I'm using Ubuntu 10.04 and Qt4.6, and I've created an executable binary file on my own computer through QtCreator.
Now I want to put my executable file on CentOS 5, but it seems that this executable file cannot run on CentOS.
The error message is
bash: ./[filename]: cannot execute binary file
Now I know this comes from 32-bits and ...
My laptop is 64-bits, so when I start to use Qt, I chose 64-bit QtCreator.
Now I'm facing a problem, I wish that the executable files I generated are runnnable on 32-bit linux system.
Can I set QtCreator to generate 32-bit executable files? So that I can decide I want to generate 32-bit ones or 64-bit ones.
I don't want to install anot...