qt

Building QT4 MySQL Drivers with MinGW

Hi, i need to make, qmysql.dll. I am referring to http://www.jiggerjuice.net/software/qt-sql-drivers.html # cd c:\mysql\lib\opt # reimp -d libmysql.lib # dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a the output file libmysql.a is a 0 kb file. what do i do to get a non zero kb file. Brgds, k...

C++ - basic Qt question

Hello! Do I have any simple way to have context menu items, that aren't highlighted when mouse goes over them (using Qt)? I want to make simple context menu with various item groups such as | Group1 | ----- | DoSomething | DoSomethingWow | DoSomethingCool | | Group2 | ------ | DoSomethingCoolHuh and I want Group1 and Group...

How to remove outline on QToolButton

I'm developing Qt application for Mac OS X. Problem is when I create QToolButton it apears with some outline. http://i.imgur.com/vqtP9.png I use next stylesheet QToolButton { border: 1px solid #575757; border-radius: 4px; } How to remove the outline? ANSWER: I didn't mentioned that I'm adding this item to statusBar(). ...

Qt - QGraphicsView without ScrollBar

Hi, I am trying to show a picture in it's full view using QGraphicsScene. But when ever I put the QgraphicsScene inside the QGraphicsView, I am getting a scroll bar. I tried so many ways But all are went to veins. So can anybody tell me how to obtain the full view without the scrollbar. ...

linking mac framework to qt creator

Hi, I have a project that uses SystemConfiguration.Framework. I've been using xcode, where adding the framework is quite easy, just add it to xcode project's framework. But now, I need my project to be cross platform, so I'm using QT Creator as a single IDE, for Windows and Mac. The problem is that I don't know how to tell QT Creator ...

3D text on QGLWidget in Qt 4.6.3

Hello. I'm looking for a simple way to draw 3D text on QGLWidget without using FTGL, FreeType, "render to texture" or framebuffer objects, i.e. using documented Qt 4 functions only, no additional libraries. Ideas? P.S. "3D text" means that letters are flat and have zero thickness, but can be rotated in 3D space. Think about "Star war...

How do I make Qt dialog get info while locking main window from user?

I have a Qt main window that will pop up a dialog box that has an OK and Cancel button. This dialog has a simple spinner that asks a user for a number that should be returned to the main window when OK or Cancel is pressed (for cancel, it will just send back -1). I thought about using code in a signal in mainWindow.cpp like so: void ma...

Displaying children while hiding their parent in a QTreeView

I would like to display two related but separate lists in a single QTreeView widget, like so: +----------------+ | item 1 | | item 2 | | item 3 | | (separator) | | other item 1 | | other item 2 | | other item 3 | +----------------+ When sorted, I would like to have each the items of each sub-list be so...

QT pixel position from image when mouse click

I'm using QGraphicView and QGraphicScene to display and image. I would like to get image pixel coordinate when i mouse click on that pixel. For that i use mousePressEvent and implement function to isplay event position. But the problem is the image pixel position is wrong because i obtain the pixel coordinate corresponding to the Graphic...

Linking libraries to a QT project using pkg-config output

This is a bit of a newbie question. I am trying to add the OpenCV libraries to a QT project. This question says the link flags are given by pkg-config --libs opencv If I paste the command line output into the project file like: LIBS += -L/usr/local/lib -lml -lcvaux -lhighgui -lcv -lcxcore then everything compiles fine, but now thi...

how to implement thin client app with pyqt

Here is what I would like to do, and I want to know how some people with experience in this field do this: With three POST requests I get from the http server: widgets and layout and then app logic (minimal) data Or maybe it's better to combine the first two or all three. I'm thinking of using pyqt. I think I can load .ui files. I c...

How to get the "query string" from a QUrl?

I have a QUrl and I need to extract the path+file+params. Basically everything but the hostname - what would be requested via HTTP. I looked through the Qt 4.6 docs but I couldn't find anything that looked like it would do this. What method(s) would I call? ...

Event does not work after drag and drop operation

I developing some kind of builder for our project. I want to use both drag and drop support and context menu in my application. Currently I use drag and drop support but no luck with context menu. Below is my builders gui. Left side my gui is toolbox. I am draging and droping widgets to the right side(QGraphicsScene) and I also want to...

MySql connection control

I try to a web servis with Qt. It controls database server connection. it is connected or not. In one second open database and close database is logical or with a dummy query in one second query database is logical ...

Check Disk fullness

Possible Duplicate: How to determine how much free space on a drive in Qt? How can I check disk fullness with C++ using Qt ? Thanks a lot ...

Phonon on windows XP cant load DS backend which definitely exists

I am experiencing problems with phonon direct show backend on WinXP. Basically it doesn't work at all for me I've tried it with both 4.7.0 SDK and with version built from sources. In both cases phonon_ds94.dll is located in /plugins/phonon_backend/ dir. My system is WinXP and I use VS 2008. Here how I create video player: vp = new Pho...

proxy problem in QNetworkAccessManager

Hey everyone, I'm facing some trouble when using the class QNetworkAccessManager. I use this class to receive response for a simple URL (http://iconic.4feets.com/update). Working fine if my system have no proxy. m_pNetworkReply = m_pNetworkAccessManager->get(QNetworkRequest( QUrl (URL) ); The problem is, if the computer is using a p...

Qt:when Loading large (2 mega each ) images into listWidget its very slow

I have simple QlistWidget that im loading images in one call using this code : ui.listWidgetImages->setIconSize(QSize(60, 60)); QStringList::const_iterator i = filenames.constBegin(); // QStringList that holds the images paths while (i != filenames.constEnd()) { QString value = *i; QListWidgetItem *standardItemnew = new QListWidge...

Qt Drag and Drop General Question

Does it makes sense to drag and drop QWidget to QGraphicsScene or does it have side effects? ...

How to make QTabWidget without pages

I with to use the tabs of QTabWidget but I don't need the pages as containers. I need only the tabs. Is there a way I can hide or disable the page containers and display only the tabs? ...