Let's consider we have a QWidget and a layout named general_layout that contains other widgets and layouts. general_layout is set as the QWidget layout (setLayout(general_layout)).
Now I should to change the content of QWidget. How should I do? I have tried to delete and create a new layout for QWidget and that new layout set as a layou...
Hi.
Here what I have got:
Qt SDK version 4.6.2
Windows XP
Question: how can I simply crypt and encrypt simple QString value? I need this to be able to save some crypted string into the INI file, and after reopening application encrypt string to normal password string value.
PS: I'm looking simple and nice solution.
Thanks for help...
I want to use the itemDoubleClicked(QTreeWidgetItem*,int) signal in a Haskell program I'm writing where I am using qtHaskell for the GUI. To connect a function I have at other places done the following:
dummyWidget <- myQWidget
connectSlot object signal dummyWidget "customSlot()" $ f
Where object is some QWidget and signal is a string...
There is a Qt/C++ code:
#include <QtCore/QCoreApplication>
#include <QtGui/QTextDocument>
#include <QByteArray>
#include <QDebug>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QTextDocument *doc = new QTextDocument();
qDebug() << " === Document was: === ";
qDebug() << doc->toHtml(QByteArray());
...
I can't find anything on this topic, is it possible to use CSS files in Qt or do I have to use setStyleSheet on every element I want to style?
I can't say its very maintainable if I have to write all the styles in quotes.
...
Anyone have a slick function that will return a nested tree of all the children of a particular widget?
I'm familiar with dumpObjectTree() but I'm not able to compile in debug mode, so I don't have access to that function.
Trying to find a particular widget and I'm traversing the children() hierarchy by hand. There's got to be a bette...
I am trying to write a simple program to act as my desktop background in Qt, I have made it all work fine apart from making it a Desktop Widget. I have no idea on how to do this, I don't mind using XLib or Qt for doing this, but if anyone has some suggestions I would be very happy.
...
I need to manually build a Qt plugin. No problem on Linux and Windows, but I cannot determine where in the world Qt installed the source on my Mac. The documentation indicates that the path is /usr/local/Trolltech/Qt-4.6.2, but I'm pretty sure that's out of date. In any case, there's nothing there on my machine.
I searched in Finder for...
What is the preferred way to indent/un-indent text in a list within a QTextDocument?
Do I basically have to pass in the corresponding HTML tags myself?
Edit: I'm looking for a way for the user to change the indentation level of a bulleted list with the Tab key.
...
I'm developing an application for the Mac, and I'm wicked new at this - what would be the best way to distribute the Qt Framework so that I'm not impacting an already existing framework, and so that my App.app picks up the libraries. I'm also using boost, so I'm curious how a simple bundle works with libraries.
...
How can I access the QUndoStack of a QTextDocument?
(For example, I want to be able to add custom QUndoCommand objects to the document's undo stack)
...
hello
im looking for a way to make my pyqt interface look nicer by adding a theme to it.
im new to Qt and i still have no idea how to add a custom theme for widgets.. so how is that possible ?
and is it possible through qt designer ? sorry for my bad english , its my third language. i hope the idea is clear enough . please let me kn...
hello
i have a QTableView , and i need to show a popup menu that shows the item properties .
i need to set the context menu to apear only when you right click over a particular items in that tableview.
but coudln't find a way to do it . i can set the context menu to appear when your over the table .
i cant have it for each item .
so ho...
I had designed some gui through Qt cretor on linux,these design consists of some fields, text edit , & some push buttons . Now my doubt is when i press on push button i want display aanother window . Is there any GUI option for this or any hard code.please let me know if any hard code............. waiting for answer
Tanks in advance.
...
Lets say I have a resource at ':images/pic.gif'
Can i make a QPIcture from this resource or does it have to be loaded from file?
...
I am very new to qt, So whatever I facing is either errors or problems. Here goes some of them,
1)Just try to install it in VisualStudio, you will got enough for the day.
2)After you installed it as a separate qt(without embedding it inside visual studio).Open a c++ file in qt, => then you won't get any option to compile it.
3)Create ...
While perusing the Qt source code I came across this gem:
template <class T> inline T qgraphicsitem_cast(const QGraphicsItem *item)
{
return int(static_cast<T>(0)->Type) == int(QGraphicsItem::Type)
|| (item && int(static_cast<T>(0)->Type) == item->type()) ? static_cast<T>(item) : 0;
}
Notice the static_cast<T>(0)->Type? I...
Our application is localised and I have pulled in all the standard Qt_*.qm files as well so that my Qt dialogs are translated as much as possible.
However one of our distributors wants to add the Danish translation and its not in the standard Qt translation files.
How can I get Qt to create the file so I can send it off for translation...
Hello all
im using Qwebkit and every time im loading youtube , its asking me to download the latest
flash player plugin , even so i already installed the plugin and i can see youtube videos
in firefox and explorer very well
what is the deal with Qwebkit and Flash plagin ?
...
Hello everyone.
I am using the pyqt4 framework to do some displays for database forms. Unfortunately, I hit a snag while trying to filter and display my database by last name. Assume that the database connection works. Also assume that I have the correct amount of items in my tupleHeader since I use the same initializeModel method fo...