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

How to distinguish between pressed, released and long press when using QAbstractButton::autoRepeat

I am using Qt 4.8.X on Linux with X11 and/or Qt-QWS with custom buttons derived from QAbstractButton. Now I have to distinguish between a button press, release and the user holding down the button. To do so, I would like to use…
Martin H.
  • 185
  • 2
  • 16
2
votes
1 answer

OpenGL offscreen in separate thread with Qt 4.8

I wish to use OpenGL to render to an offscreen buffer in a separate thread. I don't need the context to be shared with the main thread. Previously, I used the QOpenGLContext class in Qt 5.4, which I initialised in the main thread, then moved to the…
Moshev
  • 556
  • 6
  • 14
2
votes
1 answer

Qt Unit Test repeats everything twice in Qt Creator's Application Output pane for Qt 4.8 (but not in Qt 5.2.2)

I just noticed that even on a fresh new project, Qt Unit Test writes everything twice in the Application Output pane, in different colors - first in magenta, then in black. I assume this is because it writes to both stdout and stderr. This happens…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
2
votes
1 answer

Extract D-Bus arguments and object path dynamically from net.connman.Manager's GetService method

I am planning to develop an application that will make use of DBus and connman, a wireless manager for embedded devices. From my understanding DBus exposes the methods used by a program, and allows developers to also make use of these methods in…
Alvin Dizon
  • 1,855
  • 14
  • 34
2
votes
2 answers

Segmentation fault when getting QString

Strange problem, already looked into with several colleagues... Using Qt Creator and Qt 4.8.5 define an object set a number of values with setters request values with a getters result: getting an int no problem, all other values give segmentation…
Frank
  • 5,741
  • 4
  • 28
  • 49
2
votes
2 answers

QDockWidget tabify/splitDockWidget weird behavior / bug?

I have an application with MdiChilds which should contain multiple QDockWidgets. I am however having troubles splitting/tabbing up the Widgets so that they produce the desired default layout. I basically want a layout like this: Widget 4 is created…
codeling
  • 11,056
  • 4
  • 42
  • 71
2
votes
1 answer

QT 4.8.5 - Popup menu is shown in wrong place - SLED 11

I am developing an applications toolbar in QT 4.8.5 (this version is mandatory for my client) on a SLED 11. I am also in a multimonitor environment. My purpose is to show an extended toolbar on a specified monitor and a reduced one on the…
Lorenzo
  • 81
  • 1
  • 5
2
votes
2 answers

PySide: How to set a custom QMessageBox size?

I am working with PySide on the Raspberry PI + PiTFT, making a kiosk style (ie, fullscreen) style app. I'm restricted to 320x240 pixels - and having a very hard time forcing message boxes to a specifc size. Ultimately, I am wanting to make a…
swx
  • 65
  • 8
2
votes
2 answers

How to dynamically add a QScrollArea to a StackedWidget page and add widgets to it?

I'm currently building an application that consists of a QStackedWidget with several pages. The page itself was added in the designer. What I CAN do (in code): add a QVBoxLayout to the page add some custom widgets to it set layout for the…
Rob
  • 11,492
  • 14
  • 59
  • 94
2
votes
1 answer

custom QAbstractNetworkCache implementation; QAbstractNetworkCache::insert(QIODevice *device) device has no data

I am attempting to build my own custom QAbstractNetworkCache implementation for use with QNetworkAccessManager. I am having trouble with QAbstractNetworkCache::insert(QIODevice *device); inside this method, the device always arrives with 0 bytes to…
krdx
  • 1,315
  • 15
  • 22
2
votes
0 answers

getTime() not working with Qt

I have the following javascript code working fine in the browser but not in Qt: var now = new Date() var then = new Date("2013-12-08T00:10:01Z") var timeDiff = then.getTime() - now.getTime() alert(timeDiff) When I run the same code in Qt…
Philip Kirkbride
  • 21,381
  • 38
  • 125
  • 225
2
votes
1 answer

How to Hide Right Arrow in QMenu in Qt?

Can anyone please tell me how to hide the right arrow for the QMenu items. I tried using the stylesheet. But it didn't works.. Please Help. MyStylesheet.qss QMenu::right-arrow[hide="true"] { image: url(Resources/MenuRight.png); //am using an…
New Moon
  • 787
  • 6
  • 21
  • 35
2
votes
2 answers

QFileDialog : how to set option to show content of folder in getExistingDirectory()

I am using QFileDialog as filename = QFileDialog::getExistingDirectory(this,"Select Image File: ",dataDir,0); I want that I can check files inside folder before selecting it. function getExistingDirectory() is setting QFileDialog::ShowDirsOnly as…
Tab
  • 785
  • 2
  • 11
  • 27
2
votes
1 answer

Mouse button status

From what I see, QApplication::mouseButtons() may return no buttons even when a button is held down. This happens when you have clicked a side of a window for re-sizing. It's coherent with the docs because mouseButtons() reflects the state from the…
tru7
  • 6,348
  • 5
  • 35
  • 59
2
votes
0 answers

QxtLogger (From libQxt) prints its Messages in Application Output

I am using QxtLogger (from libQxt) for logging in our application. It was working fine with Qt 4.7.3. I recently updated to Qt 4.8, Since then log messages from QxtLogger are getting printed in Application Output. I didn't installed it as…
Anwar Shaikh
  • 1,591
  • 3
  • 22
  • 43