hi geeks,
I want to put a png image as background in QToolButton. But I am not able to get the transparent portions in the button. The transparent portions are showing as white in my QToolButton. Can anybody suggest how to remove the white portions as transparent ?
...
Hi everyone,
can you advice what to use for making tree structured text editor?
I used QTreeView for this (asked few questions to solve my problems), but it seams it's not suitable for this purpose.
Thanks in advance,
Serge
...
Hi,
I want to reference a win32 dll from my Qt application. I've added the dll location in the .pro file at "LIBS+=" . Once that is done, by right, i should be able to include the .h file inside the dll from my application. But i'm unable to do so.
I'm testing with the dll here: http://www.flipcode.com/archives/Creating_And_Using_DLLs.sh...
I am making my own browser with Qt/Webkit for touch screen devices. I want to have My own editbox in browser ( so that when user click on it, I can open virtual keyboard), Touch friendly listbox and other controls.
So In QWebView I want to have MyOwnTextEdit instread of QTextEdit and same for all other UI controls.
Please tell me How c...
Is it possible to set and change the icon on a QPushButton using stylesheets?
I need this for a Windows-based white-label Qt4.5 application that customers stylize using stylesheets.
Thanks.
...
I have
no matching function for call to 'saveLine::saveLine()'
error when compiling my application. The construcor is never actually called.
saveLine class definition:
class saveLine
{
public:
saveLine(QWidget *parent);
private:
QPushButton *selectButton, *acceptButton;
QLabel *filePath;
QLineEdit *allias;
};
saveL...
EDIT #2 - I'm done the previous state part. Now I need to my state algorithm so that the grid acts like a Toroidal Array. That is, the top/bottom and right/left edges wrap around.
Not sure how to do this, though. How would I change the nested-if's in thisTimer() to do this?
EDIT - Is the serialising really necessary? I see how it cou...
Hi,
I'm developing a qt browser plugin and want to implement named pipes in it. I tried the basic fortune cookie example provided with the QLocalSocket and QLocalServer in an exe and it works fine. But when i try to implement a similar thing in the browser plugin, making a page where the plugin is present listen to a name (like a server...
Is there a way to detect that all characters are displayed properly with the current font? In some environments and fonts certain characters are replaced with a square symbol.
I'd like to automatically verify that all characters used in the GUI are supported by the current font.
...
Hi,
I want to execute a slot in different class. Is it possible
UI_CDSK Obj;
connect(Obj.penDrive,SIGNAL(clicked()),this,SLOT( Obj.caller()));
This code is in different class and from this class i want to execute slot of different class(UI_CDSK )
Here penDrive and caller belongs to function UI_CDSK class and the mentioned code is i...
I'm trying to run Valgrind 3.5.0 on RHEL 5.5 with Qt 4.6.2. It's producing loads of spurious errors and I'm wondering if anyone can share a suppressions file they've built? When using --leak-check=full, the output reports leaks in glib, gtk, pango etc. even when I'm just running part7 of the AddressBook example. With over 25000 lines th...
Hi,
I want to execute the slot of different class. When i execute this code its compiling without any error but not getting Output
pendrive1::pendrive1()
{
UI_CDBurn Obj;
connect( Obj.penDrive, SIGNAL(clicked()),&Obj , SLOT(caller()));
}
Here my slot is not working. Slot in UI_CDBurn is public. But when i called with a button in...
In Qt I need to send a sqlite file (binary file) up to a website using post. So what I do is that I open the file and try to read the content of it into a QByteArray that I with help of QNetworkRequest can send to the server. I can handle the request as the file is sent to the server but the file is just empty. Am I reading the content o...
Hi,
I'm trying to write a program that would use 7-Zip DLL for reading files from inside archive files (7z, zip etc).
Here's where I'm so far:
#include QtCore/QCoreApplication
#include QLibrary
#include QUuid
#include iostream
using namespace std;
#include "7z910/CPP/7zip/Archive/IArchive.h"
#include "7z910/CPP/7zip/IStre...
Hi
I have a class that inherits QStandardItem and I put the elements in a QTreeWidget. The class receive notifications from the outside and I want to change the background color of the item based on what happened.
If I do not use stylesheets it works just fine, like this:
void myClass::onExternalEvent()
{
setBackground(0, QColor(2...
I have this very strange problem while compiling the project.
MOC seems to be adding a namespace to the class name being moc'ed, although it's not mentioned anywhere in the file/class.
The namespace, however, exists in a library which I use, but it's hidden far away in the header files and I don't use it in the UI files. This is what ...
I'm using the following code to load in an XML file (actually an NZB):
QXmlQuery query;
query.bindVariable("path", QVariant(path));
query.setQuery("doc($path)/nzb/file/segments/segment/string()");
if(!query.isValid())
throw QString("Invalid query.");
QStringList segments;
if(!query.evaluateTo(&segments))
throw QString("Unable ...
I'm just starting to use QTestLib. I have gone through the manual and tutorial. Although I understand how to create tests, I'm just not getting how to make those tests convenient to run. My unit test background is NUnit and MSTest. In those environments, it was trivial (using a GUI, at least) to alternate between running a single test, o...
Hi everybody,
how can i set different margins for each QTextBlock in QTextEdit/QPlainTextEdit?
i tried to set it with following code:
class MyWidget(QPlainTextEdit):
def func(self):
block = self.firstVisibleBlock()
while block.isValid():
block = block.next()
block.blockFormat().setLeftMarg...
It seems that the following is to deep for the debugger in Qt even though the program uses it without problem
typedef QMap <int, QStringList> day2FileNameType;
typedef QMap <int, day2FileNameType> month2day2FileNameType;
typedef QMap <int, month2day2FileNameType> year2month2day2FileNameType;
year2month2day2FileNameType y2m2d2f;
now t...