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...
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)...
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
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
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...
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...
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...
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 ...
2
Solved
I want to discover SQLite version in Qt 4.6.2 & 4.7.4
How to find out version SQLite in Qt?
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:...
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...
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...
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...
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...
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...
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...
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...
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...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.