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

How change the background color for a blank cell in QTableWidget

If a cell have some data, using tableWidget->item(8,0)->setBackgroundColor(Qt::red); to change the background color will work, but if a cell is blank it will fail.
spy8888
  • 315
  • 1
  • 5
  • 9
19
votes
6 answers

Visual studio 2012 and Qt4.8.5 : How to see QString contents in debug mode.

I use visual studio 2012 and Qt4.8.5, unfortunately I can not see the QString text variable when I work in debug mode. Is someone has a tip allow it ? Qt4.8.5 plug-in doesn't exist for VS2012. Thank a lot Xavier
xavSIB
  • 191
  • 1
  • 1
  • 4
18
votes
4 answers

QTabWidget: close tab button not working

I have set ui->tabWidget->setTabsClosable(true); but QTabwidget only showing a cross on each tab that is not closing tab on click on this button. What else I have to do to make tabs closable? I tried to connect any slot (which would be proper for…
Tab
  • 785
  • 2
  • 11
  • 27
15
votes
3 answers

Manipulate data in a QAbstractListModel from a QML ListView

I have a QML ListView which uses a QAbstractListModel subclass as a model. ListView { id: myListView x: 208 y: 19 width: 110 height: 160 delegate: myListDelegate {} model: MyListModel opacity: 0 } The model is a list…
12
votes
2 answers

Qt and Google Earth API

Is it possible to develop an application in Qt, using Google Earth? For example, I want to show the earth (as in google earth) as a sphere via QtGL in my application.
Azazeel Lupin
  • 157
  • 1
  • 8
11
votes
2 answers

QMake does not update subdir makefiles

Issue I am working on a multi-executable QT project using qmake in conjunction with QT Creator. Each executable has its' own .pro file, all of which are included in an over-arching .pro file (template=subdirs). Each individual .pro file also…
Tsubashi
  • 730
  • 11
  • 26
10
votes
1 answer

How does Qt handle a suposedly infinite loop of event emits?

I have both a QSlider and a QSpinBox, and I wanted their values to be always equal, so I connected the slider's valueChanged(int) signal to the spinbox' setValue(int) slot, and vice versa: (of course, I also set the min and max values to be…
fonini
  • 2,989
  • 3
  • 21
  • 39
10
votes
1 answer

Qt 4.8 - detect insertion and removal of sd card on mac-mini (OS X Lion)

I am completely new to developing apps on Mac. Here I have developed only 2-3 apps using Qt and none using objective-c / cocoa / xcode. Is there a way of detecting when an SD card is inserted in a Mac mini (OS X Lion) in Qt 4 (4.8 specifically)? I…
zeFree
  • 2,129
  • 2
  • 31
  • 39
9
votes
1 answer

Temporarily disable UI update of a QTableView

I have a QStandardItemModel that provides data for a QTableView and a thread that inserts data into the model. Is it possible to temporarily stop the model from updating the table view, and enable it later?
daisy
  • 22,498
  • 29
  • 129
  • 265
8
votes
2 answers

How to Remove the Header in QTableView?

As shown in the Image below, How can i remove the unwanted header section ? My Table has to display only 4 column headers. It should not display the whole header section. Please Help to remove the Header Section which is displaying after the 4th…
New Moon
  • 787
  • 6
  • 21
  • 35
8
votes
1 answer

QTableWidget auto stretch last field just like QTreeWidget does

Is there anyway to let QTableWidget's header items stretch to full size just like QTreeWidget does ?
daisy
  • 22,498
  • 29
  • 129
  • 265
7
votes
2 answers

QAudioInput::byteReady() and QIODevice::read() giving different number of bytes

I am having a doubt with the following code snippet… const qint64 bytesReady = m_audioInput->bytesReady(); const qint64 bytesSpace = m_buffer.size() - m_dataLength; const qint64 bytesToRead = qMin(bytesReady, bytesSpace); const qint64 bytesRead =…
shofee
  • 2,079
  • 13
  • 30
7
votes
1 answer

netbeans (with Qt ) show "unable to resolve identifier" but just for some modules

i using netbeans7.1 with Qt and mingw on win64x . netbeans show me "unable to resolve identifier" but just for some modules! i checked everythings ( i used a lots of other modules many time they are working ) all Qt modules on ( Project…
Cyrus Raoufi
  • 526
  • 1
  • 3
  • 27
7
votes
3 answers

Retrieving row count from QSqlQuery, but got -1

I'm trying to get the row count of a QSqlQuery, the database driver is qsqlite bool Database::runSQL(QSqlQueryModel *model, const QString & q) { Q_ASSERT (model); model->setQuery(QSqlQuery(q, my_db)); rowCount = model->query().size(); …
daisy
  • 22,498
  • 29
  • 129
  • 265
7
votes
2 answers

Stacking QPushButtons on the other side of a QMenuBar

I want to stack some QPushButton objects on the other side of my QMenuBar. This is how my window looks now: And this is how I want it to look like (I've photoshopped the image): I know that in the motif widget style, the help menu is aligned to…
iTayb
  • 12,373
  • 24
  • 81
  • 135
1
2 3
21 22