A little is hidden in Qt given splendid documentation.
But given vastness of Qt functionality paradoxically many useful features have been overlooked by me (and reimplemented or work-arounded).
What Qt functions you wish you have noticed earlier?
...
A client of mine has built Qt against VS2005. They are now wanting to put this into source control, but they don't want anything they don't need.
What's the proper way to remove temporary stuff like the "tmp" directories, without deleting output libs/DLLs or invalidating the tree for use as a QTDIR target?
If there's no prebuilt way t...
In the process of creating a user interface code from UI file Qt creates 2 classes with just the same definition.
class UI_CustomeUIClassFromUIFile
{
//code generated from UI file thru UIC
}
namespace ui
{
class CustomeUIClassFromUIFile public : UI_CustomeUIClassFromUIFile{};
}using namespace ui;
What is the reason for having 2 classe...
The usual way to use Qt widgets from Python seems to be to subclass them.
Qt widget classes have a great many methods, so inevitably I'm going to end up adding a method to the subclass, with the same name as one inherited from the Qt widget. In Python, all methods are virtual, so what I'm concerned about is that some Qt code might end u...
I'm writing a Qt application and will need to store the settings for the program. I want them to be easily editable by non-advanced users yet be flexible enough for advanced users (thus allow easy automated editing via other programs, scripts, whatever). QSettings does provide two formats, the native format, which for Windows is registry...
I have a large project with one qmake project file defining all project components using a 'subdirs' template. Currently I define translation files in the qmake files of each sub-project. This results in separate translation files for each sub-project, which quickly becomes too cumbersome to maintain.
How do I get lupdate to produce a s...
I added my state to m. This code will delete mystate?
QStateMachine *m = new QStateMachine();
QState *mystate = new QState();
m->addState(mystate);
delete m;
...
Does Qt have any platform-independent functionality to accept paths like "~/myfile"?
I know about wordexp, but it would be nice with a platform-independent wrapper.
Edit:
Thank you all for the responses. "~/myfile" was just an example. What I am looking for is functionality to handle file-paths as you would be able to write on the com...
I am trying to connect a Qt client to a LabVIEW server (acquiring analog signals). Can this be done with data sockets ?
...
given a stringlist containing 4 names. I need to call qprocess for each name in loop. To avoid freezing I am using qthread as suggested in this forum.
given that (say):
QStringList queueList contains 4 elements all.q, a1.q, a2.q, a3.q
for(int z= 0; z < queueList.length(); z++)
{
// for each z call a thread that in turn will star...
I grabbed the 4.6.0 release, and immediately tried writing a little test app for it. This application simply shows an edit box for a host address, and a checkbox if it's to use an encrypted connection or not. There are also simple 'Connect' and 'Disconnect' buttons. It tries to download and show an image in a QListWidget, showing debu...
I'm writing a program using Qt4.5 that shows a book in another language. So I have a large body of text and I want to display a different tooltip for each word (the tooltip will contain parsing information for the appropriate word).
What is the best way of doing this?
I have a working solution for a browser using php and jquery so I ha...
I have some problem with states don't setting properties. Probably the problem is because I add the properties after the machine is started and I'm adding to the current state. But I need to add properties, states and transition when the machine is already running.
Thank you.
...
I'm using QWebPage to load needed site page. But QWebPage loading all additional resources: images, csses, and so on.
Is there any way to present this behavior and cancel loading of images?
Only idea that I have - to write custom QNetworkConnectionManager, which will return some dummy picture instead of requested. But this looks a bit o...
I think the headline already explains what I want to know.
Is there a possible way to open and save images with 16-bit with Qt? And I don't mean the 3*8=24bit or 4*8=32bit, what is quite the same as a pure 8-bit image, I mean pure 16-bit for R, G and B.
...
I've got a custom widget descended from QWidget that I want to be able to drop onto, and while the drag is hovering over the widget I'd like to highlight it to provide a little visual feedback to the user. Seems to me the simplest way to do this would be to highlight when dragEnterEvent is called and unhighlight when the drag exits the...
I have the following code:
#!/usr/bin/env python
import sys
from PyQt4 import QtGui, QtCore
class SimfilePanel(QtGui.QWidget):
'''This class provides the simfile panel shown on the right side of the main window.'''
def __init__(self, parent=None):
'''Load song info here.'''
QtGui.QWidget.__init__(self, parent)
## Mak...
I'm trying to create custom widget inheriting QFrame. All works fine, but I'm unable to draw the focus rectangle around my widget. Below is the sample code I use for drawing:
frame.h
class Frame : public QFrame {
Q_OBJECT
public:
Frame(QWidget *parent = 0);
~Frame();
protected:
void paintEvent(QPaintEvent *event);
private...
I have a QTableView and a QStandardItemModel. Is there have a column can contain checkboxes that are user editable without using delegates or using the abstract model classes? Not that I cant do it i just want to minimize the code, I would find it overkill for simple check boxes.
By using model.setData(index, Qt::Unchecked,Qt::CheckSt...
Seems using model.setData(index, Qt::Checked,Qt::CheckStateRole) is not enough to get the checkbox working right. Any suggestions?
...