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
0
votes
1 answer

How to actually remove a QGraphicsItem from the screen?

I've got a QGraphicsItem (a map) that has some children (icons on that map). No issues so far. However, I want to be able to remove the icons from the screen. In order to do this, I tried to just break up the parent-children…
cyroxx
  • 3,809
  • 3
  • 23
  • 35
0
votes
1 answer

Qt access parent from page of stackedWidget created as separate class in QtDesigner

Because of some bug in QtDesigner integrated into QtCreator 2.4.1 I created separated definition as a class inheriting from QWidget. This solve the problem with lying out widgets in Layouts on pages of QStackedWidget. Additionally this nicely…
Michał Fita
  • 1,183
  • 1
  • 7
  • 24
0
votes
1 answer

Get QListWidgetItem deleted when it's itemWidget get closed

Is it possible to let QListWidget remove a QListWidgetItem, when the widget (I use setItemWidget()) gets closed()? For now I pass in the row number and signal back to the main window, which will delete the item by row, but that sounds stupid.
daisy
  • 22,498
  • 29
  • 129
  • 265
0
votes
1 answer

QtWebKit not rendering Japanese (Shift_JIS charset)

I have an HTML file which I want to load in a QWebView. The header looks something like: The body text is mixed Latin and Japanese characters. The page…
sam-w
  • 7,478
  • 1
  • 47
  • 77
0
votes
1 answer

QAnimation framework: which property to use here

Latest Qt Creator has a animation effect on start , the widget shows from darker to lighter , I don't know which property I should use with Qt's animation framework , to make something similar ? UPDATE Ok , i tried to use windowOpacity…
daisy
  • 22,498
  • 29
  • 129
  • 265
-1
votes
1 answer

Set QLabel Alignment to right and also clip text on the right

I'm writing a Qt 4.8 (we cannot use newer Qt versions for this project) Application in C++ and I have various QLabels which have to be right-aligned and whose text is set dynamically in the code. But if the text exceeds the size of the QLabel it is…
BMO2718
  • 75
  • 8
-1
votes
1 answer

Qt 4.8, How to send signal from different thread?

I am trying to send signal across threads. For testing this situation, I wrote a test code. I am working on ubuntu 16.04 machine and qt version is 4.8. In my code, three class exists: 1 - timer_class -> in this class, I emit signal in timeout…
user3104363
  • 182
  • 1
  • 14
-1
votes
1 answer

Signal is not calling slot from another thread

I am trying to update gui from another thread by using this: https://stackoverflow.com/a/14546167/2236297 This is my workerthread: class WorkerThread : public QThread { void run() { while(1) { //QTcpSocket messenger; …
mucisk
  • 247
  • 5
  • 13
-1
votes
3 answers

boost::multi_index_container in QMap

Is it possible to use constructions like QMap< QString, boost::multi_index_container<...> >? On the one hand, we have private: BOOST_COPYABLE_AND_MOVABLE(multi_index_container) in the containers declaration. It should tell us not to put…
Illia Levandovskyi
  • 1,228
  • 1
  • 11
  • 20
-1
votes
1 answer

C++ IP Server Socket receiving always "0100000001000000" from a PHP socket client

I have a web client (php) which connects to a C++ server (using Qt 4.8) by an IP socket. The weird thing is that if I send anything from the web (I checked data is correct), I always receive "0100000001000000" at the server side. Weirder, If I do…
Javi Carnero
  • 409
  • 4
  • 9
-1
votes
1 answer

No signals emitted from QTableView

For some reason, my QTableView seems to never emit a single signal. At first I tried connecting to any slot programmatically, but then I realized even through the Signal/Slot Editor from the GUI I could not make something happen, no matter which…
asm
  • 11
  • 3
-1
votes
1 answer

How can I convert HEX encoded Unicode to a QString?

I have a file that contains Strings like: 444541191800B45D01FF00004593244700013030303535202 I think that these are unicode strings. How can i convert them to a Qt QString object? I tried the following: QByteArray ar1 =…
RED SOFT ADAIR
  • 12,032
  • 10
  • 54
  • 92
-2
votes
2 answers

Binary of the latest Qt framework (with MingW32) working out-of-the-box for COM/ActiveX programming

Can someone point to me where I can find binary distribution of the latest Qt Framework 4.8.0. (with MingW32) ready for Office automation?
menjaraz
  • 7,551
  • 4
  • 41
  • 81
-2
votes
1 answer

How to only allow certain items to be multiple selected in a QTableWidget?

I have a QTableWidget and want items to be selectable depending on what's already selected (only if they have the same content in second column). I know how to make items selectable or not. But everything should remain selectable so the user can…
Goswin von Brederlow
  • 11,875
  • 2
  • 24
  • 42
-3
votes
1 answer

How can i get all the text until a space don't come in Qstring?

Hello i want to get the ultil the space in line occur for example in the given picture am able to get the whole string using getter method to my parent window but i dont want get the date time part am currently getting…
1 2 3
21
22