qt4.6 Questions

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

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

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

7

Solved

I've tried these in my mainform's constructor: QRect desktopRect = QApplication::desktop()->availableGeometry(this); move(desktopRect.center() - frameGeometry().center()); QRect desktopRect = ...
Jellied asked 6/8, 2010 at 14:51

3

Solved

I am subclassing QTabWidget to add a QTabBar, who's tabs stretch over the whole width of the tabBar. Therefore I am setting the expanding property to true. This doesn't seem to change anything abou...
Delete asked 27/2, 2011 at 14:51

1

Solved

I'm writing a unit test for a custom Validator in a QTableView using the QTestLib framework. One of the most basic test cases could be described like this: Double click the table cell in the thi...
Lifer asked 26/9, 2012 at 15:3

2

Solved

I was searching for a good Qt + Lisp implementation on the internet and couldn't find any. Most projects were closed down or so. Does anybody know of a good Common Lisp + Qt integration? Thanks ...
Rie asked 3/3, 2011 at 21:31

2

I'm using Qt, and I use a QWizard object which contains several pages. when it comes to a specific page, I want to hide the "Next" button first, and shows it after the user do something (such as cl...
Schaper asked 3/8, 2010 at 23:23

1

Solved

How do I convert my font on a QGraphicsObject from point size to pixel size? I need to do this so the fonts will look right when I print my QGraphicsScene using QGraphicsScene::render().
Epley asked 13/9, 2010 at 15:34

2

Solved

I have a QGraphicsScene that has graphics as well as text drawn on it. When I try to print, the graphics are fine, but the text is using a font size defined in points, so scene->render() when I ...
Kaete asked 9/9, 2010 at 19:20

2

Solved

I'm using QTableView and QStandardItemModel now. In the QTableView, if you double-click a cell, this cell will get into edit mode and you can edit its content. Now I have a problem, I want to tri...
Drawshave asked 9/9, 2010 at 23:33

1

Solved

Let's say I have a window-less application which has only an icon on the Taskbar (Windows, Mac OS X & Linux). I want it to capture some key & key combinations, let's say Right Control + Rig...
Parimutuel asked 5/6, 2010 at 11:31

1

I'm starting off QT 4.6's example "OpenGL - 2D painting" It uses a subclass of QGLWidget, and makes painting operations with the class QPainter. I'd like to know how to do drawing directly with Ope...
Indented asked 27/6, 2010 at 17:29

1

Solved

I'm using a Table View. I'd like to remove the cell padding (or margin) so I can squeeze more cells in less space. How can this be achieved? The cells size is set to 32 pixels on QT designer, if I ...
Puto asked 24/6, 2010 at 18:7
1

© 2022 - 2024 — McMap. All rights reserved.