Top "Qt4" questions

Questions specifically relating to the deprecated version 4.x.x of the Qt C++ GUI library.

How to make a column in QTableWidget read only?

I would like to have one column in QTableWidget NOT editable. In forums I have read a lot about some …

qt qt4 qtablewidget
How do I compile a PyQt script (.py) to a single standalone executable file for windows (.exe) and/or linux?

I started to fiddle with PyQt, and made a "beautiful" script from the pyqt whitepaper example app (pastebin) It works …

python qt4 compilation executable pyqt4
How to get sender widget with a signal/slot mechanism?

It's possible to bind more than one signal to one slot (isn't?). So, is there a way to understand which …

qt4
Qt - remove all widgets from layout?

This doesn't seem easy. Basically, I add QPushButtons through a function to a layout, and when the function executes, I …

c++ qt mobile qt4 nokia
How to run a system command in Qt?

I have to run a system command in Qt. but I have to give an argument for that command. for …

qt file qt4 system
Qt foreach loop ordering vs. for loop for QList

When iterating through a QList<T> with a foreach loop, in the tests I conducted the items are …

c++ qt for-loop foreach qt4
Get filename from QFile?

eg: QFile f("/home/umanga/Desktop/image.jpg"); How I get only the filename - "image.jpg"?

qt qt4
QString Splitting

I have these url strings file:///home/we/Pictures/neededWord/3193_n.jpg file:///home/smes/Pictures/neededWord/jds_22.png file:///…

qt qt4 split qstring
What's the difference between QMainWindow, QWidget and QDialog?

What's the difference between QMainWindow, QWidget and QDialog?

qt4 qt-creator qtwidgets
How do I remove trailing whitespace from a QString?

I want to remove all the trailing whitespace characters in a QString. I am looking to do what the Python …

c++ string qt qt4 trim