i have in my application that when i click on row i have the default blue row marked
but beside this blue color i what to paint the row in different color via function not depending on user clicked signal , in sort i need a function that i will pass the row index and it will paint the row in x color.
...
Hi,
I've just started working with Qt Creator and I want to write the UI.
My question is: what is the best way to write it? By drag and drop from widget box or writing code?
I've dragged some widgets and I saw that not all of build in QWidget like QIcon and QMultiLineEdit are in the widget box. How to add them?
Thanks!
...
Greetings all,
Is there a way to set a different background color for each item in a QComboBox ?
Thank in advance
...
hi,
I'm using Qt Creator.
I'm using the signals and slots editor, and I want to see the code it generates.
How can I see the code?
Thanks!
...
Hello!
I'm a mostly webdeveloper, so my question can be somekind of a beginners.
I'm writing a function which works with QWebView content, some kind of a macro script which makes action on loaded web page.
code is something like that:
somefunction() {
QWebView *webView;
webView->load(QUrl("http://www.google.com"));
<...> here I want...
Hi, my widget has children widgets which can appear and disappear sometimes.
Now after hiding one of child I call adjustSize() to resize the main widget to possible minimum.
How to automatically call adjustSize() when showing/hiding children in a layout?
I tried setting sizePolicy to QSizePolicy::Minimum but this doesn't help...
...
Hi,
I have QTreeWidgetItem set in a QTreeWidget with 2 columns. Both cells got a CheckBox set by setCheckState(...).
When the user unchecks the CheckBox in my first column I uncheck the second CheckBox in column 2.
Now, I would like to prevent the user to check this second CheckBox again. Is it possible to remove this CheckBox in colu...
i have built the dll its QtSolutions_SOAP-2.7d.dll and now i want to reference that in Qt Creator how do i do that ?
thanks
...
Our team is looking for alternative to ActiveX for our browser based client. So far flash, silverlight, HTML5 are being considered. Since I have some prior experience of Qt I am thinking of suggesting Qt. From documentation it seems QtBrowserPlugin is req for our purposes.
There are three criteria that any alternative must satisfy
Mu...
I downloaded a package called QtIOCompressor, I need to use the functionality like zipping a directory gzipping a directory etc etc in a application I am coding. But I dont know how to add this package into Qt or how to configure this package by which i can use it with my application which i may code in future!
InfO: http://doc.qt.nokia...
Hi,
I'm playing around with C++ for the first time in years. Making an app using Qt, with the Qt IDE. I want to make an app to integrate with the Flickr API. I've got to the point where i need to make a call to a URL.
http://flickr.com/services/rest/?method=flickr.people.getInfo&api_key=987654321&auth_token=9765984&api_s...
I have a class that contains a QMap object:
QMap<QString, Connection*> users;
Now, in the following function Foo(), the if clause always returns false but when I iterate through the map, the compared QString, i.e., str1 is present in the keys.
void Foo(QString& str1, QString& str2)
{
if(users.contains(str1))
users[st...
I used QtScript Generator to generate the QT bindings.
Then I imported all the bindings into C++ and tried to make a quick sample program. What I am trying to do, is use QTDesigner to create a .ui file, and then use QtScript and QUiLoader to load the ui file in the script. I continuously get segfaults on the load portion.
Here is a sim...
I've been building a small application in pyQT and I've run into a problem. I'd like to create a modal dialog box that appears on launching the application and collects some input from the user (probably a set of checkboxes that will be populated at runtime). I'm unsure of the best way to accomplish this. Should I subclass QDialog (and i...
I am trying to use static fields in QT
class MyLabel:public QLabel{
Q_OBJECT
public:
static QPixmap pix1;
static QPixmap *pix2;
static int WasInited;
...
};
int MyLabel::WasInited = 0;
MyLabel::MyLabel(){
. . .
if (WasInited==0) pix1.load("pic.png"); // Error
if (WasInited==0) pix2->load("pic.png"); // Error
...
i place a QTextEdit widget into a QWidget class(the QTextEdit's parent widget),but when the parent widget show,i clicked the QTextEdit,but it can't gain focus.how this situation comes?
...
Hi!
I create a QWidget:
m_widget = new QWidget(parent); where parent is also a QWidget
then I set visible of m_widget to false
m_widget->setVisible(false);
after that I need to show m_widget
m_widget->setVisible(true);
and this line of code hangs the application and only in release build on symbian platform
what's wrong? why does th...
Hi, i am unable to use the function MonitorFromPoint in my Qt application. I have the latest Qt SDL 2010.05 with mingw on Windows XP
#include <QtCore/QCoreApplication>
#include<windows.h>
#include <winuser.h>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
POINT pt;
MonitorFromPoint(pt,2);
return a.ex...
Hi,
I want to send the email from my QTSimulator. I am using the following code for send the email.
QMessage msg;
msg.setType(QMessage::Email);
// Set recipient for our email message
QString recipient("[email protected]");
msg.setTo(QMessageAddress(QMessageAddress::Email, recipient));
// Define message subject, ...
Hi all,
I have gone through Qtestlib manual & tutorial and got to know step by step procedure for developing a test.
If i'm right, Qt has already developed few test cases for testing its functionalities. Can anyone tell me where are those codes in Qt's source tree?
If i have to modify them(test cases), is it possible for me to do?
Th...