I have a QTableView which I am setting a custom QStyledItemDelegate on.
In addition to the custom item painting, I want to style the row's background color for the selection/hovered states. The look I am going for is something like this KGet screenshot:
Here is my code:
void MyDelegate::paint( QPainter* painter, const QStyleOptionVie...
I have a QPushButton, QDateEdit and another custom object. I want to connect the button to the date edit object in a way that when I click the button, the date edit object will change its set date to a date defined on the custom object. Kinda like this:
connect(pushbutton,SIGNAL(clicked()),dateedit,SLOT(setDate(custom_object.getDate()))...
Hi, I have multiple labels on which I need to QLabel->setValidator(QValidator)
groups of them have the same validation rules. Can I reuse the same QIntValidator for all labels that have the same rules?
...
Hey, my Qt C++ program has a part where it needs to send the first 128 characters or so of the output of a bash command to an email address. The output from the tty is captured in a text box in my gui called textEdit_displayOutput and put into my message I built using the Message Builder ( the object m_vmMessage ) Here is the relevant co...
I have done a few months of development with Qt (built GUI programatically only) and am now starting to work with Cocoa. I have to say, I love Cocoa. A lot of the things that seemed hard in Qt are easy with Cocoa. Obj-C seems to be far less complex than C++.
This is probably just me, so: Ho do you feel about this?
How does Cocoa compar...
Hi to all. I have text file with some text information and i need to split this text at spaces and all word push into List.
I make so:
QStringList list = line.split(" ");
for (int i = 0; i < list.count(); i++){
table.push_back(list[i]);
this->ui->textEdit->setText(list[i]);
}
In line i have my text. But when i test...
Hi to all, in this question i asked how to split text by whitespace, now i split it, but now i can't display this text in QTextEdit.
I make so:
QStringList list = line.split(QRegExp("\\s+"));
for (int i = 0; i < list.count(); i++){
table.push_back(list[i]);
this->ui->textEdit->setText(table[i]); //output text in qtexte...
Hi.
I need to customize the listview,I am placing an icon and a text at the center of the listview.
If the text length is bigger then the list rectangle length.. the text is coming over the icon first letter of the string is not visible..
How to avoid this situation? Is it possible to give marique effect for the string?
Thanks in adv...
I created the Qt plugin which works properly in FireFox. In Chrome, it works once for same domain. For the second page of same domain, it even doesn't call painEvent(). Anyone who know the reason, please help me.
Thanks in advance.
...
Hello everyone,
This has been bugging me for more than two days now, so i thought i should ask. I am using Qt 4.5.3 (compiled with VC2008) on Win7.
I have MyGraphicsView (inherits QGraphicsView) and MyFilter (inherits QObject) classes.
When i install the MyFilter object as an event filter to MyGraphicsView, Mouse events are delivered ...
Hello, I have a char variable, declared for example as:
char a = 's';
How can I get the ASCII code of this symbol?
Thank you.
...
I have a qt app that is defaulting to looking like windows 98. Is there some way to get it to look better? I like the appearance it has on GNOME or KDE, but even getting it to look like windows XP would be an improvement.
...
Can it be done through the IDE itself? I can't find an option to do it.
...
I am getting input with this here
areaInput = QtGui.QInputDialog.getText(self, "Copy Area", "New Area Name:", 0)
However I would like to make the dialog box larger, I've tried things such as
QtGui.QInputDialog.resize(400, 400)
However it says "the first argument must be a QWidget class" and I'm not quite sure what this means or how...
I have calendar in Qt. I want when user selects date, 14(Qint32) will be added in it and resultant date should be highlighted on 2nd calendar. Please let me know how can I do that, I'm beginner.
...
Hello,
I am running valgrind on my Qt code,and even on successful exit of the application, get the following report from valgrind
8,832 bytes in 92 blocks are still reachable in loss record 12 of 12
at 0x4025390: operator new(unsigned int) (vg_replace_malloc.c:214)
==3339== by 0x4B75F05: QMutex::QMutex(QMutex::RecursionMode) (qmutex....
I have an application where I can launch a modal dialog box over a main window. The main window has some network activity going on in background which updates my background UI. Due to this the application menu becomes accessible even if the modal dialog is open.
How can I avoid this? Any help is appreciated.
I am using Mac, Qt, Carbon....
Hello,
I want to save a QList<int> to my QSettings without looping through it.
I know that I could use writeArray() and a loop to save all items or to write the QList to a QByteArray and save this but then it is not human readable in my INI file..
Currently I am using the following to transform my QList<int> to QList<QVariant>:
QL...
Hi
I would like to know if it is possible in QTWebKit to install an event filter or capture events that occur from specific Dom elements. For example, my webview is showing a webpage that has text, images and an edit box, I want to disable the right-clicking and highlighting functionality on the text and images but at the same time when...
Hello All,
Is it possible to detect that whether any modal dialog box is
open over main window? If yes then how?
I am using Qt, Mac, Carbon.
Thanks
Rahul
...