qt

How can I move a QSlider slider handle with the keyboard?

I can't figure out how I can move a slider handle of a QSlider in QT. When I press for example A( I want to move coursor left) and D(I want move coursor right) so I did (void) new QShortcut(Qt::Key_A, this, SLOT(moveTickmarkLeft())); (void) new QShortcut(Qt::Key_D, this, SLOT(moveTickmarkRight())); implementation: void LCDRange::...

QDockWidget move problem when using custom title widget

Hi, I want to create a dock widget with a custom title widget. That custom title widget has my own icons (maximize, minimize, close etc). Source code is simply like that: QDockWidget *dock = new QDockWidget("name", parent); MyDockTitle * titleWidget = new MyDockTitle(dock); dock->setTitleBarWidget(titleWidget); When I run the...

Qt - can QTable have column labels rotated by 90 degrees?

I have many narrow columns with very long labels. I want to rotate the labels by 90 degrees. Is it possible? ...

Qt QGraphicsView QGraphicsScene cursor related bug feature what?

Take a look at the youtube video link provided below: http://www.youtube.com/watch?v=FJDxuKAdYNo If possible ask question here and I'll try to explain my problem accordingly. Can you explain what could be the reason for multiple cursors? ...

What are some good Qt related blogs/forums/sites to follow?

What are some good Qt related blogs/forums/sites to follow so one can learn more about developing with Qt? Also maybe some good (in terms of user interface richness) opensource apps that one can read the source code and learn from them. ...

Mixing Qt threads with COM threads

I'm working on a little project that uses DirectShow/COM for capture, and DShow makes callbacks using its own threads when my application gets imaging data. I'm also using Qt in my project, and I'm wanting to use Qt for synchronisation and thread-safety. I'm wondering how I can use Qt Threads in this case. I understand I can also use W...

How do I get resize handles in QT?

Is there a way to get a resize effect between two widgets? Like say I have two QTextEdit boxes next to eachother, I want to get a handle between them so I can move it back and forth. Sort of in the same way that the textarea I'm writing in now has a handle at the bottom for making it larger. I'm using QT Creator and I can't seem to figu...

How to put an image and a QProgressBar inside a QTableView?

I'm developing some kind of download manager and display the file name, it's size and the remaining bytes in a QTableView. Now I want to visualize the progress with a QProgressBar and display an image (to indicate whether it's an down- or upload). How can I add or display a QProgressBar and an image inside the QTableView? ...

HowTo make restoreState() and saveState() work correctlly to QTableView class?

Hello, there. First of all, I wanted to say, that my problem was already discuss here, on SO, and here it is. But the answers are not the good ones... So, here is the problem: I have a QTableView class, with a simple model, connected with tableView->setModel(model); method. For example, I have 4-5 columns. I started up my project appli...

Comparison of GUI developing tools for linux

Hi All, I am fairly new in the domain of GUI designing and development. I do have some prior experience but that is with Visual Basic. I would like to develop a reasonably comprehensive (though not state-of-the-art) GUI application on linux based on a command line app. that I have. Having done some googling, I do find that there a...

how to have gantt chart using python or pyqt

hello , im working on a (asset management) system to handle assets , resources and progress of tasks i want to have a gantt chart in my system im using python 2.6 and pyqt . is there any (already made charts python library ) ? that can work well with pyqt. or should i make a custom widgets for this ? please advice. thanks in advance...

How to convert from BYTE* to QString?

I have a DATA_BLOB structure but I need to convert it to QString. How can I do this? ...

Coding progress bar advice

In my application i am parsing an xml file and validating the contents with xsd schema. When xml file gets bigger it takes some time to parse file and validate the contents. In this case I want visualize parsing and validation phases with progress bar. How to do this? Note: I am using Qt with C++ ...

How to interrupt select/pselect running in QThread

I have a QThread that reads from a socket and sends a signal (QT signal) when there are any data available. This would be easy with blocking read(2), but i need to be able to stop the thread from outside without waiting for too long. If I were using pthread I would use pselect and pthread_kill(thread_id, some_signal), but QThread doesn'...

Displaying an image when hovering a label

Hey everybody, I'm wondering if there is a simple and quick way of displaying an image when the user hovers a QLabel... Since QLabel can be used to display QPixmap, I would like to display some kind of "preview" when hovering a QLabel... Do you guys know how I could manage this ? Thanks in advance ! ...

QGraphicsView not displaying in QMainWindow

I'm not sure why this application is not displaying anything. I'll reproduce in a few lines to provide the gist of the issue. Using PyQt4 class SomeScene(QtGui.QGraphicsScene): def __init__(self, parent = None): QtGui.QGraphicsScene.__init__(self, parent) pixmap = QtGui.QPixmap('someImage') # path is DEFINITELY vali...

Ajax call from local html page in Webkit Qt

I'm trying to perform an Ajax/XMLHTTPrequest from within a local HTML file in QT 4.7RC QWebview. It consistently fails with an empty responseText and status 0. I've set the follwing page->settings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls,true); but it has no effect (I can load remote images without problems thoug...

What features or concepts annoy you in Qt?

Qt is a nice framework and great UI toolkit and it has many useful features and concepts. Most of us probably agree that Trolltech, lately Nokia, have done pretty nice job developing it. One of the latest advances in Qt is QML, which I find fascinating advancement. However, I find some of the concepts badly designed or badly implemented...

How do I execute queries with multiple lines using QOCI (the Qt Oracle binding)?

I am using the QOCI binding to connect Qt with an Oracle 10g database. The code is really simple: QSQLQuery sqlQuery = QSQLQuery(database); sqlquery.prepare(querystring); sqlQuery.exec(); Now if querystring is only one line, it works: select * from dual But if it contains multiple lines, I get an ORA-911 invalid character: select ...

error qreating qci plugin for QT, mingw32-make error

hi, i'm trying to create QCI plugin so i can connect my ORACLE db but fails... following those stages: set INCLUDE=%INCLUDE%;c:\oracle\oci\include set LIB=%LIB%;c:\oracle\oci\lib\msvc cd %QTDIR%\src\plugins\sqldrivers\oci qmake -o Makefile oci.pro mingw32-make i get this error: C:/Qt/2010.02.1/qt/src/plugins/sqldrivers/oci/../../../...