Hi Friends,
I need to install QT in my home directory. How can I install QT? I have tried to install and use that module with one example. While running that program it showed me that can't locate Qt.pm in @INC. Can anyone give me
solution to solve this problem. I need proper url to download the QT and tutorial for QT.
Thanks in Advan...
Supposing that I have a C++ class X (a Qt qobject, por exemple), with a method, let's say, QMap handleDynMethods(QString alias). if x is a instance of X class, I wish method handleDynMethods(QString alias, QMap parameters) be invoked when I do x->anyAliasName(parameters), producing x->handleDynMethods("anyAliasName", parameters). Is it p...
I'm trying to implement http://msdn.microsoft.com/en-us/library/dd377634%28v=VS.85%29.aspx on Qt, to generate a poster frame/thumbnail for video files.
I have installed both Windows Vista and Windows 7 SDK. I put:
#include "qedit.h"
in my code (noting there is also one in C:\Qt\2010.04\mingw\include), I add:
win32:INCLUDEPATH += $$q...
Hello,
Two [hopefully] quick questions regarding C++/Qt. Is the following proper for writing a string on multiple lines?
QString strQuery;
strQuery="\
CREATE TABLE foo\
(bar integer primary key,\
baz varchar(20))";
I believe this is right, but in Qt Creator it doesn't highlight as though it is one ...
I came to know that Qt framework can let us develop Applications for Android and iPhone. Have some ever developed applications and submitted the Apps in App store and Android market. Is it similar to Titanium in the way of using same source code base for different platforms. If that is the case, can we use the same code for Nokia Applic...
Hi,
I'm writing a QT4.6 application(without the qt designer) and when I close the program I get this error from Visual Studio:
Windows has triggered a breakpoint in
Test.exe.
This may be due to a corruption of the
heap, which indicates a bug in
Test.exe or any of the DLLs it has
loaded.
This may also be due to the u...
Hi,
message.Text() is a QString.
I want to remove some text.
The text can be:
Normal: "This is a text"
With a label: "<label1>something</label1>This is a text"
First, I find if the text has the label:
!message.Text().contains("<label1>", Qt::CaseInsensitive))
So, if it has, I want to remove the first part, to have a normal text...
I've created a form with code and I have a big problem. Every element aligmented to the bottom. I painted the clear and aligned space blue on the picture. How can I set every alignment to top?
If you need the code in this question you'll find it: http://stackoverflow.com/questions/3574147/qt-heap-memory-corruption
...
I am using Ubuntu 10.04 64 bit and QT 4.6.3. QGroupBox borders in any Qt Application are not visible. I changed Ubuntu themes but borders are still not visible. I want them to be visible. How can I solve this?
...
I want to parse some kind (or pure) XML code from a QString.
My QString is like:
<a>cat</a>My cat is very nice.
I want to obtain 2 strings:
cat, and My Cat is very nice.
I think a XML parser is not maybe necessary, but in the future I will have more tags in the same string so it's also a very interesting point.
...
Hello
i am developing an Algorithm Simulator(Virtual Lab),first let me describe it briefly:
DESCRIPTION
There are so many different type of algorithms in Data Structures like Searching
algorithms,Sorting algorithms,Tree traversal algorithms etc.
So i am developing a desktop application in which a user can input the elements and wh...
Hi guys
I want to use QCombobox as a the Combobox of Swing in Java. So i need to use Model for holding my object. How can i hold my object in QCombobox. (I think that I should hold data in Model because QCombobox was designed according to MVC Pattern ... )
Any help will be appreciated.
...
I do not understand why in the book Rapid GUI Programming with Python and Qt, a context menu is added to a central widget by calling addActions() on the main window (self), like so (p. 180):
self.addActions(self.imageLabel,
(editInvertAction, …))
where self is a QMainWindow, and imageLabel is a QLabel set as the centra...
I have a custom class derived from QGraphicsItem. In that class I have private data member which is QGraphicsSvgItem. In my custom class constructor I am creating a QGraphicsSvgItem and its parent as my custom class. Below what I did.
class CustomItem : public QGraphicsItem
{
private:
QGraphicsSvgItem *svgItem;
}
CustomItem::C...
First: sorry for my English from Google
The question:
I'm changing the IDE, I'm migrating from Borland to QT with QT Creator.
In Borland I used a class contained in a type library (APuma.dll). The prototype was:
BOOL XOpen (long hDIB, LPCTSTR FileName) / / OpenOCR - Cuneiform
hDIB is a pointer to global memory of an image.This ve...
Hi,
I have a QTreeView with a QSortFilterProxyModel between the view and a QStandardItemModel to sort the tree. I then want to act on clicks in the view through the clicked() signal.
The models/view are setup similar to this:
mymodel = new QStandardItemModel(5, 5, this);
mysort = new MySortProxy(this);
mysort->setSourceModel(mymode...
#include <QtCore/QCoreApplication>
#include <QtGui/QLabel>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QLabel label("Hello world");
label.show();
return a.exec();
}
I am using QTCreator, I installed QT 4.7 on windows.
Now every time I compile I get this error:
:: error: collect2: ld returned 1 ex...
I think it's unreasonable for a library to require preprocessing of my source code with a special tool. That said, several have recommended the Qt library to me for cross platform GUI development.
How usable is Qt without the preprocessing step?
EDIT: Okay people; I'm not meaning this question as a rip on Qt -- too many Qt fanboys are ...
I have a Widget with QScrollArea in it and I want it to be scrolled down right after the widget containing it is shown. I tried:
scrollArea->ensureVisible(0,100, 20, 20);
It works only when invoked by user (pushing button for example). Putting it in widget contstructor or showEvent doesn't work. Can it be done automatically?
...
I want to make a PyQt4 program that supports plugins. Basically I want the user to be able to write QWidget subclasses in PyQt4 and add/remove them from the main application window via a GUI. How would I do that, especially the plugin mechanism?
...