Questions tagged [qt3]

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

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. Qt 3 is no longer supported.

56 questions
16
votes
1 answer

How to convert QIcon to QPixmap

I have following code and I have to change it with Qt4 code. QIcon icon; QPixmap pixmap = icon.pixmap(); // Qt3 code for replacing Qt3 code with Qt4, I have to replace pixmap() with one of following methods provided by the Qt4. QPixmap…
Jai
  • 1,292
  • 4
  • 21
  • 41
13
votes
2 answers

How to make QTextEdit with no visible border?

When I create a deafult QTextEdit widget, it appears in a default Windows style border. I don't want this border, so I try to turn it off. How do I do that? I'm using pretty old version of Qt (3.2.3).
akalenuk
  • 3,815
  • 4
  • 34
  • 56
11
votes
6 answers

Generate .h and .cpp from .ui file

Suppose I have the file about.ui. How can I make the "about.h" and the "about.cpp" from my .ui file? I have to create a .moc file too? How can I compile this after the creaton to see if all ocurred correctly?
LucasCaixeta
  • 151
  • 1
  • 3
  • 8
11
votes
3 answers

How to detect the mouse state in Qt without a MouseEvent

Okay, using Qt, I'd like to know how to detect the current state of the mouse at any point in time - without a MouseEvent. Using QCursor::pos(), you can get its position, but is there a way to determine the current state of the buttons? Basically,…
Jonathan M Davis
  • 37,181
  • 17
  • 72
  • 102
7
votes
2 answers

What happened to QListViewItem in qt4?

I don't do a lot of Qt programming so this may sound like a silly question, but what happened to QListViewItem in qt4? I have this application I wrote some time ago in qt3. I changed that to qt4 using the aptly name "qt3toqt4" program (all this on a…
Lieuwe
  • 1,734
  • 2
  • 27
  • 41
6
votes
2 answers

QDateTime to QString with milliseconds in Qt3

Is there a way in Qt3 to convert QDateTime into a QString and back to QDateTime, so that eventually QDateTime will contain information about milliseconds? Thanks.
nick
  • 643
  • 1
  • 5
  • 11
6
votes
3 answers

Adding custom widgets to QMenuBar

Qt3 used to provide QMenuBar::insertItem with QWidget* parameter. This way any custom widget could be added to menu bar - for example a clock-widget. In Qt4 there is no such overloaded method. What would be the best way to reach the same goal -…
Valentin H
  • 7,240
  • 12
  • 61
  • 111
3
votes
3 answers

Qt3 on Windows?

I need to port one of my old program to Windows. The current version uses Qt 3 on Linux. I'd like to see it within few days only to do some tests. Instead of porting my code on Qt 4 (no time now), is it possible to recompile on Windows with Qt 3? Do…
asclepix
  • 7,971
  • 3
  • 31
  • 41
3
votes
1 answer

Qt: window with movable widgets

I want to create a window with a variable number of custom widgets, each of the widgets can be a group of some simple objects. Widgets should behave similar to dialog windows: they can be moved anywhere inside the parent window, can overlap etc.…
Daniel
  • 305
  • 1
  • 4
  • 13
3
votes
4 answers

Hierachical data in TreeViews and TreeView updating technique

I have lots of (hierachical) data that I show in a TreeView (could be around 20K items or more, including children items). The peculiar problem with my data is that each object shown in the treeview can exist in many treeview items. What I mean by…
John
2
votes
2 answers

QAction::setAccel(QString) not available from Qt 4?

Following this documentation: http://doc.qt.digia.com/qq/qq14-actioneditor.html I figured that out there is no QAction::setAccel(QString) method anymore. How can one modify the QAction accel other than using QtCreator? I need to change them…
Petr
  • 13,747
  • 20
  • 89
  • 144
2
votes
3 answers

Qt, how to set text edit scroll bar to the bottom? C++

I have the text edit box as a chat window, but I was wondering if there was a way to set the scroll bar to be at the bottom to show the most updated message. I am currently using Qt3 and C++. chat_box->.... I tried looking and was only able to find…
Aero Chocolate
  • 1,477
  • 6
  • 23
  • 39
2
votes
2 answers

Resizing group box after hiding elements?

In my project, I have a Group box with a few elements that may need to be hidden, with other elements above and below. If I hide those elements with setHidden(true), the elements are hidden but that leaves a large space in between the other…
Sam
  • 23
  • 4
2
votes
0 answers

QT3 linker errors after switching to another compiler

I have created simple test project that uses QT3 gui. The main function is as follows: int main(int argc, char** argv) { QApplication a(atgc, argv); MainWindow *w = new MainWindow; w->show(); a.setMainWidget(w); a.exec(); …
Oleg Andriyanov
  • 5,069
  • 1
  • 22
  • 36
1
vote
1 answer

Compile error "QImage with no type" in Qt4

How can I figure out how to solve this bug message? I am trying to rewrite a Qt3 working code into Qt4 for converting IplImage to QImage and found the "right conversion types" however my code as below results in "ISO C++ forbids declaration of…
luhfluh
  • 487
  • 2
  • 8
  • 26
1
2 3 4