I have the situation in the following image:
How would I go about resizing the widget when the retry child is hidden so that it looks as in the first image? The main layout is a QVBoxLayout, the retry child is a widget with a QVBoxLayout as well.
I've tried the following:
update()
updateGeometry()
setGeometry(childrenRect())
layout...
hi
i want to burn my audio files into CD. Is it possible to do programatically.
I heard about ICDBurn. But not gettng that much idea when reading MSDN.
I am from embedded domain.
Can u give some help or sample program.
I want to implement in VC++ or qt.
...
Is there a way to force QtCreator to recompile all the resources (images / qss files) i have specified in my qrc file every time i build the project?
Currently if i change some styles in my qss file but dont remove the file and re-add it to the qrc file the old version of my qss file is used.
Thanks.
...
I would like to build a static version of QT Library for X11 like shown in the doc Deploying an Application on X11 Platforms but I am stuck at the first step.
where it says :
cd /path/to/Qt
./configure -static -prefix /path/to/Qt
make sub-src
1) Where is the path/to/Qt. Is this a path to libs or executables or what? In /usr/bin...
I want to use Qt lib but I don't know how to install Visual Studio 2008+Qt+Qtintegration. I have read some forums, that step by step tell what to download, where to download from, and then what to do. But that was for old versions of mentiond products.
I ask to Qt developers tell me the way to install these items on Windows. Any forum o...
I have a an object I'd like to be able to read and write to/from a QDataStream. The header is as follows:
class Compound
{
public:
Compound(QString, QPixmap*, Ui::MainWindow*);
void saveCurrentInfo();
void restoreSavedInfo(QGraphicsScene*);
void setImage(QPixmap*);
QString getName();
private:
QString name, hom...
I currently have this code:
// Construct query
QString const statement = QString("drop database if exists %1")
.arg(databaseName_);
QSqlQuery query(db);
query.exec(statement);
Is there a better way to code than the above?
Specifically, I dont like how I use QString for SQL statement. It'd ...
I have built a static version of qt and download a static version of glibc. Now I would like to link glibc statically to my qt application. I know about going into the .pro and adding the line LIBS += -L path/to/static_lib but I am wondering if these that is enough? Will it still link glibc statically even though the OS I am building...
here's the main code at first I thought is was the message box but setting a label instead has the same effect.
#include <time.h>
#include "ui_mainwindow.h"
#include <QMessageBox>
class MainWindow : public QWidget, private Ui::MainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
void makeSum(void);
...
I am trying to build a standalone qt application (built on ubuntu and deployed on Red Hat 5.3, both 64 bits) after building a qt application that is statically linked to the qt library I tried to run the program on red hat and got an error saying libc.so.6 was not found and that GLIBC_2.9 or GLIBC_2.10 is not installed and needed. I tr...
Hi,
I have an application which runs a tool that requires network connection. Now my aim is to check whether the user has a network connection, if he don't have one, i can straight away display an error without proceeding further. If he has, he can continue working with my application. So my basic need is to check whether the user has a ...
Hi..
Can any one tell me how to set the item to be selected forcefully..
I tried this after adding items to list row..
QModelIndex index = mylistview->currentIndex();
mylistview ->setCurrentIndex(index);
its not working.. index I am getting index (-1,-1)..
can any one help me on this
Thanks
...
Hi there. I'm using Qt 4.6.2 and i have problem with QCSS. I have own Q_PROPERTY(QFont myFont READ myFont SET setMyFont). I want to change it with QCSS but it doesn't work. I've tried using normal font syntax but it doesn't work. I've also tried few other combinations like:
qproperty-myFont:
font(serif 20 1 0)
font(serif 20 bold)
QFont(...
i am writing an ide using qt (on c++) and i need to add auto completion feature to it
so i want to know :
how to do that (i am using qtPlainTextEdit) ?
what the data structure i should use ?
...
I have QT installed on disc D (on Windows). And I want to move it to disc C. Is it possible to do that?
If I just copy QT folder from C to D then I see lot of errors when I compile my applications that use QT.
Errors are because qmake.exe contains full paths to include, bin and libs folders inside. So, when I create solution for Visual...
I am trying to use rich text in a QComboBox but it does not support it. Perhaps I should write a subclass? But I am unsure on what I would need to override as I have never done anything like this before. Please help. Thanks!
...
For example i have this xml. I need to get value of parameter val of tag foo with id="two"
<top>
<sub id="one">
<foo id="two" val="bar" />
sometext
</sub>
</top>
Whis this query (using Qt QXmlQuery):
doc('test.xml')/top/sub[@id='one']/foo[@id='two']/<p>{@val}</p>
I receive <p val="bar"/>, but I need only tex...
class myslot
{
public:
Q_OBJECT
myslot()
{
}
~myslot()
{
}
typedef enum Emycars{volvo,benz,tata}cars;
public slots:
void hellowslot(myslot::cars);
};
void myslot::hellowslot(myslot::cars cars1)
{
}
class mysignal
{
public:
Q_OBJECT
public:
mysigna...
I would like to add a QMenuBar to a window of my program (not the QMainWindow) from QtDesigner but I do not see this widget in there and it seems the only way to do this from designer is to use a mainwindow. Would I absolutely need to create this QMenu by hand coding it. Is it possible/ok to instead add a QMainwindow that is actually d...
I want to update fontconfig to a newer version but it seems that the OS is still finding the old fontconfig and I need the newer version to build qt. How do I make Red Hat 5.3 see the newer version? I do not know if this helps but when I did a search for fontconfig I found some files in a folder called cache. When I do yum update it t...