Getting current index from a QListView model
i am inserting items to a QListView using a QStandardItem model. when i am selecting an item from the listview, i want to retrieve the index in a sequential manner. instead of going 0,1,2… and so on i...
View ArticlePySide app seems to ignore SIGTERM during shutdown when run at startup using...
My PySide app seems to ignore the TERM signal sent during shutdown on Linux when it is automatically started by putting an entry in ~/.config/autostart. I came to the conclusion that the issue is with...
View ArticleReplacement for QX11Embedwidget and Container in Qt5
Hi, I would like to know few details about Qt 5 as we are planning to migrate to Qt5. We have several applications whcih are developed in Qt 4.8 using QX11EmbedWidgets and a main application which act...
View Article设置QAbstractTableModel表头背景色的问题
QVariant TableModel::headerData(int section, Qt::Orientation orientation, int role) const { if(role ==Qt::BackgroundRole) { ...
View ArticleCan't watch preview
Hi, I’m quite new to Qt and got a bit of a problem. Preview in design mode only shows the layout of objects like the link below. On this screen I put a png file 64×64 resized to 0×0 for some reason...
View ArticlePySide QEvent post crash
Hello everyone, I’m working on Linux Ubuntu 12.10, with PySide 1.1.1 and python 2.7 I have a problem when posting QEvent through a QStateMachine. If I want it to work I have to keep a reference on the...
View Articlestyle sheet woes
Hi I have a style sheet that sets the background colour for QDialog – QDialog { background-color: red; } My application has a QListWidget added from Designer and is created with...
View ArticleCombining two classes
Hi, First of all, I am a beginner in the QT word so sorry if what I wrote is bad. I would like to create a directory at the beginning of the application. The directory name can vary depending on the...
View Articlehow to send/receive files of size upto 15MB
Hi, I am new in qt. I am using QNetworkAccessManager’s put method to upload a file to http server. I am able to send files of upto 600KB but bigger files fail to upload. Also i am not sure whether the...
View Article[SOLVED] Need suggestion about sockets and threads in Qt.
Hi, I’m trying to write simple chat program, which will contain server where it will be located (e.g 192.168.1.2) and client(s)(192.168.3-255) which will be connected to server. When I entered IRC...
View ArticleNot use QCustomEvent class in Qt 4.7.4
Hi all, I try use QCustomEvent but Although, #include <QCustomEvent> When i use it, QApplication::postEvent(QApplication::instance(), new QCustomEvent(MyEvent)); I get error:...
View ArticlePhonon Video Player : Can not play videos with a size of more than 1 GB
I am trying to play rawvideo(not compressed) in HD 1920×1080 with Phonon VideoPlayer. It works if the videos size are small (1Go) but if not the player crash. I check the buffering process and only...
View ArticleQt5 ,DFB and X11
Hi, Does Qt5 provides comman API for X11 and DFB or different. Can i run the same app on X11 and DFB environment if so how. Regards, Dcqt
View ArticleCan i have a custom slot at Qt designer, Signals & Slot Editor?
For example when i push a button i want a stacked_widget to change it’s currend index to 1. Instead of doing it via “Go to slot” i would like to try and hide some useless code from my cpp thus i am...
View ArticleCustom stylesheet properties
Hi! I have really searched the whole internet for this…without any success. So here is my question. I have my own class (OwnObject) derived from QObject and i do have a stylesheet. Is it possible to...
View ArticleQSlider to control video display
Hi guys, I need to use QSlider to control a video display (like a very simple video player). Is that possible? If so, is there any exemple on how to do that?
View ArticleHelp our fellow Chinese with Qt question: Setting background color in...
The original thread can be found here: Here is the link [qt-project.org] Please help him because there are not enough specialists in Chinese section.
View ArticleQT5 deploying on windows, mingw32
hello, being tired of always having to run QT Creator in order to execute my app i want to “deploy” (as they fancy call it) it on windows. My first thought? double click the mother-effer. Libs missing....
View ArticleExternal Libraries With Android & iOS
Hello, i’m developing a project that depends on Web Scraping and as i wanted it to be a multi-platform project i choosed to use QT, the thing now is that i don’t know if i can depend on external...
View ArticleKonsola wyświetla napis "naci" z każym uruchomieniem
Coś takiego: http://scr.hu/0vcf/704xa Jest to strasznie irytujące, domyślam się, że to przez windowskowską konsolę, ale nie mam pojęcia jak ty zmienić :< Dzieje się to w przypadku uruchamianie...
View Article