qt4 Questions

5

In a desktop Qt application, I have some GPS coordinates that I'd like to show on a map. My plan is to construct an URL with the coordinates and let a web browser and Google maps or a similar servi...
Weatherglass asked 20/11, 2009 at 17:4

6

Solved

I'm using Qt4 and I have a QTableView which displays data using a custom model. I'd like to have two rows in the table header, ideally with some of the cells in the first row spanning multiple colu...
Fayth asked 25/2, 2010 at 17:22

6

Solved

I have experience with developing rich user interface application with flex and AS3. However the issue is its very hard to use existing c++ business logic with these flex apps. With the advent of Q...
Namhoi asked 26/1, 2012 at 5:32

5

Solved

Are there any known size/space limitation of QPixmap and/or QImage objects documented? I did not find any useful information regarding this. I'm currently using Qt 4.7.3 on OSX and Windows. Particu...
Sunroom asked 16/8, 2011 at 14:42

3

Solved

Question: how to find sub item, in a QTreeView loaded QAbstractItemModel model with model->match() method? Problem: model->match() can't find sub items, wtf?! Here is the example: As yo...
Rincon asked 20/7, 2010 at 13:59

8

Solved

I'm using Qt4.6 and I have a QComboBox with a QCompleter in it. The usual functionality is to provide completion hints (these can be in a dropdown rather than inline - which is my usage) based on ...
Andizhan asked 26/2, 2011 at 19:29

5

Solved

I am writing a Visual Basic IDE, and I need to add lines numbers to QTextEdit and highlight current line. I have found this tutorial, but it is written in Java and I write my project in C++.
Picardi asked 14/3, 2010 at 19:5

13

This doesn't seem easy. Basically, I add QPushButtons through a function to a layout, and when the function executes, I want to clear the layout first (removing all QPushButtons and whatever else i...
Alphonsealphonsine asked 24/11, 2010 at 22:37

5

I have a application running on linux which I am trying to import on windows. I have set up all the libraries and also made changes to the .pro file. Now when I try to build the project I get this ...
Darius asked 6/1, 2015 at 21:30

7

Solved

I try to hide all widgets in layout. But looks like findChildren doesn't work for layout. Here's my sample code: QLayout * layout = widget -> findChild<QLayout *> (layoutName); QList&lt...
Explant asked 31/10, 2010 at 22:5

10

I want to copy a directory from one drive to another drive. My selected directory contains many sub directories and files. How can I implement the same using Qt?
Unparalleled asked 29/3, 2010 at 8:11

7

Solved

Problem in short - In Linux, whenever we get the following error "Syntax error: word unexpected (expecting ")")", what does it generally mean? Problem in details - I have been t...
Telluric asked 19/4, 2016 at 13:53

4

Solved

I have a QTableWidget with a disabled setSelectionMode (QTableWidget::NoSelection) and the QTableWidgetItems I fill in don't have the Qt::ItemIsEditable flag. Nevertheless, a cell that has been cli...
Narceine asked 26/7, 2014 at 16:57

5

How do I execute QTcpSocket functions in a different thread?
Creswell asked 23/4, 2010 at 11:35

2

Solved

How to give Qmenu item checkable using QT QMenu *preferenceMenu = new QMenu(); preferenceMenu = editMenu->addMenu(tr("&Preferences")); QMenu *Mode1 = new QMenu(); Mode1 = preferenceMenu-&g...
Typography asked 10/7, 2017 at 7:32

5

Solved

I'm using the nice feature in QMessageBox to optionally show detailed text to the user. However, the window after expansion is still fairly small, and one immediately tries to resize the window so ...
Peroxidase asked 16/4, 2010 at 18:38

3

I'm working on a Qt application (in C++). Without appyling any styles, my menu looks like this: I'd like it to look like this: How do I achieve this? Either using qss, or programmatically? I...
Giraldo asked 25/6, 2017 at 10:30

7

Solved

Is there any function or something like that by which I can create totally random strings or numbers?
Macbeth asked 14/7, 2010 at 9:49

2

Solved

The default is for the selected row to be colored gray if the QTableWidget does not have focus, and orange if it does have focus. I would like to, instead, make the selected row be red whether or n...
Foldaway asked 20/10, 2011 at 18:19

3

Solved

I am new to PyQT. I am interested to add a combobox to the each row of tableView. Is it possible in PyQT 4? I know, it is possible in QT5, but not sure about PyQT. Thank you in advance for help....
Caducity asked 26/5, 2015 at 11:58

7

Solved

I have installed Qt designer 4.8.2, Pyside, and Python 3.3. When I create a form with Qt designer I am not able to see the code when clicking on view code. The error message is:"Unable to launch C:...
Cadaverous asked 9/12, 2012 at 22:25

2

Solved

I am trying to emit standard string with qt signal. The signal will be delivered as queued. I registered the type with qRegisterMetaType , like it says in the qt documentation, but no luck. I am re...
Cabral asked 8/10, 2011 at 18:43

3

Solved

How can i add two child Widget objects in equal portion of QMainWindow. MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { TreeArea *ta= new TreeArea(this); TreeArea *ta1= new Tree...
Gooden asked 15/2, 2012 at 9:26

8

Solved

Is there a way to build Qt in "Release with Debug info" mode ? My application crashes only in "release" mode (works fine in Debug mode) and seems the issue comes from Qt (may be a bug in Qt).So I w...
Woolery asked 9/8, 2011 at 7:57

10

Solved

I use a QLabel to display the content of a bigger, dynamically changing QPixmap to the user. It would be nice to make this label smaller/larger depending on the space available. The screen size is ...
Noisette asked 21/11, 2011 at 12:43

© 2022 - 2024 — McMap. All rights reserved.