I'm using Qt and C++, I need to find out the amount of memory used by instances of certain Qt classes, this is usually done using sizeof, however in Qt each class holds a pointer to an another class containing the actual implementation, the definition of this private implementation class is not found in headers but only in the source-cod...
I using Qt3.3 and I'm trying to create an QApplication without display.
I need to check signals from QSocket objects, and this is the reason that I need the QApplication.
I'm trying to do QApplication( 0, 0 ), but I'm getting "QApplication: invalid Display* argument.".
How is the correct way to do it?
...
I am trying to do a connect with a std::vector& using queued connection
connect(this, SIGNAL(process(QVector<FrameData*>&)),
this, SLOT(beginProcess(QVector<FrameData*>&),
Qt::ConnectionType::QueuedConnection);
What parameters should I pass for QRegisterMetaType for this to work?
Thanks in advance!
...
Hello, are there any ways to get current keyboard layout in Qt?
Platform: Linux.
Programming language: C++.
Thanks.
...
I am getting confused about the QList copy constructor by the documentation.
QList::QList ( const QList & other )
Constructs a copy of other.
This operation takes constant time,
because QList is implicitly shared.
This makes returning a QList from a
function very fast. If a shared
instance is modified, it will be
cop...
Hi!
Can anyone pls tell me that, why I can't use normal C++ classes within a QT programme. If there is any class which aren't inherited from QObject the compiler give me a linking error called,
error LNK2019: unresolved external symbol _main referenced in function _WinMain@16
I'm using Qt4.5.2 (compiled by myself) with vs2005. Pls h...
Hi,
I try to create a thread in QT, can declare, create and start it, however it doesn't fire Run function (I can see that via putting a breakpoint in that function)
VT.h:
class VT : public QThread
{
public:
void Run();
};
VT.cpp
void VT::Run()
{
..
}
and in main.cpp:
VT vt;
vt.Start();
// starts ok but no action
I am in...
Hi!
I want to create a Qt popup window which will behave like a message box in Qt. That means the rest of the GUI must blocked until that popup window is dismissed. This may be a child question, but can anyone pls help me with this ?
Thanks... :)
Edit:
I want to use forms, labels, buttons and some other widget types in that popup ...
I can set the parent's status bar text with this function I wrote
void EditorWindow::setStatusBarText(const QString& text) {
statusBar()->showMessage(text);
}
Called like this (from child)
((EditorWindow*) parent())->setStatusBarText(tr("%1, %2").arg(mousePos.x(), 0, 'f', 2).arg(mousePos.y(), 0, 'f', 2));
But I'm pretty sure th...
How do I run an XPath query in QT?
I need to sort out certain tags with specific values in a certain attribute. The QXmlQuery documentation is anything but legible.
The schema I'm parsing is the Rhythmbox DB format:
<rhythmdb version="1.6">
<entry type="ignore">
<title></title>
<genre></genre>
<artist></artist>
<al...
What's the best way to go about creating a play/pause button in Qt? Should I create one action and change it's icon when clicked, or should I create two actions and then somehow hide one when clicked? How do I use one shortcut key to activate both actions? (Pause when playing, or play when paused).
...
I have a dock widget, now I want to add a "Window" menu to show/hide the widget. Easy enough to do with
showPropWinAct = new QAction(tr("&Properties"), this);
showPropWinAct->setStatusTip(tr("Show properties window"));
showPropWinAct->setCheckable(true);
connect(showPropWinAct, SIGNAL(toggled(bool)), propertiesWindow, SLOT(setVisible(bo...
Hi,
I've ran into problems installing the LGPL version of the Qt SOAP component:
http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtsoap/
I've followed the instructions in INSTALL but can't seem to get it to build the DLL.
Unpacking and installation
Unpacking the archive (if you have not done so already).
...
I want a widget like the properties window in Visual Studio or NetBeans. It basically has two columns: the name of the property on the left, and the value on the right. The value needs to be able to be restricted to certain types, like 'bool' or 'float' (with valid ranges), but should also support more complex types (perhaps requiring a ...
I have three QDockWidgets which are tabbed at startup using QMainWindow.tabifyDockWidget.
In the main window, after all of the addDockWidget calls:
self.tabifyDockWidget(self.dock_widget1, self.dock_widget2)
self.tabifyDockWidget(self.dock_widget1, self.dock_widget3)
Based on certain actions, I'd like to select one of these tabs and ...
I asked this question on the PyQt mailing list, and didn't get any responses, so I'll try my luck here.
I've encountered a frustrating issue (on Windows only): when trying to create a VideoWidget instance, I'm getting the error message "the video widget could not be initialized correctly". Oddly, this just surfaced in the code after sev...
So I've downloaded an add-on for Qt and now I'm trying to use it in my project. I've moved the src files to /usr/include/qt4/QtPropertyBrowser to be consistent with the other qt modules, but how do I add it to my project now? The standard ones have checkboxes that I can just tick off in the project properties dialog, but not this one. Th...
Is there any way to attach two Qt windows together? For example, if window A is the main window and window B is another widget I want to be able to show window B to the side of A and have both windows move together if the windows are dragged.
...
I'm working on a piece of C++ software which runs on all Windows versions between Windows XP and Windows Vista. In my code, I developed a DLL which links against a standard library (the Qt library). Once my software is deployed, it's not unusual that the user doesn't have the exact same Qt build on his system but a slightly different con...
Hello,
I am a final year computer engineering student. As my final year project, I have decided to create a multimedia encoder for linux, possibly cross platform.
My question is: How can I create a GUI for ffmpeg (i.e. how can I pass command line arguments from the GUI)?
I am trying to use QT for cross platform development.
...