Questions tagged [qt4.7]

For issues relating to using the Qt framework, version 4.7.

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.

172 questions
21
votes
4 answers

How does designer create a Line widget?

In Qt Designer , you can drag a "Line" widget , which will create a line in your layout. But I checked the document and headers , I didn't find the "Line" header / widget , what was it ?
daisy
  • 22,498
  • 29
  • 129
  • 265
20
votes
4 answers

Setting default make options for Qt Creator?

How can i override default make parameters , which is: make -w Each time i create a project , i had to modify project settings , adding -j4 to make parameters. Can i set make -w -j4 by default ? EDIT The best way to do this is setting MAKEFLAGS…
daisy
  • 22,498
  • 29
  • 129
  • 265
19
votes
2 answers

How do you get System default font settings in Qt?

I am building a desktop app using Qt, my dev machine is win 7 x64 with japanese locale, standard system font is Meiryo. Most of win 7 UI is in this font, though classic/older programs such as ui font customization window itself uses different font…
Evan
  • 492
  • 1
  • 3
  • 15
17
votes
4 answers

Assigning Keyboard Shortcuts to QML Components

I am deep into building a Desktop Application with QML and Qt Creator and I am currently researching keyboard handling and how it works with QML elements. I am already aware of the lack of proper QML replacements for Desktop Widgets. My current…
Vikas Bhargava
  • 691
  • 1
  • 9
  • 22
12
votes
6 answers

Qt - How can I make a particular Column of my QTableView as Non Editable?

I have a QTableView with 4 Rows and 4 columns each representing their data's in it. By default the QTableView is editable. Now I want to make any particular column as non editable in my QTableView. How can I do it? Thanks in Advance.
New Moon
  • 787
  • 6
  • 21
  • 35
8
votes
4 answers

Qt Stylesheets: How to apply style to menus? How to remove blue tinge around QTextEdit?

I am trying to make the menubar a gradient black colour and that works fine, except for the menu headings. Here's the stylesheet i'm using: QString styleSheet = "QMenuBar{background: qlineargradient(x1:0,x2:0,y1:0,y2:1,stop:0 #cccccc, stop:0.4…
W.K.S
  • 9,787
  • 15
  • 75
  • 122
7
votes
3 answers

Appending number to QString with arg() , is there better ways?

I've been using QString::number () to convert numbers to string for long time , now i'm wondering if there's something better than following: int i = 0; QString msg = QString ("Loading %1").arg (QString::number (i)); How can i spare…
daisy
  • 22,498
  • 29
  • 129
  • 265
7
votes
3 answers

QFlags Enum Type Conversion fails all of a sudden

I've had this code running for quite a while in a library: MyClass::MyClass() : QDialog() { // (...) setWindowFlags( Qt::CustomizeWindowHint | Qt::WindowTitleHint ); // (...) } Then, after changing various parts of the library, I get…
Tim Meyer
  • 12,210
  • 8
  • 64
  • 97
6
votes
2 answers

How to get first redirect (301 or 302) event in QtWebKit

we are using QtWebKit 4.7 and want to know when a frame load does a redirect. At the moment we are counting the outgoing requests within a subclass of the QNetworkAccessManager, where we do overwrite createRequest. This works in most cases fine, but…
Dag
  • 10,079
  • 8
  • 51
  • 74
6
votes
3 answers

qt creator debug slow

I'm running Qt Creator 2.3.0, based on Qt 4.7.4, on Windows 7 64-bit. When I run the app from Qt Creator (ctrl+r), everything works great. However, when I debug (F5), executing each line takes forever - as in sometimes 2 minutes to execute a…
David Burson
  • 2,947
  • 7
  • 32
  • 55
6
votes
2 answers

not getting windows 7 native look and feel

I've recently downloaded and build qt 4.7.4 locally, but there's one problem I've been having since using it. I'm not getting the Windows 7 look and feel. I didn't have this problem with 4.6.3. Here is what my designer.exe looks like: I keep…
creatio
  • 815
  • 9
  • 16
6
votes
4 answers

How to set the PlaceHolderText for QTextEdit

I want to set placeholder text of a QTextEdit. I know how to set it for a QLineEdit, there is a property setPlaceHolderText. But this property is not available for QTextEdit. Please give your valuable suggestions to solve this.
New Moon
  • 787
  • 6
  • 21
  • 35
6
votes
3 answers

Qt - how to save my QTableView as a Excel File?

Can anyone plz help me, how to save my QtableView as a Excel File. I have a QTableView and a QPushButton (Save Button). If i enter the values in my QtableView and if i click the Save Buttton the QTableView items should be saved as Excel File. Plz…
New Moon
  • 787
  • 6
  • 21
  • 35
6
votes
1 answer

how to use QGroupBox in place of QButtonGroup

I'm trying to figure out how to use the QGroupBox widget in place of the QButtonGroup widget as the qt docs (link below) 'strongly advise against using it'. https://doc.qt.io/archives/qt-4.7/q3buttongroup.html The QButtonGroup had a handy method…
jonathan topf
  • 7,897
  • 17
  • 55
  • 85
6
votes
2 answers

QObject based class has a queued connection to itself

I was digging into some source code I am working on. I found a peculiar statement that someone had coded. The source code is a GUI application with a QML GUI and uses QT 4.7.x. The snippet below belongs to core application logic. // connect…
Vikas Bhargava
  • 691
  • 1
  • 9
  • 22
1
2 3
11 12