Questions tagged [qt4.8]

For issues relating to using the Qt framework, version 4.8 and no other version. Do not use if you just accidentally use that version. Use the tag qt for Qt related issues that will likely occur in other versions as well.

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.

330 questions
4
votes
1 answer

QListWidgetItem with Radio Button

I'm working on my first QT application and I have a problem with QListWidgetItems. I will be having different kind of list. for checkboxed list…
DavidG
  • 45
  • 1
  • 8
4
votes
2 answers

How to include icons in application when using Pyinstaller 2.0 ,PySide 1.1.2 Bindings and Qt 4.8

what script looks like what working app should look like Before posting I have looked at the following question and tried to use it as a guide to make my script work properly but it was of marginal use PyInstaller won't load the PyQt's images to…
H.J_Rios
  • 125
  • 4
  • 12
4
votes
1 answer

QApplication segmentation fault

I get a crash when try to create a QApplication object. This is my code: #include #include int main(int argc, char* argv[]) { QApplication app(argc, argv); return app.exec(); } I am using Qt version 4.8.4 and the…
Mikhail Zimka
  • 694
  • 1
  • 9
  • 20
4
votes
3 answers

Styling QTabWidget

I have a QTabWidget with a background gradient and two problems. How dow I remove the anoying outline around the active tab (see image)? I tried "outline: none" like with push buttons but it does not seem to have an effect. How do I style disabled…
Oliver
  • 2,864
  • 1
  • 16
  • 27
4
votes
1 answer

Would the slot get called multiple times if I connect the same slots for multiple times?

If I connect the same signal with the same slot twice, would this cause a bug? e.g the slot get called twice when the signal is emitted?
daisy
  • 22,498
  • 29
  • 129
  • 265
4
votes
2 answers

How to know exactly when a user expands a QTreeView item?

Is there a way to know exactly when an expand operation begins when a user, lets say clicks the expand arrow in a QTreeView? For the case when he double clicks I can catch the double-click event. I tried reimplementing this slot void expand(const…
GlassFish
  • 14,851
  • 3
  • 17
  • 22
4
votes
2 answers

What is the fastest way to get QWidget pixel color under mouse?

I need to get the color of pixel under mouse, inside mouseMoveEvent of a QWidget (Breadboard). Currently I have this code-> void Breadboard::mouseMoveEvent(QMouseEvent *e) { QPixmap pixmap = QPixmap::grabWindow(winId()); QRgb color =…
Vinayak Garg
  • 6,518
  • 10
  • 53
  • 80
4
votes
1 answer

Reduce cpu cost of readyRead() when using high speed internet connection

I tried to profiling my program, which is a file downloader. I use 5 QNetworkRequest to enhance transfer speed, they all connect to the same readyRead() slot. I use QMap to buffer those byte arrays. When downloading speed reaches, e.g 5 MiB/s, I…
daisy
  • 22,498
  • 29
  • 129
  • 265
3
votes
1 answer

Qt, windows and _POSIX_

I'm working on building Qt 4.8.1 in VisualStudio 2005 and I was getting an issue that the compiler could not find _fileno. After some research, I found that in stdio.h it has #ifdef _POSIX_ _CRTIMP __checkReturn int __cdecl fileno(__in FILE *…
Liron
  • 2,012
  • 19
  • 39
3
votes
1 answer

Invoke Qt slot safe from non-qt thread

I want to invoke a slot of MyWidget class MyWidget : public QWidget { Q_OBJECT public slots: void onFooBar(const std::string&);/*std::string& could also be replaced by a QString for easier meta system handling*/ }; But because in my case…
Superlokkus
  • 4,731
  • 1
  • 25
  • 57
3
votes
1 answer

How is QString's implicit sharing implementation thread-safe?

I was looking through Qt 4.8.0's implementation of QString's implicit sharing, specifically how it's done it in a thread-safe manner. It seems that the key idea is to hold a reference count in an integer d->ref of type QBasicAtomicInt that can be…
MuchToLearn
  • 339
  • 3
  • 12
3
votes
1 answer

Display a cursor on QTextEdit in QT4.8.5

I am newbie working on QT. Basically I am creating a QTextEdit box in QT and I want the Cursor to display at initial position. My Simple Code is : #include "mainwindow.h" #include #include #include
vk41286
  • 113
  • 1
  • 1
  • 10
3
votes
1 answer

Error: QAction::triggered is protected – cannot connect a signal

I build an application using Qt 5 Widgets on Kubuntu with a menu where I have connected the action with a function in my class StateMachine: QObject::connect( ui->actionOpen, &QAction::triggered, &sm, &StateMachine::open_file); I am sorry that…
Martin Ueding
  • 8,245
  • 6
  • 46
  • 92
3
votes
1 answer

Is there any unofficial visualizer for debugging Qt 4.8 projects in Visual Studio 2013?

Where are files required for debugging support of Qt 4.8 types in Visual Studio 2013? I've heard about *.natvis files, but I've found only Qt5 *.natvis files for Visual Studio 2013 or Qt4 *.natvis for Visual Studio 2012. They don't work for me. Are…
ilya
  • 1,103
  • 14
  • 36
3
votes
1 answer

How to create Progress bar in Qt4?

I tried to create a progress bar using below sequence of code, but showed me an error, which is incomplete type is not allowed . The code snippet is as follows:- QProgressBar *bar; bar= new QProgressBar(0);//error: incomplete type is not allowed…
Myanju
  • 1,135
  • 1
  • 11
  • 23
1 2
3
21 22