Questions tagged [qt4.8]

For issues relating to using the Qt framework, version 4.8 and no other version. Do not use if you just accidentally use that version. Use the tag qt for Qt related issues that will likely occur in other versions as well.

Qt (pronounced officially as cute (/kyut/) though commonly pronounced as Q.T. (/ˈkyu ti/)) is a cross-platform application development framework widely used for the development of GUI programs (in which case it is known as a widget toolkit), and also used for developing non-GUI programs such as console tools and servers. wikipedia

Qt was created by Trolltech, and is currently developed and maintained by Digia.

330 questions
2
votes
1 answer

Deploying Qt with Mac OS X app - how not to load any plugins?

I want to package Qt 4.x shared libraries together with my application so that users do not have to install the Qt frameworks. With a build script, I correctly patched all my Qt dependencies and ensured that none are loaded from my Qt installation…
AndiDog
  • 68,631
  • 21
  • 159
  • 205
2
votes
0 answers

Proper way to stop QAudioOutput (or bug?)

(Under Qt 4.8.2 4.8.3, Qt MultimediaKit 1.2, Linux (edit: Kubuntu 12.10, qt from packages) I have a QAudioOutput which is fed with data every 20ms. If I stop it via ::stop(), stateChanged() signal is emitted by it that it's been stopped…
grizzancs
  • 397
  • 3
  • 11
2
votes
3 answers

QDataStream uses sometimes 32 bit and sometimes 40 bit floats

I am writing an application that is supposed to write an array of floats to a WAVE file. I am using a QDataStream for this, but this results in a very improbable output that I can't explain. It seems like the QDataStream sometimes chooses 32 bit…
Yellow
  • 3,955
  • 6
  • 45
  • 74
2
votes
2 answers

How to split large style file (qss file) in QT to small file and load them all

What I am trying to do I need to split my large style file to small style files because now it is hard to read the style file(qss file) and add new styling to it. after that i need to load those small qss files to apply them all I am loading my Big…
Muhammad Nour
  • 2,109
  • 2
  • 17
  • 24
2
votes
2 answers

Qt 4.8.3 installation on Windows 7 & QtWebkit problems

I just updated my Qt to 4.8.3, because the program built from older version is not compatible to the new framework. So I have to upgrade. This process was frustrating and time consuming. So many problems came out. I download Qt from this…
Claire Huang
  • 961
  • 1
  • 18
  • 30
2
votes
0 answers

QLabel wordWrap setting produces unexpected sizeHint

Below is a very simple Qt ui file to show my issue. (using Qt 4.8.0 on Windows 7 64bit) To reproduce the problem, load the file in designer on Windows (may happen on other OS's too) and press ctrl+R to display the dialog described by the file. Start…
cppguy
  • 3,611
  • 2
  • 21
  • 36
2
votes
2 answers

How can we fetch the height of title of a QTabWidget

Is there any possible way to fetch the height of the title bar that comes in a QTabWidget?
Abhishek
  • 338
  • 5
  • 20
2
votes
0 answers

Child QWidget is not painted correctly

I need to show a virtual keyboard when the user selects an input text field in a webpage. This code runs on an set top box. I am extending the QWebView, which is creating a new keyboard widget as a child. WebView::WebView(QWidget* parent = 0):…
Prithvi R
  • 21
  • 3
2
votes
2 answers

Dynamic QImage , when no initial size specified

I'm trying to use QPainter to draw items onto a QImage , but since I can't predict the exact size of this QImage , I can't use QImage::save() , it always tell me: QPainter::begin: Paint device returned engine == 0, type: 3 But if I specify the image…
daisy
  • 22,498
  • 29
  • 129
  • 265
1
vote
1 answer

Dropping a file from outside an application into QTableView

I have a QTableView and I'd like to be able to drop an image file from outside the application onto a row and upon this event it needs to identify which row it was dropped on, do things with the file (copy to a directory, resize, add to db, ...) and…
TheMagician
  • 1,846
  • 7
  • 20
  • 26
1
vote
1 answer

How to draw pixels from display buffer?

Is there any example Qt code which displays the image from an unsigned char display buffer? Each byte on the buffer corresponds to the Gray scale pixel color. The content of the display buffer changes at run time in specified intervals. I need to…
indira
  • 6,569
  • 18
  • 65
  • 80
1
vote
1 answer

Add icon from array to QListWidget item

I've written a loop which adds some items to my QListWidget. Now I want them to have an icon from my qrc file. For this I would use a loop in which I add a unique icon to each item. void Test::Query() { ui->listWidget_Available->clear(); …
yokmp
  • 145
  • 2
  • 10
1
vote
2 answers

Slot not called for QSplashScreen

I'm trying to show a start-up image using QSplashScreen and I want to show the image for about 2 seconds. int main(int argc, char *argv[]) { QApplication a(argc, argv); QPixmap pixmap(":/images/usm.png"); QSplashScreen splash(pixmap); …
develoops
  • 545
  • 2
  • 10
  • 21
1
vote
1 answer

what does "QGLContext::makeCurrent() : wglMakeCurrent failed: The operation completed successfully" mean?

I am trying to make a multi threaded Qt Application that uses QGLWidgets and I keep getting this error.(I am trying to paint from another thread using QPainter) And it also looks like I have a huge memory leak because of it. The error is…
GlassFish
  • 14,851
  • 3
  • 17
  • 22
1
vote
3 answers

Strange behaviour overriding QWidget::resizeEvent(QResizeEvent* event)

I am developing a GUI in qt. i have a QWidget with four QPushButton inside a QHBoxLayout. Those buttons have an icon each. I need to override QWidget::resizeEvent(QResizeEvent* event) because i don't know exactly what size my window will be. Same…
andrea.marangoni
  • 1,499
  • 8
  • 22