Hi,
I am using a QTextEdit in my C++ GUI application, I use textEdit->append(byteArray); to add some text, unfortunately append() adds a new line character at the end that I would like to remove after each call of append(). I know I could use insertPlainText() which does not add a new line character but it uses a lot more memory when de...
I have a simple Qt application that launches a window with a QWebView. I tried several sites using the video tag with h.264, and it either can't play the video at all (as in youtube or sublime video), or it renders the video poorly, with black lines covering parts of it, like when viewing the video here.
Is this a known issue with QtWeb...
Hi,
I cannot figure out how to change the text color of one particular item of a QComboBox. I was able to change the Background color of an item:
comboBox->setItemData(i, Qt::green, Qt::BackgroundRole);
(Qt::ForegroundRole had no effect at all, Qt 4.6, Ubuntu 10.04)
and I was able to change the text color of all items with a styleshee...
Hi all!
I'm new to Qt Creator and I have several questions regarding multiple build configurations.
A side note: I have the QtCreator 1.3.1 installed on my Linux machine.
I need to have two configurations in my Qt Creator project. The thing is that these aren't simply debug and release but are based on the target architecture - x86 o...
Is there a way to capture plugin (Flash) audio before it gets to the sound card?
I'd like to record plugin audio, hopefully without actually playing the sound. Capturing audio at the device level is an absolute last resort, as the application would pick up all system audio rather than just the Webkit plugin.
I'm aware of the recent swi...
I have so many things in my QGraphicsScene. The situation is I am creating a chessboard, and is using Graphics scene. So the QGraphicsScene is having so many QGraphicsPixmapItems. Now In this how can I get the King.
Update:
In this QGraphicsScene, I am adding QGraphicsPixmapItems which are nothing but coins(board,king,queen,soldiers,...
I have an app that renders a web page in a iframe, and then loads X number of images in a div that overlays the frame.
So I have this python script that loads the url, and takes a screenshot. It works on regular web pages, but I think the frame is throwing it off. Below is my code, and a link to the screenshot it's taking.
#!/usr/bin/...
I'm starting with QT4, I'm wondering where to put my application code.
Here?
void MainWindow::changeEvent(QEvent *e) {...}
Or here? (where exactly?)int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
If I want my app not only react to user events, but to execute reg...
For my project, I require multiple dialogs to be linked to each other. One button would go to one level, another button would go back two levels. To get a basic idea of what I'm looking for without showing all my code, here is a compilable example:
'''
Created on 2010-06-18
@author: dhatt
'''
import sys
from PyQt4 import QtGui, QtCo...
I have known many good applications (including UG Team Center, IBM Lotus Expeditor etc.,) developed over Eclipse (RCP Framework). Of late, i find some application developed over Qt Creator exploiting its plug-in architecture (GCF, VTK designer etc.,).
I wish to know the pros and cons of Eclipse and Qt Creator as base framework for deve...
I have a very simple code:
char character;
std::cin >> character;
However, I would like it to behave as follow:
Don't echo to console the character I type
std::cin should return (unblock) right away when a character is pressed without having to press the Enter key
Is this possible? I also have access to Qt.
...
Hi, I'm trying to create a QString which is a hexadecimal number with its letter digits in Capitals instead of small caps, how can it be done?
QString( " %1" ).arg( 15, 1, 16 ) yields f and I'd like F
...
I was under the impression that QObject disabled the copy constructor and assignment operator... why am I able to compile this QObject derivative containing both of these?
#ifndef QVERSION_H
#define QVERSION_H
#include "silverlocklib_global.h"
#include <QtCore>
struct SILVERLOCKLIBSHARED_EXPORT QVersion : public QObject
{
Q_OBJECT...
I derived a class from QGraphicsScene. Then I overrided the dragMoveEvent. But now I cant move any items in my QGraphicsScene. Somebody please help me to create the dragging movement.
...
I'm having some trouble handling unicode output from a QProcess. When I run the following example I get ?? instead of 中文. Can anyone tell me how to get the unicode output?
from PyQt4.QtCore import *
def on_ready_stdout():
byte_array = proc.readAllStandardOutput()
print 'byte_array: ', byte_array
print 'unicode: ', unicode...
I have a QVBoxLayout that I've added a few widgets to, via addWidget(). I need to now delete those widgets, and it seems I need to use removeWidget() (which takes in a widget to be removed) to do that.
I thought that calling children() or findChildren(QWidget) on my layout would return a list of the widgets I've added into it; I'm in t...
I am looking for a tool or plugin that help me to create web service as DOT NET does for Linux
thanks
===============================
After search, I found that Qt has not any thing to write web services
gSOAP is an Open Source Solution for this problem, currently we use it.
...
Hai,
I am trying to create a chess board. Here I want to do a operation like when ever a coin is clicked and dragged, at that time that picture should be copied and be placed in that old position. I don't know in which function I have to do it. When I made it on mouse pressed, then tyhe copy is coming above the original(layer wise). So ...
Hi folks,
I'm facing a problem with one of my QDockWidget. I have several QWidget items in a QDockwidget that are sometimes visible sometimes not.
I would like that my QDockWidget resizes itself depending on its content... Not only when QWidgets appear in it, but also when they disappear...
So far, my QDockWidget resizes itself when ...
In my program I override the dragEnterEvent but it never called, So that I want to know about when it's called?
UPDATE
Here the code
class RealBoard:public QGraphicsScene
{
public:
RealBoard();
void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
void dragLeaveEvent(QGraphicsSceneDragDropEvent *event);
//void dragMoveEvent(QGraph...