qt4 Questions

4

Solved

I have a QWidget-based overlay widget which should paint some text and take place over the central widget of my application. The problem is that I can't set background of overlay widget to be trans...
Held asked 23/8, 2014 at 20:23

5

Solved

I would like to have one column in QTableWidget NOT editable. In forums I have read a lot about some flags but could not manage to implement.
Bennet asked 4/4, 2010 at 10:9

4

Solved

After searching for a while I saw that they way to set a visible border on a groupbox is to use the StyleSheet property. I added: border: 2px solid gray; but there are a couple of problems. 1)...
Waterloo asked 29/11, 2010 at 16:58

10

How do I know which version of Qt I am using? When I open Qt Creator it shows "Welcome to Qt Creator 2.3". In the build setting, however, it shows Qt Version 4.7.1.
Titania asked 14/4, 2014 at 11:18

3

Solved

Problem Fail to set main window icon. Notes: When I don't use AUTORCC I run into some compilation problems: QtCore/qglobal.h: no such file or directory. But, I do prefer AUTORCC as a more modern C...
Karlsruhe asked 6/4, 2015 at 9:17

4

Solved

I am struggling to set an background image for an QPushButton. No Success till now. Following is my code. appsWidget::appsWidget(QWidget *parent) :QWidget(parent) { QPushButton *button1 = new QP...
Bigler asked 20/4, 2010 at 0:47

4

Solved

I'm working on a small project and I need to use OpenGL and Qt. I'm a newbie with both libraries, so I need a good tutorial that illustrates how to use both of them together. Is it better to ...
Pedagogics asked 27/4, 2011 at 17:9

6

Solved

You must first delete the existing layout manager (returned by layout()) before you can call setLayout() with the new layout. from http://doc.qt.io/qt-5.9/qwidget.html#setLayout Which functio...
Advanced asked 23/9, 2011 at 12:6

2

Solved

I'm trying to create a QString which is a hexadecimal number with its letter digits in Capitals instead of small caps, how can it be done? QString( " %1" ).arg( 15, 1, 16 ) yields f and I'd lik...
Beaufort asked 18/6, 2010 at 22:23

6

Solved

I have a taskbar menu that when clicked is connected to a slot that gets the trigger event. Now the problem is that I want to know which menu item was clicked, but I don't know how to send that inf...
Hebe asked 2/6, 2009 at 16:38

6

I have two overlapping widgets in a window child A and child B. Child A is above B and gets mouse events but sometimes the click should pass through and eventually hit child B. The ideal solution ...
Shick asked 6/4, 2011 at 9:2

2

Solved

I want to discover SQLite version in Qt 4.6.2 & 4.7.4 How to find out version SQLite in Qt?
Spriggs asked 2/10, 2012 at 6:38

5

Solved

How can I maintain an aspect ratio between two QHBoxLayouts? For instance I want a QHBoxLayout to be one third of the entire window width and the other to be two thirds of the entire window width:...
Quadriplegic asked 28/1, 2013 at 11:56

10

Solved

I'm using a QMenu as context menu. This menu is filled with QActions. One of these QActions is checkable, and I'd like to be able to check/uncheck it without closing the context menu (and having to...
Pellicle asked 12/1, 2010 at 16:27

6

Is it possible to open a folder in Windows Explorer/OS X Finder and then select/highlight one file in that folder, and do it in a cross platform way? Right now, I do something like QDesktopService...
Desberg asked 16/8, 2010 at 3:9

6

Solved

Is there Q_OBSOLETE or Q_DEPRECATED in C++ with Qt 4.7? Or is there a similar C++ macro or keyword?
Teevens asked 14/11, 2010 at 20:56

2

Solved

I would like to use gcov with my unit test written using QTestLib. I have managed to generate some .gcno files along my object files by adding this to my .pro file : QMAKE_CXXFLAGS += -fprofile-ar...
Dorotheadorothee asked 17/11, 2010 at 12:10

2

Solved

I have two QLists for which I need to determine the intersection (in this specific case, two QStringLists, but I would assume that this would apply to every container so long as T implements operat...
Tesstessa asked 9/7, 2013 at 22:6

3

Solved

i want to put a newline into a txt file, i tried with many alternative with so many help from this forum but i am getting always unknown character always. Please help for (int i = 0; i < fileDe...
Bethezel asked 9/4, 2010 at 6:20

3

Solved

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(QSqlQue...
Haiku asked 8/6, 2013 at 4:33

7

Solved

We have a window with several components in QDockWidgets. Ideally, we'd like to have all components dockable, but there is one component that will likely always be visible. So we made that the cent...
Wapiti asked 20/8, 2010 at 13:1

5

Solved

In Qt, signals and slots require matching argument types: QObject::connect: Incompatible sender/receiver arguments QLabel::linkActivated(QString) --> Button::call(int) How can I implement a co...
Erotomania asked 28/10, 2011 at 8:42

5

Solved

I have a simple project created in Qt Creator (installed using Qt SDK 1.1.4). It runs just fine from within Qt Creator, but if I then browse to the output directory in Windows and double-click the ...
Stipple asked 5/12, 2011 at 21:14

3

Solved

I’m using Qt Creator. In my GUI I use a tab widget. This widget should have the same grey background color as the main window (picture A). I accomplished this by editing the Style Sheet in Qt Desig...
Physiological asked 16/7, 2012 at 19:48

2

In QLineEdit, there is a textEdit() signal, which only emits if the user changes the text, but not when you call setText(), So what's the equivalent in QTextEdit? I only see a textChanged() signal...
Bounteous asked 26/1, 2013 at 8:33

© 2022 - 2024 — McMap. All rights reserved.